diff options
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/device.h')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/device.h b/examples/bluetooth/lowenergyscanner/device.h index 2e471f50..307b0fb9 100644 --- a/examples/bluetooth/lowenergyscanner/device.h +++ b/examples/bluetooth/lowenergyscanner/device.h @@ -66,6 +66,7 @@ class Device: public QObject Q_PROPERTY(QVariant servicesList READ getServices NOTIFY servicesDone) Q_PROPERTY(QVariant characteristicList READ getCharacteristics NOTIFY characteristicsDone) Q_PROPERTY(QString update READ getUpdate NOTIFY updateChanged) + Q_PROPERTY(bool state READ state NOTIFY stateChanged) public: Device(); ~Device(); @@ -73,6 +74,7 @@ public: QVariant getServices(); QVariant getCharacteristics(); QString getUpdate(); + bool state(); public slots: void addDevice(const QBluetoothDeviceInfo&); @@ -94,6 +96,7 @@ Q_SIGNALS: void servicesDone(); void characteristicsDone(); void updateChanged(); + void stateChanged(); private: void setUpdate(QString message); @@ -106,6 +109,7 @@ private: QString m_message; bool connected; QLowEnergyController *info; + bool m_deviceScanState; }; #endif // DEVICE_H |