Implemented basic speed game

This commit is contained in:
2021-07-17 05:09:39 +02:00
parent 294c2c32e9
commit b7f418c3a9
44 changed files with 2088 additions and 0 deletions

29
deviceinfo.h Normal file
View 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