Implemented basic speed game
This commit is contained in:
29
deviceinfo.h
Normal file
29
deviceinfo.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef DEVICEINFO_H
|
||||
#define DEVICEINFO_H
|
||||
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
#include <QBluetoothDeviceInfo>
|
||||
|
||||
class DeviceInfo: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString deviceName READ getName NOTIFY deviceChanged)
|
||||
Q_PROPERTY(QString deviceAddress READ getAddress NOTIFY deviceChanged)
|
||||
|
||||
public:
|
||||
DeviceInfo(const QBluetoothDeviceInfo &device);
|
||||
|
||||
void setDevice(const QBluetoothDeviceInfo &device);
|
||||
QString getName() const;
|
||||
QString getAddress() const;
|
||||
QBluetoothDeviceInfo getDevice() const;
|
||||
|
||||
signals:
|
||||
void deviceChanged();
|
||||
|
||||
private:
|
||||
QBluetoothDeviceInfo m_device;
|
||||
};
|
||||
|
||||
#endif // DEVICEINFO_H
|
Reference in New Issue
Block a user