summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/device.h
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2014-03-08 14:19:55 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-10 09:31:41 +0100
commit10126f30e5f5dec0c13ed11ae302a76bc5fa6da0 (patch)
tree16b50feb099b04e57d6fba55f93dbe945c309921 /examples/bluetooth/lowenergyscanner/device.h
parent649f3519a15ac5b5181e74b8680fe0a238bb6602 (diff)
BLE scanner search bar fix
During device scan, search bar was gone after device is added and device scan was not yet done. Change-Id: I39bd7fc1c3f8c22a93921313d818ba1cd00363a0 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/device.h')
-rw-r--r--examples/bluetooth/lowenergyscanner/device.h4
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