summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothuuid.h
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2013-10-23 17:33:36 +0200
committerAlex Blasche <alexander.blasche@digia.com>2013-11-04 09:35:01 +0100
commitec61d7b9e82e6d653c02df14f34acdba8fc060db (patch)
treed61e73318c11e0dcae471ee7c1f8ed56397b9f75 /src/bluetooth/qbluetoothuuid.h
parentb00388ea1448cfd977c54f53d038d1a270562d53 (diff)
Implemented Bluetooth Low Energy gatt service and characteristics discovery
Bluez v4.x does not have total support for LE devices, a new approach, using gatttool command was implemented. Auto-tests and documentation will be in other commits. Change-Id: Iee711cc111199e15956052eebb7593bd3a5e27c8 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothuuid.h')
-rw-r--r--src/bluetooth/qbluetoothuuid.h122
1 files changed, 121 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothuuid.h b/src/bluetooth/qbluetoothuuid.h
index ef69e983..cec11533 100644
--- a/src/bluetooth/qbluetoothuuid.h
+++ b/src/bluetooth/qbluetoothuuid.h
@@ -143,12 +143,132 @@ public:
VideoDistribution = 0x1305,
HDP = 0x1400,
HDPSource = 0x1401,
- HDPSink = 0x1402
+ HDPSink = 0x1402,
+ GenericAccess = 0x1800,
+ GenericAttribute = 0x1801,
+ ImmediateAlert = 0x1802,
+ LinkLoss = 0x1803,
+ TxPower = 0x1804,
+ CurrentTimeService = 0x1805,
+ ReferenceTimeUpdateService = 0x1806,
+ NextDSTChangeService = 0x1807,
+ Glucose = 0x1808,
+ HealthThermometer = 0x1809,
+ DeviceInformation = 0x180a,
+ HeartRate = 0x180d,
+ PhoneAlertStatusService = 0x180e,
+ BatteryService = 0x180f,
+ BloodPressure = 0x1810,
+ AlertNotificationService = 0x1811,
+ HumanInterfaceDevice = 0x1812,
+ ScanParameters = 0x1813,
+ RunningSpeedAndCadence = 0x1814,
+ CyclingSpeedAndCadence = 0x1816,
+ CyclingPower = 0x1818,
+ LocationAndNavigation = 0x1819,
+ TISimpleKeyService = 0xffe0
+ };
+
+ enum CharacteristicId {
+ AlertCategoryID = 0x2a43,
+ AlertCategoryIDBitMask = 0x2a42,
+ AlertLevel = 0x2a06,
+ AlertNotificationControlPoint = 0x2a44,
+ AlertStatus = 0x2a3f,
+ Appearance = 0x2a01,
+ BatteryLevel = 0x2a19,
+ BloodPressureFeature = 0x2a49,
+ BloodPressureMeasurement = 0x2a35,
+ BodySensorLocation = 0x2a38,
+ BootKeyboardInputReport = 0x2a22,
+ BootKeyboardOutputReport = 0x2a32,
+ BootMouseInputReport = 0x2a33,
+ CSCFeature = 0x2a5c,
+ CSCMeasurement = 0x2a5b,
+ CurrentTime = 0x2a2b,
+ CyclingPowerControlPoint = 0x2a66,
+ CyclingPowerFeature = 0x2a65,
+ CyclingPowerMeasurement = 0x2a63,
+ CyclingPowerVector = 0x2a64,
+ DateTime = 0x2a08,
+ DayDateTime = 0x2a0a,
+ DayOfWeek = 0x2a09,
+ DeviceName = 0x2a00,
+ DSTOffset = 0x2a0d,
+ ExactTime256 = 0x2a0c,
+ FirmwareRevisionString = 0x2a26,
+ GlucoseFeature = 0x2a51,
+ GlucoseMeasurement = 0x2a18,
+ GlucoseMeasurementContext = 0x2a34,
+ HardwareRevisionString = 0x2a27,
+ HeartRateControlPoint = 0x2a39,
+ HeartRateMeasurement = 0x2a37,
+ HIDControlPoint = 0x2a4c,
+ HIDInformation = 0x2a4a,
+ IEEE1107320601RegulatoryCertificationDataList = 0x2a2a,
+ IntermediateCuffPressure = 0x2a36,
+ IntermediateTemperature = 0x2a1e,
+ LNControlPoint = 0x2a6b,
+ LNFeature = 0x2a6a,
+ LocalTimeInformation = 0x2a0f,
+ LocationAndSpeed = 0x2a67,
+ ManufacturerNameString = 0x2a29,
+ MeasurementInterval = 0x2a21,
+ ModelNumberString = 0x2a24,
+ Navigation = 0x2a68,
+ NewAlert = 0x2a46,
+ PeripheralPreferredConnectionParameters = 0x2a04,
+ PeripheralPrivacyFlag = 0x2a02,
+ PnPID = 0x2a50,
+ PositionQuality = 0x2a69,
+ ProtocolMode = 0x2a4e,
+ ReconnectionAddress = 0x2a03,
+ RecordAccessControlPoint = 0x2a52,
+ ReferenceTimeInformation = 0x2a14,
+ Report = 0x2a4d,
+ ReportMap = 0x2a4b,
+ RingerControlPoint = 0x2a40,
+ RingerSetting = 0x2a41,
+ RSCFeature = 0x2a54,
+ RSCMeasurement = 0x2a53,
+ SCControlPoint = 0x2a55,
+ ScanIntervalWindow = 0x2a4f,
+ ScanRefresh = 0x2a31,
+ SensorLocation = 0x2a5d,
+ SerialNumberString = 0x2a25,
+ ServiceChanged = 0x2a05,
+ SoftwareRevisionString = 0x2a28,
+ SupportedNewAlertCategory = 0x2a47,
+ SupportedUnreadAlertCategory = 0x2a48,
+ SystemID = 0x2a23,
+ TemperatureMeasurement = 0x2a1c,
+ TemperatureType = 0x2a1d,
+ TimeAccuracy = 0x2a12,
+ TimeSource = 0x2a13,
+ TimeUpdateControlPoint = 0x2a16,
+ TimeUpdateState = 0x2a17,
+ TimeWithDST = 0x2a11,
+ TimeZone = 0x2a0e,
+ TxPowerLevel = 0x2a07,
+ UnreadAlertStatus = 0x2a45
+ };
+
+ enum DescriptorID {
+ CharacteristicExtendedProperties = 0x2900,
+ CharacteristicUserDescription = 0x2901,
+ ClientCharacteristicConfiguration = 0x2902,
+ ServerCharacteristicConfiguration = 0x2903,
+ CharacteristicPresentationFormat = 0x2904,
+ CharacteristicAggregateFormat = 0x2905,
+ ValidRange = 0x2906,
+ ExternalReportReference = 0x2907,
+ ReportReference = 0x2908
};
QBluetoothUuid();
QBluetoothUuid(ProtocolUuid uuid);
QBluetoothUuid(ServiceClassUuid uuid);
+ QBluetoothUuid(CharacteristicId uuid);
explicit QBluetoothUuid(quint16 uuid);
explicit QBluetoothUuid(quint32 uuid);
explicit QBluetoothUuid(quint128 uuid);