qbluetoothuuid.sip 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. // qbluetoothuuid.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtBluetooth Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. %If (Qt_6_2_0 -)
  22. class QBluetoothUuid : public QUuid
  23. {
  24. %TypeHeaderCode
  25. #include <qbluetoothuuid.h>
  26. %End
  27. public:
  28. enum class ProtocolUuid
  29. {
  30. Sdp,
  31. Udp,
  32. Rfcomm,
  33. Tcp,
  34. TcsBin,
  35. TcsAt,
  36. Att,
  37. Obex,
  38. Ip,
  39. Ftp,
  40. Http,
  41. Wsp,
  42. Bnep,
  43. Upnp,
  44. Hidp,
  45. HardcopyControlChannel,
  46. HardcopyDataChannel,
  47. HardcopyNotification,
  48. Avctp,
  49. Avdtp,
  50. Cmtp,
  51. UdiCPlain,
  52. McapControlChannel,
  53. McapDataChannel,
  54. L2cap,
  55. };
  56. enum class ServiceClassUuid
  57. {
  58. ServiceDiscoveryServer,
  59. BrowseGroupDescriptor,
  60. PublicBrowseGroup,
  61. SerialPort,
  62. LANAccessUsingPPP,
  63. DialupNetworking,
  64. IrMCSync,
  65. ObexObjectPush,
  66. OBEXFileTransfer,
  67. IrMCSyncCommand,
  68. Headset,
  69. AudioSource,
  70. AudioSink,
  71. AV_RemoteControlTarget,
  72. AdvancedAudioDistribution,
  73. AV_RemoteControl,
  74. AV_RemoteControlController,
  75. HeadsetAG,
  76. PANU,
  77. NAP,
  78. GN,
  79. DirectPrinting,
  80. ReferencePrinting,
  81. BasicImage,
  82. ImagingResponder,
  83. ImagingAutomaticArchive,
  84. ImagingReferenceObjects,
  85. Handsfree,
  86. HandsfreeAudioGateway,
  87. DirectPrintingReferenceObjectsService,
  88. ReflectedUI,
  89. BasicPrinting,
  90. PrintingStatus,
  91. HumanInterfaceDeviceService,
  92. HardcopyCableReplacement,
  93. HCRPrint,
  94. HCRScan,
  95. SIMAccess,
  96. PhonebookAccessPCE,
  97. PhonebookAccessPSE,
  98. PhonebookAccess,
  99. HeadsetHS,
  100. MessageAccessServer,
  101. MessageNotificationServer,
  102. MessageAccessProfile,
  103. GNSS,
  104. GNSSServer,
  105. Display3D,
  106. Glasses3D,
  107. Synchronization3D,
  108. MPSProfile,
  109. MPSService,
  110. PnPInformation,
  111. GenericNetworking,
  112. GenericFileTransfer,
  113. GenericAudio,
  114. GenericTelephony,
  115. VideoSource,
  116. VideoSink,
  117. VideoDistribution,
  118. HDP,
  119. HDPSource,
  120. HDPSink,
  121. GenericAccess,
  122. GenericAttribute,
  123. ImmediateAlert,
  124. LinkLoss,
  125. TxPower,
  126. CurrentTimeService,
  127. ReferenceTimeUpdateService,
  128. NextDSTChangeService,
  129. Glucose,
  130. HealthThermometer,
  131. DeviceInformation,
  132. HeartRate,
  133. PhoneAlertStatusService,
  134. BatteryService,
  135. BloodPressure,
  136. AlertNotificationService,
  137. HumanInterfaceDevice,
  138. ScanParameters,
  139. RunningSpeedAndCadence,
  140. CyclingSpeedAndCadence,
  141. CyclingPower,
  142. LocationAndNavigation,
  143. EnvironmentalSensing,
  144. BodyComposition,
  145. UserData,
  146. WeightScale,
  147. BondManagement,
  148. ContinuousGlucoseMonitoring,
  149. };
  150. enum class CharacteristicType
  151. {
  152. DeviceName,
  153. Appearance,
  154. PeripheralPrivacyFlag,
  155. ReconnectionAddress,
  156. PeripheralPreferredConnectionParameters,
  157. ServiceChanged,
  158. AlertLevel,
  159. TxPowerLevel,
  160. DateTime,
  161. DayOfWeek,
  162. DayDateTime,
  163. ExactTime256,
  164. DSTOffset,
  165. TimeZone,
  166. LocalTimeInformation,
  167. TimeWithDST,
  168. TimeAccuracy,
  169. TimeSource,
  170. ReferenceTimeInformation,
  171. TimeUpdateControlPoint,
  172. TimeUpdateState,
  173. GlucoseMeasurement,
  174. BatteryLevel,
  175. TemperatureMeasurement,
  176. TemperatureType,
  177. IntermediateTemperature,
  178. MeasurementInterval,
  179. BootKeyboardInputReport,
  180. SystemID,
  181. ModelNumberString,
  182. SerialNumberString,
  183. FirmwareRevisionString,
  184. HardwareRevisionString,
  185. SoftwareRevisionString,
  186. ManufacturerNameString,
  187. IEEE1107320601RegulatoryCertificationDataList,
  188. CurrentTime,
  189. MagneticDeclination,
  190. ScanRefresh,
  191. BootKeyboardOutputReport,
  192. BootMouseInputReport,
  193. GlucoseMeasurementContext,
  194. BloodPressureMeasurement,
  195. IntermediateCuffPressure,
  196. HeartRateMeasurement,
  197. BodySensorLocation,
  198. HeartRateControlPoint,
  199. AlertStatus,
  200. RingerControlPoint,
  201. RingerSetting,
  202. AlertCategoryIDBitMask,
  203. AlertCategoryID,
  204. AlertNotificationControlPoint,
  205. UnreadAlertStatus,
  206. NewAlert,
  207. SupportedNewAlertCategory,
  208. SupportedUnreadAlertCategory,
  209. BloodPressureFeature,
  210. HIDInformation,
  211. ReportMap,
  212. HIDControlPoint,
  213. Report,
  214. ProtocolMode,
  215. ScanIntervalWindow,
  216. PnPID,
  217. GlucoseFeature,
  218. RecordAccessControlPoint,
  219. RSCMeasurement,
  220. RSCFeature,
  221. SCControlPoint,
  222. CSCMeasurement,
  223. CSCFeature,
  224. SensorLocation,
  225. CyclingPowerMeasurement,
  226. CyclingPowerVector,
  227. CyclingPowerFeature,
  228. CyclingPowerControlPoint,
  229. LocationAndSpeed,
  230. Navigation,
  231. PositionQuality,
  232. LNFeature,
  233. LNControlPoint,
  234. Elevation,
  235. Pressure,
  236. Temperature,
  237. Humidity,
  238. TrueWindSpeed,
  239. TrueWindDirection,
  240. ApparentWindSpeed,
  241. ApparentWindDirection,
  242. GustFactor,
  243. PollenConcentration,
  244. UVIndex,
  245. Irradiance,
  246. Rainfall,
  247. WindChill,
  248. HeatIndex,
  249. DewPoint,
  250. DescriptorValueChanged,
  251. AerobicHeartRateLowerLimit,
  252. AerobicThreshold,
  253. Age,
  254. AnaerobicHeartRateLowerLimit,
  255. AnaerobicHeartRateUpperLimit,
  256. AnaerobicThreshold,
  257. AerobicHeartRateUpperLimit,
  258. DateOfBirth,
  259. DateOfThresholdAssessment,
  260. EmailAddress,
  261. FatBurnHeartRateLowerLimit,
  262. FatBurnHeartRateUpperLimit,
  263. FirstName,
  264. FiveZoneHeartRateLimits,
  265. Gender,
  266. HeartRateMax,
  267. Height,
  268. HipCircumference,
  269. LastName,
  270. MaximumRecommendedHeartRate,
  271. RestingHeartRate,
  272. SportTypeForAerobicAnaerobicThresholds,
  273. ThreeZoneHeartRateLimits,
  274. TwoZoneHeartRateLimits,
  275. VO2Max,
  276. WaistCircumference,
  277. Weight,
  278. DatabaseChangeIncrement,
  279. UserIndex,
  280. BodyCompositionFeature,
  281. BodyCompositionMeasurement,
  282. WeightMeasurement,
  283. WeightScaleFeature,
  284. UserControlPoint,
  285. MagneticFluxDensity2D,
  286. MagneticFluxDensity3D,
  287. Language,
  288. BarometricPressureTrend,
  289. };
  290. enum class DescriptorType
  291. {
  292. UnknownDescriptorType,
  293. CharacteristicExtendedProperties,
  294. CharacteristicUserDescription,
  295. ClientCharacteristicConfiguration,
  296. ServerCharacteristicConfiguration,
  297. CharacteristicPresentationFormat,
  298. CharacteristicAggregateFormat,
  299. ValidRange,
  300. ExternalReportReference,
  301. ReportReference,
  302. EnvironmentalSensingConfiguration,
  303. EnvironmentalSensingMeasurement,
  304. EnvironmentalSensingTriggerSetting,
  305. };
  306. QBluetoothUuid();
  307. QBluetoothUuid(QBluetoothUuid::ProtocolUuid uuid);
  308. QBluetoothUuid(QBluetoothUuid::ServiceClassUuid uuid);
  309. QBluetoothUuid(QBluetoothUuid::CharacteristicType uuid);
  310. QBluetoothUuid(QBluetoothUuid::DescriptorType uuid);
  311. explicit QBluetoothUuid(quint32 uuid);
  312. %If (Qt_6_6_0 -)
  313. QBluetoothUuid(quint128 uuid, QSysInfo::Endian order = QSysInfo::BigEndian);
  314. %End
  315. %If (- Qt_6_6_0)
  316. explicit QBluetoothUuid(quint128 uuid);
  317. %End
  318. explicit QBluetoothUuid(const QString &uuid);
  319. QBluetoothUuid(const QBluetoothUuid &uuid);
  320. QBluetoothUuid(const QUuid &uuid);
  321. ~QBluetoothUuid();
  322. int minimumSize() const;
  323. quint16 toUInt16(bool *ok = 0) const;
  324. quint32 toUInt32(bool *ok = 0) const;
  325. quint128 toUInt128() const;
  326. static QString serviceClassToString(QBluetoothUuid::ServiceClassUuid uuid);
  327. static QString protocolToString(QBluetoothUuid::ProtocolUuid uuid);
  328. static QString characteristicToString(QBluetoothUuid::CharacteristicType uuid);
  329. static QString descriptorToString(QBluetoothUuid::DescriptorType uuid);
  330. %If (Qt_6_7_0 -)
  331. // This is reimplemented because the == and != operators prevent the
  332. // super-class's implementation from being inherited.
  333. Py_hash_t __hash__() const;
  334. %MethodCode
  335. sipRes = qHash(*sipCpp);
  336. %End
  337. %End
  338. };
  339. %End
  340. %If (Qt_6_2_0 -)
  341. QDataStream &operator<<(QDataStream &s, const QBluetoothUuid &uuid) /ReleaseGIL/;
  342. %End
  343. %If (Qt_6_2_0 -)
  344. QDataStream &operator>>(QDataStream &s, QBluetoothUuid &uuid /Constrained/) /ReleaseGIL/;
  345. %End
  346. %If (Qt_6_2_0 -)
  347. bool operator==(const QBluetoothUuid &a, const QBluetoothUuid &b);
  348. %End
  349. %If (Qt_6_2_0 -)
  350. bool operator!=(const QBluetoothUuid &a, const QBluetoothUuid &b);
  351. %End