qbluetoothdeviceinfo.sip 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. // qbluetoothdeviceinfo.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 QBluetoothDeviceInfo
  23. {
  24. %TypeHeaderCode
  25. #include <qbluetoothdeviceinfo.h>
  26. %End
  27. public:
  28. enum MajorDeviceClass
  29. {
  30. MiscellaneousDevice,
  31. ComputerDevice,
  32. PhoneDevice,
  33. NetworkDevice,
  34. AudioVideoDevice,
  35. PeripheralDevice,
  36. ImagingDevice,
  37. WearableDevice,
  38. ToyDevice,
  39. HealthDevice,
  40. UncategorizedDevice,
  41. };
  42. enum MinorMiscellaneousClass
  43. {
  44. UncategorizedMiscellaneous,
  45. };
  46. enum MinorComputerClass
  47. {
  48. UncategorizedComputer,
  49. DesktopComputer,
  50. ServerComputer,
  51. LaptopComputer,
  52. HandheldClamShellComputer,
  53. HandheldComputer,
  54. WearableComputer,
  55. };
  56. enum MinorPhoneClass
  57. {
  58. UncategorizedPhone,
  59. CellularPhone,
  60. CordlessPhone,
  61. SmartPhone,
  62. WiredModemOrVoiceGatewayPhone,
  63. CommonIsdnAccessPhone,
  64. };
  65. enum MinorNetworkClass
  66. {
  67. NetworkFullService,
  68. NetworkLoadFactorOne,
  69. NetworkLoadFactorTwo,
  70. NetworkLoadFactorThree,
  71. NetworkLoadFactorFour,
  72. NetworkLoadFactorFive,
  73. NetworkLoadFactorSix,
  74. NetworkNoService,
  75. };
  76. enum MinorAudioVideoClass
  77. {
  78. UncategorizedAudioVideoDevice,
  79. WearableHeadsetDevice,
  80. HandsFreeDevice,
  81. Microphone,
  82. Loudspeaker,
  83. Headphones,
  84. PortableAudioDevice,
  85. CarAudio,
  86. SetTopBox,
  87. HiFiAudioDevice,
  88. Vcr,
  89. VideoCamera,
  90. Camcorder,
  91. VideoMonitor,
  92. VideoDisplayAndLoudspeaker,
  93. VideoConferencing,
  94. GamingDevice,
  95. };
  96. enum MinorPeripheralClass
  97. {
  98. UncategorizedPeripheral,
  99. KeyboardPeripheral,
  100. PointingDevicePeripheral,
  101. KeyboardWithPointingDevicePeripheral,
  102. JoystickPeripheral,
  103. GamepadPeripheral,
  104. RemoteControlPeripheral,
  105. SensingDevicePeripheral,
  106. DigitizerTabletPeripheral,
  107. CardReaderPeripheral,
  108. };
  109. enum MinorImagingClass
  110. {
  111. UncategorizedImagingDevice,
  112. ImageDisplay,
  113. ImageCamera,
  114. ImageScanner,
  115. ImagePrinter,
  116. };
  117. enum MinorWearableClass
  118. {
  119. UncategorizedWearableDevice,
  120. WearableWristWatch,
  121. WearablePager,
  122. WearableJacket,
  123. WearableHelmet,
  124. WearableGlasses,
  125. };
  126. enum MinorToyClass
  127. {
  128. UncategorizedToy,
  129. ToyRobot,
  130. ToyVehicle,
  131. ToyDoll,
  132. ToyController,
  133. ToyGame,
  134. };
  135. enum MinorHealthClass
  136. {
  137. UncategorizedHealthDevice,
  138. HealthBloodPressureMonitor,
  139. HealthThermometer,
  140. HealthWeightScale,
  141. HealthGlucoseMeter,
  142. HealthPulseOximeter,
  143. HealthDataDisplay,
  144. HealthStepCounter,
  145. };
  146. enum ServiceClass /BaseType=Flag/
  147. {
  148. NoService,
  149. PositioningService,
  150. NetworkingService,
  151. RenderingService,
  152. CapturingService,
  153. ObjectTransferService,
  154. AudioService,
  155. TelephonyService,
  156. InformationService,
  157. AllServices,
  158. };
  159. typedef QFlags<QBluetoothDeviceInfo::ServiceClass> ServiceClasses;
  160. QBluetoothDeviceInfo();
  161. QBluetoothDeviceInfo(const QBluetoothAddress &address, const QString &name, quint32 classOfDevice);
  162. QBluetoothDeviceInfo(const QBluetoothUuid &uuid, const QString &name, quint32 classOfDevice);
  163. QBluetoothDeviceInfo(const QBluetoothDeviceInfo &other);
  164. ~QBluetoothDeviceInfo();
  165. bool isValid() const;
  166. bool isCached() const;
  167. void setCached(bool cached);
  168. QBluetoothAddress address() const;
  169. QString name() const;
  170. QBluetoothDeviceInfo::ServiceClasses serviceClasses() const;
  171. QBluetoothDeviceInfo::MajorDeviceClass majorDeviceClass() const;
  172. quint8 minorDeviceClass() const;
  173. qint16 rssi() const;
  174. void setRssi(qint16 signal);
  175. void setServiceUuids(const QList<QBluetoothUuid> &uuids);
  176. QList<QBluetoothUuid> serviceUuids() const;
  177. enum CoreConfiguration /BaseType=Flag/
  178. {
  179. UnknownCoreConfiguration,
  180. LowEnergyCoreConfiguration,
  181. BaseRateCoreConfiguration,
  182. BaseRateAndLowEnergyCoreConfiguration,
  183. };
  184. typedef QFlags<QBluetoothDeviceInfo::CoreConfiguration> CoreConfigurations;
  185. void setCoreConfigurations(QBluetoothDeviceInfo::CoreConfigurations coreConfigs);
  186. QBluetoothDeviceInfo::CoreConfigurations coreConfigurations() const;
  187. void setDeviceUuid(const QBluetoothUuid &uuid);
  188. QBluetoothUuid deviceUuid() const;
  189. enum class Field /BaseType=Flag/
  190. {
  191. None,
  192. RSSI,
  193. ManufacturerData,
  194. %If (Qt_6_3_0 -)
  195. ServiceData,
  196. %End
  197. All,
  198. };
  199. typedef QFlags<QBluetoothDeviceInfo::Field> Fields;
  200. QList<unsigned short> manufacturerIds() const;
  201. QMultiHash<quint16, QByteArray> manufacturerData() const;
  202. QByteArray manufacturerData(quint16 manufacturerId) const;
  203. bool setManufacturerData(quint16 manufacturerId, const QByteArray &data);
  204. void setName(const QString &name);
  205. %If (Qt_6_3_0 -)
  206. QList<QBluetoothUuid> serviceIds() const;
  207. %End
  208. %If (Qt_6_3_0 -)
  209. QMultiHash<QBluetoothUuid, QByteArray> serviceData() const;
  210. %End
  211. %If (Qt_6_3_0 -)
  212. QByteArray serviceData(const QBluetoothUuid &serviceId) const;
  213. %End
  214. %If (Qt_6_3_0 -)
  215. bool setServiceData(const QBluetoothUuid &serviceId, const QByteArray &data);
  216. %End
  217. };
  218. %End
  219. %If (Qt_6_2_0 -)
  220. bool operator==(const QBluetoothDeviceInfo &a, const QBluetoothDeviceInfo &b);
  221. %End
  222. %If (Qt_6_2_0 -)
  223. bool operator!=(const QBluetoothDeviceInfo &a, const QBluetoothDeviceInfo &b);
  224. %End