Files
bobbycar-app/bluetoothbaseclass.h

31 lines
635 B
C
Raw Permalink Normal View History

2021-08-17 14:03:33 +02:00
#pragma once
2021-07-17 05:09:39 +02:00
2021-08-17 14:03:33 +02:00
// Qt includes
2021-07-17 05:09:39 +02:00
#include <QObject>
class BluetoothBaseClass : public QObject
{
Q_OBJECT
Q_PROPERTY(QString error READ error WRITE setError NOTIFY errorChanged)
Q_PROPERTY(QString info READ info WRITE setInfo NOTIFY infoChanged)
public:
explicit BluetoothBaseClass(QObject *parent = nullptr);
2021-08-17 14:03:33 +02:00
QString error() const { return m_error; }
2021-07-17 05:09:39 +02:00
void setError(const QString& error);
2021-08-17 14:03:33 +02:00
QString info() const { return m_info; }
2021-07-17 05:09:39 +02:00
void setInfo(const QString& info);
void clearMessages();
signals:
void errorChanged();
void infoChanged();
private:
QString m_error;
QString m_info;
};