summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyserviceprivate_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2016-10-10 09:11:57 +0200
committerAlex Blasche <alexander.blasche@qt.io>2017-01-23 07:41:21 +0000
commit145a2e1d0360dc79a7c1fa98ba6a28e9691fd1a6 (patch)
tree2b169c643e8fb647b272912c6ac0438e0d130bf7 /src/bluetooth/qlowenergyserviceprivate_p.h
parentf889b44788085f5c40c7923729913762ba9460b7 (diff)
Add ability to export basic service data and advertise
Advertisement data and Advertisement parameter in Qt are now connected to the Android/Java side. In addition the basic service structure is supported. Descriptors and char detail export are still missing. Change-Id: I941cba5e832d76ff7beca811d08a2148367c6bf5 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergyserviceprivate_p.h')
-rw-r--r--src/bluetooth/qlowenergyserviceprivate_p.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergyserviceprivate_p.h b/src/bluetooth/qlowenergyserviceprivate_p.h
index bde099ba..7727b583 100644
--- a/src/bluetooth/qlowenergyserviceprivate_p.h
+++ b/src/bluetooth/qlowenergyserviceprivate_p.h
@@ -57,6 +57,10 @@
#include <QtBluetooth/QLowEnergyService>
#include <QtBluetooth/QLowEnergyCharacteristic>
+#if defined(QT_ANDROID_BLUETOOTH)
+#include <QtAndroidExtras/QAndroidJniObject>
+#endif
+
QT_BEGIN_NAMESPACE
class QLowEnergyControllerPrivate;
@@ -119,6 +123,12 @@ public:
QHash<QLowEnergyHandle, CharData> characteristicList;
QPointer<QLowEnergyControllerPrivate> controller;
+
+#if defined(QT_ANDROID_BLUETOOTH)
+ // reference to the BluetoothGattService object
+ QAndroidJniObject androidService;
+#endif
+
};
typedef QHash<QLowEnergyHandle, QLowEnergyServicePrivate::CharData> CharacteristicDataMap;