1// qbluetoothuuid.sip generated by MetaSIP
2//
3// This file is part of the QtBluetooth Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23%If (Qt_5_2_0 -)
24
25class QBluetoothUuid : QUuid
26{
27%TypeHeaderCode
28#include <qbluetoothuuid.h>
29%End
30
31public:
32    enum ProtocolUuid
33    {
34        Sdp,
35        Udp,
36        Rfcomm,
37        Tcp,
38        TcsBin,
39        TcsAt,
40        Att,
41        Obex,
42        Ip,
43        Ftp,
44        Http,
45        Wsp,
46        Bnep,
47        Upnp,
48        Hidp,
49        HardcopyControlChannel,
50        HardcopyDataChannel,
51        HardcopyNotification,
52        Avctp,
53        Avdtp,
54        Cmtp,
55        UdiCPlain,
56        McapControlChannel,
57        McapDataChannel,
58        L2cap,
59    };
60
61    enum ServiceClassUuid
62    {
63        ServiceDiscoveryServer,
64        BrowseGroupDescriptor,
65        PublicBrowseGroup,
66        SerialPort,
67        LANAccessUsingPPP,
68        DialupNetworking,
69        IrMCSync,
70        ObexObjectPush,
71        OBEXFileTransfer,
72        IrMCSyncCommand,
73        Headset,
74        AudioSource,
75        AudioSink,
76        AV_RemoteControlTarget,
77        AdvancedAudioDistribution,
78        AV_RemoteControl,
79        AV_RemoteControlController,
80        HeadsetAG,
81        PANU,
82        NAP,
83        GN,
84        DirectPrinting,
85        ReferencePrinting,
86        ImagingResponder,
87        ImagingAutomaticArchive,
88        ImagingReferenceObjects,
89        Handsfree,
90        HandsfreeAudioGateway,
91        DirectPrintingReferenceObjectsService,
92        ReflectedUI,
93        BasicPrinting,
94        PrintingStatus,
95        HumanInterfaceDeviceService,
96        HardcopyCableReplacement,
97        HCRPrint,
98        HCRScan,
99        SIMAccess,
100        PhonebookAccessPCE,
101        PhonebookAccessPSE,
102        PhonebookAccess,
103        HeadsetHS,
104        MessageAccessServer,
105        MessageNotificationServer,
106        MessageAccessProfile,
107        PnPInformation,
108        GenericNetworking,
109        GenericFileTransfer,
110        GenericAudio,
111        GenericTelephony,
112        VideoSource,
113        VideoSink,
114        VideoDistribution,
115        HDP,
116        HDPSource,
117        HDPSink,
118%If (Qt_5_3_0 -)
119        BasicImage,
120%End
121%If (Qt_5_3_0 -)
122        GNSS,
123%End
124%If (Qt_5_3_0 -)
125        GNSSServer,
126%End
127%If (Qt_5_3_0 -)
128        Display3D,
129%End
130%If (Qt_5_3_0 -)
131        Glasses3D,
132%End
133%If (Qt_5_3_0 -)
134        Synchronization3D,
135%End
136%If (Qt_5_3_0 -)
137        MPSProfile,
138%End
139%If (Qt_5_3_0 -)
140        MPSService,
141%End
142%If (Qt_5_4_0 -)
143        GenericAccess,
144%End
145%If (Qt_5_4_0 -)
146        GenericAttribute,
147%End
148%If (Qt_5_4_0 -)
149        ImmediateAlert,
150%End
151%If (Qt_5_4_0 -)
152        LinkLoss,
153%End
154%If (Qt_5_4_0 -)
155        TxPower,
156%End
157%If (Qt_5_4_0 -)
158        CurrentTimeService,
159%End
160%If (Qt_5_4_0 -)
161        ReferenceTimeUpdateService,
162%End
163%If (Qt_5_4_0 -)
164        NextDSTChangeService,
165%End
166%If (Qt_5_4_0 -)
167        Glucose,
168%End
169%If (Qt_5_4_0 -)
170        HealthThermometer,
171%End
172%If (Qt_5_4_0 -)
173        DeviceInformation,
174%End
175%If (Qt_5_4_0 -)
176        HeartRate,
177%End
178%If (Qt_5_4_0 -)
179        PhoneAlertStatusService,
180%End
181%If (Qt_5_4_0 -)
182        BatteryService,
183%End
184%If (Qt_5_4_0 -)
185        BloodPressure,
186%End
187%If (Qt_5_4_0 -)
188        AlertNotificationService,
189%End
190%If (Qt_5_4_0 -)
191        HumanInterfaceDevice,
192%End
193%If (Qt_5_4_0 -)
194        ScanParameters,
195%End
196%If (Qt_5_4_0 -)
197        RunningSpeedAndCadence,
198%End
199%If (Qt_5_4_0 -)
200        CyclingSpeedAndCadence,
201%End
202%If (Qt_5_4_0 -)
203        CyclingPower,
204%End
205%If (Qt_5_4_0 -)
206        LocationAndNavigation,
207%End
208%If (Qt_5_5_0 -)
209        EnvironmentalSensing,
210%End
211%If (Qt_5_5_0 -)
212        BodyComposition,
213%End
214%If (Qt_5_5_0 -)
215        UserData,
216%End
217%If (Qt_5_5_0 -)
218        WeightScale,
219%End
220%If (Qt_5_5_0 -)
221        BondManagement,
222%End
223%If (Qt_5_5_0 -)
224        ContinuousGlucoseMonitoring,
225%End
226    };
227
228    QBluetoothUuid();
229    explicit QBluetoothUuid(quint32 uuid);
230    explicit QBluetoothUuid(quint128 uuid);
231    explicit QBluetoothUuid(const QString &uuid);
232    QBluetoothUuid(const QBluetoothUuid &uuid);
233    QBluetoothUuid(const QUuid &uuid);
234    ~QBluetoothUuid();
235    bool operator==(const QBluetoothUuid &other) const;
236%If (Qt_5_7_0 -)
237    bool operator!=(const QBluetoothUuid &other) const;
238%End
239    int minimumSize() const;
240    quint16 toUInt16(bool *ok = 0) const;
241    quint32 toUInt32(bool *ok = 0) const;
242    quint128 toUInt128() const;
243%If (Qt_5_4_0 -)
244
245    enum CharacteristicType
246    {
247        DeviceName,
248        Appearance,
249        PeripheralPrivacyFlag,
250        ReconnectionAddress,
251        PeripheralPreferredConnectionParameters,
252        ServiceChanged,
253        AlertLevel,
254        TxPowerLevel,
255        DateTime,
256        DayOfWeek,
257        DayDateTime,
258        ExactTime256,
259        DSTOffset,
260        TimeZone,
261        LocalTimeInformation,
262        TimeWithDST,
263        TimeAccuracy,
264        TimeSource,
265        ReferenceTimeInformation,
266        TimeUpdateControlPoint,
267        TimeUpdateState,
268        GlucoseMeasurement,
269        BatteryLevel,
270        TemperatureMeasurement,
271        TemperatureType,
272        IntermediateTemperature,
273        MeasurementInterval,
274        BootKeyboardInputReport,
275        SystemID,
276        ModelNumberString,
277        SerialNumberString,
278        FirmwareRevisionString,
279        HardwareRevisionString,
280        SoftwareRevisionString,
281        ManufacturerNameString,
282        IEEE1107320601RegulatoryCertificationDataList,
283        CurrentTime,
284        ScanRefresh,
285        BootKeyboardOutputReport,
286        BootMouseInputReport,
287        GlucoseMeasurementContext,
288        BloodPressureMeasurement,
289        IntermediateCuffPressure,
290        HeartRateMeasurement,
291        BodySensorLocation,
292        HeartRateControlPoint,
293        AlertStatus,
294        RingerControlPoint,
295        RingerSetting,
296        AlertCategoryIDBitMask,
297        AlertCategoryID,
298        AlertNotificationControlPoint,
299        UnreadAlertStatus,
300        NewAlert,
301        SupportedNewAlertCategory,
302        SupportedUnreadAlertCategory,
303        BloodPressureFeature,
304        HIDInformation,
305        ReportMap,
306        HIDControlPoint,
307        Report,
308        ProtocolMode,
309        ScanIntervalWindow,
310        PnPID,
311        GlucoseFeature,
312        RecordAccessControlPoint,
313        RSCMeasurement,
314        RSCFeature,
315        SCControlPoint,
316        CSCMeasurement,
317        CSCFeature,
318        SensorLocation,
319        CyclingPowerMeasurement,
320        CyclingPowerVector,
321        CyclingPowerFeature,
322        CyclingPowerControlPoint,
323        LocationAndSpeed,
324        Navigation,
325        PositionQuality,
326        LNFeature,
327        LNControlPoint,
328%If (Qt_5_5_0 -)
329        MagneticDeclination,
330%End
331%If (Qt_5_5_0 -)
332        Elevation,
333%End
334%If (Qt_5_5_0 -)
335        Pressure,
336%End
337%If (Qt_5_5_0 -)
338        Temperature,
339%End
340%If (Qt_5_5_0 -)
341        Humidity,
342%End
343%If (Qt_5_5_0 -)
344        TrueWindSpeed,
345%End
346%If (Qt_5_5_0 -)
347        TrueWindDirection,
348%End
349%If (Qt_5_5_0 -)
350        ApparentWindSpeed,
351%End
352%If (Qt_5_5_0 -)
353        ApparentWindDirection,
354%End
355%If (Qt_5_5_0 -)
356        GustFactor,
357%End
358%If (Qt_5_5_0 -)
359        PollenConcentration,
360%End
361%If (Qt_5_5_0 -)
362        UVIndex,
363%End
364%If (Qt_5_5_0 -)
365        Irradiance,
366%End
367%If (Qt_5_5_0 -)
368        Rainfall,
369%End
370%If (Qt_5_5_0 -)
371        WindChill,
372%End
373%If (Qt_5_5_0 -)
374        HeatIndex,
375%End
376%If (Qt_5_5_0 -)
377        DewPoint,
378%End
379%If (Qt_5_5_0 -)
380        DescriptorValueChanged,
381%End
382%If (Qt_5_5_0 -)
383        AerobicHeartRateLowerLimit,
384%End
385%If (Qt_5_5_0 -)
386        AerobicThreshold,
387%End
388%If (Qt_5_5_0 -)
389        Age,
390%End
391%If (Qt_5_5_0 -)
392        AnaerobicHeartRateLowerLimit,
393%End
394%If (Qt_5_5_0 -)
395        AnaerobicHeartRateUpperLimit,
396%End
397%If (Qt_5_5_0 -)
398        AnaerobicThreshold,
399%End
400%If (Qt_5_5_0 -)
401        AerobicHeartRateUpperLimit,
402%End
403%If (Qt_5_5_0 -)
404        DateOfBirth,
405%End
406%If (Qt_5_5_0 -)
407        DateOfThresholdAssessment,
408%End
409%If (Qt_5_5_0 -)
410        EmailAddress,
411%End
412%If (Qt_5_5_0 -)
413        FatBurnHeartRateLowerLimit,
414%End
415%If (Qt_5_5_0 -)
416        FatBurnHeartRateUpperLimit,
417%End
418%If (Qt_5_5_0 -)
419        FirstName,
420%End
421%If (Qt_5_5_0 -)
422        FiveZoneHeartRateLimits,
423%End
424%If (Qt_5_5_0 -)
425        Gender,
426%End
427%If (Qt_5_5_0 -)
428        HeartRateMax,
429%End
430%If (Qt_5_5_0 -)
431        Height,
432%End
433%If (Qt_5_5_0 -)
434        HipCircumference,
435%End
436%If (Qt_5_5_0 -)
437        LastName,
438%End
439%If (Qt_5_5_0 -)
440        MaximumRecommendedHeartRate,
441%End
442%If (Qt_5_5_0 -)
443        RestingHeartRate,
444%End
445%If (Qt_5_5_0 -)
446        SportTypeForAerobicAnaerobicThresholds,
447%End
448%If (Qt_5_5_0 -)
449        ThreeZoneHeartRateLimits,
450%End
451%If (Qt_5_5_0 -)
452        TwoZoneHeartRateLimits,
453%End
454%If (Qt_5_5_0 -)
455        VO2Max,
456%End
457%If (Qt_5_5_0 -)
458        WaistCircumference,
459%End
460%If (Qt_5_5_0 -)
461        Weight,
462%End
463%If (Qt_5_5_0 -)
464        DatabaseChangeIncrement,
465%End
466%If (Qt_5_5_0 -)
467        UserIndex,
468%End
469%If (Qt_5_5_0 -)
470        BodyCompositionFeature,
471%End
472%If (Qt_5_5_0 -)
473        BodyCompositionMeasurement,
474%End
475%If (Qt_5_5_0 -)
476        WeightMeasurement,
477%End
478%If (Qt_5_5_0 -)
479        WeightScaleFeature,
480%End
481%If (Qt_5_5_0 -)
482        UserControlPoint,
483%End
484%If (Qt_5_5_0 -)
485        MagneticFluxDensity2D,
486%End
487%If (Qt_5_5_0 -)
488        MagneticFluxDensity3D,
489%End
490%If (Qt_5_5_0 -)
491        Language,
492%End
493%If (Qt_5_5_0 -)
494        BarometricPressureTrend,
495%End
496    };
497
498%End
499%If (Qt_5_4_0 -)
500
501    enum DescriptorType
502    {
503        UnknownDescriptorType,
504        CharacteristicExtendedProperties,
505        CharacteristicUserDescription,
506        ClientCharacteristicConfiguration,
507        ServerCharacteristicConfiguration,
508        CharacteristicPresentationFormat,
509        CharacteristicAggregateFormat,
510        ValidRange,
511        ExternalReportReference,
512        ReportReference,
513%If (Qt_5_5_0 -)
514        EnvironmentalSensingConfiguration,
515%End
516%If (Qt_5_5_0 -)
517        EnvironmentalSensingMeasurement,
518%End
519%If (Qt_5_5_0 -)
520        EnvironmentalSensingTriggerSetting,
521%End
522    };
523
524%End
525%If (Qt_5_4_0 -)
526    static QString serviceClassToString(QBluetoothUuid::ServiceClassUuid uuid);
527%End
528%If (Qt_5_4_0 -)
529    static QString protocolToString(QBluetoothUuid::ProtocolUuid uuid);
530%End
531%If (Qt_5_4_0 -)
532    static QString characteristicToString(QBluetoothUuid::CharacteristicType uuid);
533%End
534%If (Qt_5_4_0 -)
535    static QString descriptorToString(QBluetoothUuid::DescriptorType uuid);
536%End
537};
538
539%End
540%If (Qt_5_12_0 -)
541QDataStream &operator<<(QDataStream &s, const QBluetoothUuid &uuid /Constrained/) /ReleaseGIL/;
542%End
543%If (Qt_5_12_0 -)
544QDataStream &operator>>(QDataStream &s, QBluetoothUuid &uuid /Constrained/) /ReleaseGIL/;
545%End
546