summaryrefslogtreecommitdiff
path: root/examples/bluetooth/lowenergyscanner/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/device.h')
-rw-r--r--examples/bluetooth/lowenergyscanner/device.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/bluetooth/lowenergyscanner/device.h b/examples/bluetooth/lowenergyscanner/device.h
index 6a1d2b9c..ea5d6ed6 100644
--- a/examples/bluetooth/lowenergyscanner/device.h
+++ b/examples/bluetooth/lowenergyscanner/device.h
@@ -16,6 +16,8 @@
#include <QtCore/qobject.h>
#include <QtCore/qvariant.h>
+#include <QtQmlIntegration/qqmlintegration.h>
+
QT_BEGIN_NAMESPACE
class QBluetoothDeviceInfo;
class QBluetoothUuid;
@@ -28,9 +30,14 @@ class Device: public QObject
Q_PROPERTY(QVariant servicesList READ getServices NOTIFY servicesUpdated)
Q_PROPERTY(QVariant characteristicList READ getCharacteristics NOTIFY characteristicsUpdated)
Q_PROPERTY(QString update READ getUpdate WRITE setUpdate NOTIFY updateChanged)
- Q_PROPERTY(bool useRandomAddress READ isRandomAddress WRITE setRandomAddress NOTIFY randomAddressChanged)
+ Q_PROPERTY(bool useRandomAddress READ isRandomAddress WRITE setRandomAddress
+ NOTIFY randomAddressChanged)
Q_PROPERTY(bool state READ state NOTIFY stateChanged)
Q_PROPERTY(bool controllerError READ hasControllerError)
+
+ QML_ELEMENT
+ QML_SINGLETON
+
public:
Device();
~Device();