Implemented basic speed game
This commit is contained in:
32
bluetoothbaseclass.h
Normal file
32
bluetoothbaseclass.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef BLUETOOTHBASECLASS_H
|
||||
#define BLUETOOTHBASECLASS_H
|
||||
|
||||
#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);
|
||||
|
||||
QString error() const;
|
||||
void setError(const QString& error);
|
||||
|
||||
QString info() const;
|
||||
void setInfo(const QString& info);
|
||||
|
||||
void clearMessages();
|
||||
|
||||
signals:
|
||||
void errorChanged();
|
||||
void infoChanged();
|
||||
|
||||
private:
|
||||
QString m_error;
|
||||
QString m_info;
|
||||
};
|
||||
|
||||
#endif // BLUETOOTHBASECLASS_H
|
Reference in New Issue
Block a user