summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyserviceprivate_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-24 15:08:44 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-06-26 16:36:32 +0200
commit004491a61de53d128aade26d497dcf7a557e09c4 (patch)
tree6ec3a63f748c4e75bd856f458fc508dcab4e8c0b /src/bluetooth/qlowenergyserviceprivate_p.h
parentb9909f15e8760e1587f67d9ff028bf730a92d044 (diff)
Introduce QLowEnergyDescriptor
The class is based in QLowEnergyDescriptorInfo and exposes the found descriptor information. The only missing piece of information is the descriptor value. Extends the QLowEnergyController unit test in such a way that descriptor information is tested too (except for values). Change-Id: I6ba6a862fff48fbdd27cd8219d2eb8f6d0058aea Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qlowenergyserviceprivate_p.h')
-rw-r--r--src/bluetooth/qlowenergyserviceprivate_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergyserviceprivate_p.h b/src/bluetooth/qlowenergyserviceprivate_p.h
index 16b1ea31..72caeeac 100644
--- a/src/bluetooth/qlowenergyserviceprivate_p.h
+++ b/src/bluetooth/qlowenergyserviceprivate_p.h
@@ -59,12 +59,17 @@ public:
explicit QLowEnergyServicePrivate(QObject *parent = 0);
~QLowEnergyServicePrivate();
+ struct DescData {
+ QByteArray value;
+ QBluetoothUuid uuid;
+ };
+
struct CharData {
QLowEnergyHandle valueHandle;
QBluetoothUuid uuid;
QLowEnergyCharacteristic::PropertyTypes properties;
QByteArray value;
- QHash<QLowEnergyHandle, QBluetoothUuid> descriptorList;
+ QHash<QLowEnergyHandle, DescData> descriptorList;
};
enum GattAttributeTypes {