diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-28 16:22:19 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-04 13:41:18 +0200 |
commit | 622288ecb7d194b8c3ca08effc3315e1734c251e (patch) | |
tree | 54d278ec6c788bf7617008ceb9db3f43798dcd5a /src/bluetooth/qbluetoothuuid.h | |
parent | 96f46e71d0d76f4d5063c95bbe50165391a20a4f (diff) |
Streamline some of the QLowEnergyDescriptorInfo related code
1. QLowEnergyDescriptorInfo::type() added
2. QLowEnergyDescriptorInfo ctor signature modified
3. QBluetoothUuid::DescriptorId enum renamed
4. QLowEnergyDescriptorInfo::uuid() changed its meaning
5. QBluetoothUuid(CharacteristicDescriptor) ctor added
Starting from this change QNX is going to be broken. In particular
point 2 cause breaks or bug. The focus is on santizing the API at
this point in time.
Change-Id: I7838f550410b6a0f94026b68ecf0751533eba3cb
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothuuid.h')
-rw-r--r-- | src/bluetooth/qbluetoothuuid.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bluetooth/qbluetoothuuid.h b/src/bluetooth/qbluetoothuuid.h index ee3477ac..e98bb5a5 100644 --- a/src/bluetooth/qbluetoothuuid.h +++ b/src/bluetooth/qbluetoothuuid.h @@ -176,7 +176,7 @@ public: LocationAndNavigation = 0x1819, }; - enum CharacteristicId { + enum CharacteristicType { AlertCategoryID = 0x2a43, AlertCategoryIDBitMask = 0x2a42, AlertLevel = 0x2a06, @@ -260,7 +260,7 @@ public: UnreadAlertStatus = 0x2a45 }; - enum DescriptorID { + enum CharacteristicDescriptor { CharacteristicExtendedProperties = 0x2900, CharacteristicUserDescription = 0x2901, ClientCharacteristicConfiguration = 0x2902, @@ -275,7 +275,8 @@ public: QBluetoothUuid(); QBluetoothUuid(ProtocolUuid uuid); QBluetoothUuid(ServiceClassUuid uuid); - QBluetoothUuid(CharacteristicId uuid); + QBluetoothUuid(CharacteristicType uuid); + QBluetoothUuid(CharacteristicDescriptor uuid); explicit QBluetoothUuid(quint16 uuid); explicit QBluetoothUuid(quint32 uuid); explicit QBluetoothUuid(quint128 uuid); |