4#ifndef QBLUETOOTHUUID_H
5#define QBLUETOOTHUUID_H
7#include <QtBluetooth/qtbluetoothglobal.h>
9#include <QtCore/QtGlobal>
10#include <QtCore/QMetaType>
11#include <QtCore/QUuid>
13#include <QtCore/QDebug>
15#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
21#if QT_BLUETOOTH_REMOVED_SINCE(6, 6)
47 HardcopyControlChannel = 0x0012,
48 HardcopyDataChannel = 0x0014,
49 HardcopyNotification = 0x0016,
54 McapControlChannel = 0x001E,
55 McapDataChannel = 0x001F,
60 ServiceDiscoveryServer = 0x1000,
61 BrowseGroupDescriptor = 0x1001,
62 PublicBrowseGroup = 0x1002,
64 LANAccessUsingPPP = 0x1102,
65 DialupNetworking = 0x1103,
67 ObexObjectPush = 0x1105,
68 OBEXFileTransfer = 0x1106,
69 IrMCSyncCommand = 0x1107,
73 AV_RemoteControlTarget = 0x110c,
74 AdvancedAudioDistribution = 0x110d,
75 AV_RemoteControl = 0x110e,
76 AV_RemoteControlController = 0x110f,
81 DirectPrinting = 0x1118,
82 ReferencePrinting = 0x1119,
84 ImagingResponder = 0x111b,
85 ImagingAutomaticArchive = 0x111c,
86 ImagingReferenceObjects = 0x111d,
88 HandsfreeAudioGateway = 0x111f,
89 DirectPrintingReferenceObjectsService = 0x1120,
91 BasicPrinting = 0x1122,
92 PrintingStatus = 0x1123,
93 HumanInterfaceDeviceService = 0x1124,
94 HardcopyCableReplacement = 0x1125,
98 PhonebookAccessPCE = 0x112e,
99 PhonebookAccessPSE = 0x112f,
100 PhonebookAccess = 0x1130,
102 MessageAccessServer = 0x1132,
103 MessageNotificationServer = 0x1133,
104 MessageAccessProfile = 0x1134,
109 Synchronization3D = 0x1139,
112 PnPInformation = 0x1200,
113 GenericNetworking = 0x1201,
114 GenericFileTransfer = 0x1202,
115 GenericAudio = 0x1203,
116 GenericTelephony = 0x1204,
117 VideoSource = 0x1303,
119 VideoDistribution = 0x1305,
123 GenericAccess = 0x1800,
124 GenericAttribute = 0x1801,
125 ImmediateAlert = 0x1802,
128 CurrentTimeService = 0x1805,
129 ReferenceTimeUpdateService = 0x1806,
130 NextDSTChangeService = 0x1807,
132 HealthThermometer = 0x1809,
133 DeviceInformation = 0x180a,
135 PhoneAlertStatusService = 0x180e,
136 BatteryService = 0x180f,
137 BloodPressure = 0x1810,
138 AlertNotificationService = 0x1811,
139 HumanInterfaceDevice = 0x1812,
140 ScanParameters = 0x1813,
141 RunningSpeedAndCadence = 0x1814,
142 CyclingSpeedAndCadence = 0x1816,
143 CyclingPower = 0x1818,
144 LocationAndNavigation = 0x1819,
145 EnvironmentalSensing = 0x181a,
146 BodyComposition = 0x181b,
148 WeightScale = 0x181d,
149 BondManagement = 0x181e,
150 ContinuousGlucoseMonitoring = 0x181f
156 PeripheralPrivacyFlag = 0x2a02,
157 ReconnectionAddress = 0x2a03,
158 PeripheralPreferredConnectionParameters = 0x2a04,
159 ServiceChanged = 0x2a05,
161 TxPowerLevel = 0x2a07,
164 DayDateTime = 0x2a0a,
166 ExactTime256 = 0x2a0c,
169 LocalTimeInformation = 0x2a0f,
171 TimeWithDST = 0x2a11,
172 TimeAccuracy = 0x2a12,
174 ReferenceTimeInformation = 0x2a14,
176 TimeUpdateControlPoint = 0x2a16,
177 TimeUpdateState = 0x2a17,
178 GlucoseMeasurement = 0x2a18,
179 BatteryLevel = 0x2a19,
182 TemperatureMeasurement = 0x2a1c,
183 TemperatureType = 0x2a1d,
184 IntermediateTemperature = 0x2a1e,
187 MeasurementInterval = 0x2a21,
188 BootKeyboardInputReport = 0x2a22,
190 ModelNumberString = 0x2a24,
191 SerialNumberString = 0x2a25,
192 FirmwareRevisionString = 0x2a26,
193 HardwareRevisionString = 0x2a27,
194 SoftwareRevisionString = 0x2a28,
195 ManufacturerNameString = 0x2a29,
196 IEEE1107320601RegulatoryCertificationDataList = 0x2a2a,
197 CurrentTime = 0x2a2b,
198 MagneticDeclination = 0x2a2c,
203 ScanRefresh = 0x2a31,
204 BootKeyboardOutputReport = 0x2a32,
205 BootMouseInputReport = 0x2a33,
206 GlucoseMeasurementContext = 0x2a34,
207 BloodPressureMeasurement = 0x2a35,
208 IntermediateCuffPressure = 0x2a36,
209 HeartRateMeasurement = 0x2a37,
210 BodySensorLocation = 0x2a38,
211 HeartRateControlPoint = 0x2a39,
217 AlertStatus = 0x2a3f,
218 RingerControlPoint = 0x2a40,
219 RingerSetting = 0x2a41,
220 AlertCategoryIDBitMask = 0x2a42,
221 AlertCategoryID = 0x2a43,
222 AlertNotificationControlPoint = 0x2a44,
223 UnreadAlertStatus = 0x2a45,
225 SupportedNewAlertCategory = 0x2a47,
226 SupportedUnreadAlertCategory = 0x2a48,
227 BloodPressureFeature = 0x2a49,
228 HIDInformation = 0x2a4a,
230 HIDControlPoint = 0x2a4c,
232 ProtocolMode = 0x2a4e,
233 ScanIntervalWindow = 0x2a4f,
235 GlucoseFeature = 0x2a51,
236 RecordAccessControlPoint = 0x2a52,
237 RSCMeasurement = 0x2a53,
239 SCControlPoint = 0x2a55,
245 CSCMeasurement = 0x2a5b,
247 SensorLocation = 0x2a5d,
253 CyclingPowerMeasurement = 0x2a63,
254 CyclingPowerVector = 0x2a64,
255 CyclingPowerFeature = 0x2a65,
256 CyclingPowerControlPoint = 0x2a66,
257 LocationAndSpeed = 0x2a67,
259 PositionQuality = 0x2a69,
261 LNControlPoint = 0x2a6b,
264 Temperature = 0x2a6e,
266 TrueWindSpeed = 0x2a70,
267 TrueWindDirection = 0x2a71,
268 ApparentWindSpeed = 0x2a72,
269 ApparentWindDirection = 0x2a73,
271 PollenConcentration = 0x2a75,
279 DescriptorValueChanged = 0x2a7d,
280 AerobicHeartRateLowerLimit = 0x2a7e,
281 AerobicThreshold = 0x2a7f,
283 AnaerobicHeartRateLowerLimit = 0x2a81,
284 AnaerobicHeartRateUpperLimit = 0x2a82,
285 AnaerobicThreshold = 0x2a83,
286 AerobicHeartRateUpperLimit = 0x2a84,
287 DateOfBirth = 0x2a85,
288 DateOfThresholdAssessment = 0x2a86,
289 EmailAddress = 0x2a87,
290 FatBurnHeartRateLowerLimit = 0x2a88,
291 FatBurnHeartRateUpperLimit = 0x2a89,
293 FiveZoneHeartRateLimits = 0x2a8b,
295 HeartRateMax = 0x2a8d,
297 HipCircumference = 0x2a8f,
299 MaximumRecommendedHeartRate = 0x2a91,
300 RestingHeartRate = 0x2a92,
301 SportTypeForAerobicAnaerobicThresholds = 0x2a93,
302 ThreeZoneHeartRateLimits = 0x2a94,
303 TwoZoneHeartRateLimits = 0x2a95,
305 WaistCircumference = 0x2a97,
307 DatabaseChangeIncrement = 0x2a99,
309 BodyCompositionFeature = 0x2a9b,
310 BodyCompositionMeasurement = 0x2a9c,
311 WeightMeasurement = 0x2a9d,
312 WeightScaleFeature = 0x2a9e,
313 UserControlPoint = 0x2a9f,
314 MagneticFluxDensity2D = 0x2aa0,
315 MagneticFluxDensity3D = 0x2aa1,
317 BarometricPressureTrend = 0x2aa3
321 UnknownDescriptorType = 0x0,
322 CharacteristicExtendedProperties = 0x2900,
323 CharacteristicUserDescription = 0x2901,
324 ClientCharacteristicConfiguration = 0x2902,
325 ServerCharacteristicConfiguration = 0x2903,
326 CharacteristicPresentationFormat = 0x2904,
327 CharacteristicAggregateFormat = 0x2905,
329 ExternalReportReference = 0x2907,
330 ReportReference = 0x2908,
333 EnvironmentalSensingConfiguration = 0x290b,
334 EnvironmentalSensingMeasurement = 0x290c,
335 EnvironmentalSensingTriggerSetting = 0x290d
342 :
QUuid(
static_cast<uint>(uuid), 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
344 :
QUuid(
static_cast<uint>(uuid), 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
346 :
QUuid(
static_cast<uint>(uuid), 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
348 :
QUuid(
static_cast<uint>(uuid), 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
350 :
QUuid(uuid, 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
352 :
QUuid(uuid, 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {};
367#ifndef QT_NO_DEBUG_STREAM
370 return streamingOperator(
debug, uuid);
375 int minimumSize()
const;
377 quint16 toUInt16(
bool *
ok =
nullptr)
const;
378 quint32 toUInt32(
bool *
ok =
nullptr)
const;
380#if QT_BLUETOOTH_REMOVED_SINCE(6, 6)
382 quint128 toUInt128()
const;
385#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
390 static QString serviceClassToString(ServiceClassUuid uuid);
391 static QString protocolToString(ProtocolUuid uuid);
392 static QString characteristicToString(CharacteristicType uuid);
393 static QString descriptorToString(DescriptorType uuid);
399#ifndef QT_NO_DATASTREAM
402 return s << static_cast<const QUuid &>(uuid);
407 return s >>
static_cast<QUuid &
>(uuid);
constexpr QBluetoothUuid(ServiceClassUuid uuid) noexcept
Constructs a new Bluetooth UUID from the service class uuid.
QBluetoothUuid(QUuid::Id128Bytes uuid) noexcept
Constructs a new Bluetooth UUID from the 128 bit uuid represented by \l QUuid::Id128Bytes struct.
~QBluetoothUuid()=default
constexpr QBluetoothUuid() noexcept
Constructs a new null Bluetooth UUID.
ServiceClassUuid
This enum is a convienience type for Bluetooth service class and profile UUIDs.
QBluetoothUuid(const QBluetoothUuid &uuid)=default
constexpr QBluetoothUuid(DescriptorType uuid) noexcept
Constructs a new Bluetooth UUID from the descriptor type uuid.
QBluetoothUuid & operator=(const QBluetoothUuid &other)=default
ProtocolUuid
This enum is a convienience type for Bluetooth protocol UUIDs.
constexpr QBluetoothUuid(quint16 uuid) noexcept
Constructs a new Bluetooth UUID from the 16 bit uuid.
constexpr QBluetoothUuid(CharacteristicType uuid) noexcept
Constructs a new Bluetooth UUID from the characteristic type uuid.
friend QDebug operator<<(QDebug debug, const QBluetoothUuid &uuid)
constexpr QBluetoothUuid(quint32 uuid) noexcept
Constructs a new Bluetooth UUID from the 32 bit uuid.
constexpr QBluetoothUuid(ProtocolUuid uuid) noexcept
Constructs a new Bluetooth UUID from the protocol uuid.
friend bool operator!=(const QBluetoothUuid &a, const QBluetoothUuid &b)
Returns true if a is not equal to b, otherwise false.
friend bool operator==(const QBluetoothUuid &a, const QBluetoothUuid &b)
Returns true if a is equal to b, otherwise false.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
constexpr QUuid() noexcept
Creates the null UUID.
Combined button and popup list for selecting options.
QDataStream & operator>>(QDataStream &s, QBluetoothUuid &uuid)
QDataStream & operator<<(QDataStream &s, const QBluetoothUuid &uuid)
#define Q_DECL_NS_RETURNS_AUTORELEASED
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]