QtBluetooth.pyi 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  1. # Copyright (C) 2022 The Qt Company Ltd.
  2. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. """
  4. This file contains the exact signatures for all functions in module
  5. PySide6.QtBluetooth, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtBluetooth`
  9. import PySide6.QtBluetooth
  10. import PySide6.QtCore
  11. import os
  12. import enum
  13. import typing
  14. import collections.abc
  15. from PySide6.QtCore import Signal
  16. from shiboken6 import Shiboken
  17. class QBluetooth(Shiboken.Object):
  18. class AttAccessConstraint(enum.Flag):
  19. AttAuthorizationRequired = 0x1
  20. AttAuthenticationRequired = 0x2
  21. AttEncryptionRequired = 0x4
  22. class Security(enum.Flag):
  23. NoSecurity = 0x0
  24. Authorization = 0x1
  25. Authentication = 0x2
  26. Encryption = 0x4
  27. Secure = 0x8
  28. class QBluetoothAddress(Shiboken.Object):
  29. @typing.overload
  30. def __init__(self, /) -> None: ...
  31. @typing.overload
  32. def __init__(self, other: PySide6.QtBluetooth.QBluetoothAddress, /) -> None: ...
  33. @typing.overload
  34. def __init__(self, address: str, /) -> None: ...
  35. @typing.overload
  36. def __init__(self, address: int, /) -> None: ...
  37. def __copy__(self, /) -> typing.Self: ...
  38. def __eq__(self, b: PySide6.QtBluetooth.QBluetoothAddress, /) -> bool: ...
  39. def __hash__(self, /) -> int: ...
  40. def __lt__(self, b: PySide6.QtBluetooth.QBluetoothAddress, /) -> bool: ...
  41. def __ne__(self, b: PySide6.QtBluetooth.QBluetoothAddress, /) -> bool: ...
  42. def __repr__(self, /) -> str: ...
  43. def clear(self, /) -> None: ...
  44. def isNull(self, /) -> bool: ...
  45. def toString(self, /) -> str: ...
  46. def toUInt64(self, /) -> int: ...
  47. class QBluetoothDeviceDiscoveryAgent(PySide6.QtCore.QObject):
  48. canceled : typing.ClassVar[Signal] = ... # canceled()
  49. deviceDiscovered : typing.ClassVar[Signal] = ... # deviceDiscovered(QBluetoothDeviceInfo)
  50. deviceUpdated : typing.ClassVar[Signal] = ... # deviceUpdated(QBluetoothDeviceInfo,QBluetoothDeviceInfo::Fields)
  51. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QBluetoothDeviceDiscoveryAgent::Error)
  52. finished : typing.ClassVar[Signal] = ... # finished()
  53. class DiscoveryMethod(enum.Flag):
  54. NoMethod = 0x0
  55. ClassicMethod = 0x1
  56. LowEnergyMethod = 0x2
  57. class Error(enum.Enum):
  58. NoError = 0x0
  59. InputOutputError = 0x1
  60. PoweredOffError = 0x2
  61. InvalidBluetoothAdapterError = 0x3
  62. UnsupportedPlatformError = 0x4
  63. UnsupportedDiscoveryMethod = 0x5
  64. LocationServiceTurnedOffError = 0x6
  65. MissingPermissionsError = 0x7
  66. UnknownError = 0x64
  67. @typing.overload
  68. def __init__(self, deviceAdapter: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  69. @typing.overload
  70. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  71. def discoveredDevices(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothDeviceInfo]: ...
  72. def error(self, /) -> PySide6.QtBluetooth.QBluetoothDeviceDiscoveryAgent.Error: ...
  73. def errorString(self, /) -> str: ...
  74. def isActive(self, /) -> bool: ...
  75. def lowEnergyDiscoveryTimeout(self, /) -> int: ...
  76. def setLowEnergyDiscoveryTimeout(self, msTimeout: int, /) -> None: ...
  77. @typing.overload
  78. def start(self, /) -> None: ...
  79. @typing.overload
  80. def start(self, method: PySide6.QtBluetooth.QBluetoothDeviceDiscoveryAgent.DiscoveryMethod, /) -> None: ...
  81. def stop(self, /) -> None: ...
  82. @staticmethod
  83. def supportedDiscoveryMethods() -> PySide6.QtBluetooth.QBluetoothDeviceDiscoveryAgent.DiscoveryMethod: ...
  84. class QBluetoothDeviceInfo(Shiboken.Object):
  85. class CoreConfiguration(enum.Flag):
  86. UnknownCoreConfiguration = 0x0
  87. LowEnergyCoreConfiguration = 0x1
  88. BaseRateCoreConfiguration = 0x2
  89. BaseRateAndLowEnergyCoreConfiguration = 0x3
  90. class Field(enum.Flag):
  91. None_ = 0x0
  92. RSSI = 0x1
  93. ManufacturerData = 0x2
  94. ServiceData = 0x4
  95. All = 0x7fff
  96. class MajorDeviceClass(enum.Enum):
  97. MiscellaneousDevice = 0x0
  98. ComputerDevice = 0x1
  99. PhoneDevice = 0x2
  100. NetworkDevice = 0x3
  101. AudioVideoDevice = 0x4
  102. PeripheralDevice = 0x5
  103. ImagingDevice = 0x6
  104. WearableDevice = 0x7
  105. ToyDevice = 0x8
  106. HealthDevice = 0x9
  107. UncategorizedDevice = 0x1f
  108. class MinorAudioVideoClass(enum.Enum):
  109. UncategorizedAudioVideoDevice = 0x0
  110. WearableHeadsetDevice = 0x1
  111. HandsFreeDevice = 0x2
  112. Microphone = 0x4
  113. Loudspeaker = 0x5
  114. Headphones = 0x6
  115. PortableAudioDevice = 0x7
  116. CarAudio = 0x8
  117. SetTopBox = 0x9
  118. HiFiAudioDevice = 0xa
  119. Vcr = 0xb
  120. VideoCamera = 0xc
  121. Camcorder = 0xd
  122. VideoMonitor = 0xe
  123. VideoDisplayAndLoudspeaker = 0xf
  124. VideoConferencing = 0x10
  125. GamingDevice = 0x12
  126. class MinorComputerClass(enum.Enum):
  127. UncategorizedComputer = 0x0
  128. DesktopComputer = 0x1
  129. ServerComputer = 0x2
  130. LaptopComputer = 0x3
  131. HandheldClamShellComputer = 0x4
  132. HandheldComputer = 0x5
  133. WearableComputer = 0x6
  134. class MinorHealthClass(enum.Enum):
  135. UncategorizedHealthDevice = 0x0
  136. HealthBloodPressureMonitor = 0x1
  137. HealthThermometer = 0x2
  138. HealthWeightScale = 0x3
  139. HealthGlucoseMeter = 0x4
  140. HealthPulseOximeter = 0x5
  141. HealthDataDisplay = 0x7
  142. HealthStepCounter = 0x8
  143. class MinorImagingClass(enum.Enum):
  144. UncategorizedImagingDevice = 0x0
  145. ImageDisplay = 0x4
  146. ImageCamera = 0x8
  147. ImageScanner = 0x10
  148. ImagePrinter = 0x20
  149. class MinorMiscellaneousClass(enum.Enum):
  150. UncategorizedMiscellaneous = 0x0
  151. class MinorNetworkClass(enum.Enum):
  152. NetworkFullService = 0x0
  153. NetworkLoadFactorOne = 0x8
  154. NetworkLoadFactorTwo = 0x10
  155. NetworkLoadFactorThree = 0x18
  156. NetworkLoadFactorFour = 0x20
  157. NetworkLoadFactorFive = 0x28
  158. NetworkLoadFactorSix = 0x30
  159. NetworkNoService = 0x38
  160. class MinorPeripheralClass(enum.Enum):
  161. UncategorizedPeripheral = 0x0
  162. JoystickPeripheral = 0x1
  163. GamepadPeripheral = 0x2
  164. RemoteControlPeripheral = 0x3
  165. SensingDevicePeripheral = 0x4
  166. DigitizerTabletPeripheral = 0x5
  167. CardReaderPeripheral = 0x6
  168. KeyboardPeripheral = 0x10
  169. PointingDevicePeripheral = 0x20
  170. KeyboardWithPointingDevicePeripheral = 0x30
  171. class MinorPhoneClass(enum.Enum):
  172. UncategorizedPhone = 0x0
  173. CellularPhone = 0x1
  174. CordlessPhone = 0x2
  175. SmartPhone = 0x3
  176. WiredModemOrVoiceGatewayPhone = 0x4
  177. CommonIsdnAccessPhone = 0x5
  178. class MinorToyClass(enum.Enum):
  179. UncategorizedToy = 0x0
  180. ToyRobot = 0x1
  181. ToyVehicle = 0x2
  182. ToyDoll = 0x3
  183. ToyController = 0x4
  184. ToyGame = 0x5
  185. class MinorWearableClass(enum.Enum):
  186. UncategorizedWearableDevice = 0x0
  187. WearableWristWatch = 0x1
  188. WearablePager = 0x2
  189. WearableJacket = 0x3
  190. WearableHelmet = 0x4
  191. WearableGlasses = 0x5
  192. class ServiceClass(enum.Flag):
  193. NoService = 0x0
  194. PositioningService = 0x1
  195. NetworkingService = 0x2
  196. RenderingService = 0x4
  197. CapturingService = 0x8
  198. ObjectTransferService = 0x10
  199. AudioService = 0x20
  200. TelephonyService = 0x40
  201. InformationService = 0x80
  202. AllServices = 0x7ff
  203. @typing.overload
  204. def __init__(self, /) -> None: ...
  205. @typing.overload
  206. def __init__(self, address: PySide6.QtBluetooth.QBluetoothAddress, name: str, classOfDevice: int, /) -> None: ...
  207. @typing.overload
  208. def __init__(self, other: PySide6.QtBluetooth.QBluetoothDeviceInfo, /) -> None: ...
  209. @typing.overload
  210. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, name: str, classOfDevice: int, /) -> None: ...
  211. def __copy__(self, /) -> typing.Self: ...
  212. def __eq__(self, b: PySide6.QtBluetooth.QBluetoothDeviceInfo, /) -> bool: ...
  213. def __ne__(self, b: PySide6.QtBluetooth.QBluetoothDeviceInfo, /) -> bool: ...
  214. def address(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  215. def coreConfigurations(self, /) -> PySide6.QtBluetooth.QBluetoothDeviceInfo.CoreConfiguration: ...
  216. def deviceUuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  217. def isCached(self, /) -> bool: ...
  218. def isValid(self, /) -> bool: ...
  219. def majorDeviceClass(self, /) -> PySide6.QtBluetooth.QBluetoothDeviceInfo.MajorDeviceClass: ...
  220. @typing.overload
  221. def manufacturerData(self, /) -> typing.Dict[int, PySide6.QtCore.QByteArray]: ...
  222. @typing.overload
  223. def manufacturerData(self, manufacturerId: int, /) -> PySide6.QtCore.QByteArray: ...
  224. def manufacturerIds(self, /) -> typing.List[int]: ...
  225. def minorDeviceClass(self, /) -> int: ...
  226. def name(self, /) -> str: ...
  227. def rssi(self, /) -> int: ...
  228. def serviceClasses(self, /) -> PySide6.QtBluetooth.QBluetoothDeviceInfo.ServiceClass: ...
  229. @typing.overload
  230. def serviceData(self, /) -> typing.Dict[PySide6.QtBluetooth.QBluetoothUuid, PySide6.QtCore.QByteArray]: ...
  231. @typing.overload
  232. def serviceData(self, serviceId: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> PySide6.QtCore.QByteArray: ...
  233. def serviceIds(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  234. def serviceUuids(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  235. def setCached(self, cached: bool, /) -> None: ...
  236. def setCoreConfigurations(self, coreConfigs: PySide6.QtBluetooth.QBluetoothDeviceInfo.CoreConfiguration, /) -> None: ...
  237. def setDeviceUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  238. def setManufacturerData(self, manufacturerId: int, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> bool: ...
  239. def setName(self, name: str, /) -> None: ...
  240. def setRssi(self, signal: int, /) -> None: ...
  241. def setServiceData(self, serviceId: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> bool: ...
  242. def setServiceUuids(self, uuids: collections.abc.Sequence[PySide6.QtBluetooth.QBluetoothUuid], /) -> None: ...
  243. class QBluetoothHostInfo(Shiboken.Object):
  244. @typing.overload
  245. def __init__(self, /) -> None: ...
  246. @typing.overload
  247. def __init__(self, other: PySide6.QtBluetooth.QBluetoothHostInfo, /) -> None: ...
  248. def __copy__(self, /) -> typing.Self: ...
  249. def __eq__(self, b: PySide6.QtBluetooth.QBluetoothHostInfo, /) -> bool: ...
  250. def __ne__(self, b: PySide6.QtBluetooth.QBluetoothHostInfo, /) -> bool: ...
  251. def address(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  252. def name(self, /) -> str: ...
  253. def setAddress(self, address: PySide6.QtBluetooth.QBluetoothAddress, /) -> None: ...
  254. def setName(self, name: str, /) -> None: ...
  255. class QBluetoothLocalDevice(PySide6.QtCore.QObject):
  256. deviceConnected : typing.ClassVar[Signal] = ... # deviceConnected(QBluetoothAddress)
  257. deviceDisconnected : typing.ClassVar[Signal] = ... # deviceDisconnected(QBluetoothAddress)
  258. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QBluetoothLocalDevice::Error)
  259. hostModeStateChanged : typing.ClassVar[Signal] = ... # hostModeStateChanged(QBluetoothLocalDevice::HostMode)
  260. pairingFinished : typing.ClassVar[Signal] = ... # pairingFinished(QBluetoothAddress,QBluetoothLocalDevice::Pairing)
  261. class Error(enum.Enum):
  262. NoError = 0x0
  263. PairingError = 0x1
  264. MissingPermissionsError = 0x2
  265. UnknownError = 0x64
  266. class HostMode(enum.Enum):
  267. HostPoweredOff = 0x0
  268. HostConnectable = 0x1
  269. HostDiscoverable = 0x2
  270. HostDiscoverableLimitedInquiry = 0x3
  271. class Pairing(enum.Enum):
  272. Unpaired = 0x0
  273. Paired = 0x1
  274. AuthorizedPaired = 0x2
  275. @typing.overload
  276. def __init__(self, address: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  277. @typing.overload
  278. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  279. def address(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  280. @staticmethod
  281. def allDevices() -> typing.List[PySide6.QtBluetooth.QBluetoothHostInfo]: ...
  282. def connectedDevices(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothAddress]: ...
  283. def hostMode(self, /) -> PySide6.QtBluetooth.QBluetoothLocalDevice.HostMode: ...
  284. def isValid(self, /) -> bool: ...
  285. def name(self, /) -> str: ...
  286. def pairingStatus(self, address: PySide6.QtBluetooth.QBluetoothAddress, /) -> PySide6.QtBluetooth.QBluetoothLocalDevice.Pairing: ...
  287. def powerOn(self, /) -> None: ...
  288. def requestPairing(self, address: PySide6.QtBluetooth.QBluetoothAddress, pairing: PySide6.QtBluetooth.QBluetoothLocalDevice.Pairing, /) -> None: ...
  289. def setHostMode(self, mode: PySide6.QtBluetooth.QBluetoothLocalDevice.HostMode, /) -> None: ...
  290. class QBluetoothServer(PySide6.QtCore.QObject):
  291. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QBluetoothServer::Error)
  292. newConnection : typing.ClassVar[Signal] = ... # newConnection()
  293. class Error(enum.Enum):
  294. NoError = 0x0
  295. UnknownError = 0x1
  296. PoweredOffError = 0x2
  297. InputOutputError = 0x3
  298. ServiceAlreadyRegisteredError = 0x4
  299. UnsupportedProtocolError = 0x5
  300. MissingPermissionsError = 0x6
  301. def __init__(self, serverType: PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  302. def close(self, /) -> None: ...
  303. def error(self, /) -> PySide6.QtBluetooth.QBluetoothServer.Error: ...
  304. def hasPendingConnections(self, /) -> bool: ...
  305. def isListening(self, /) -> bool: ...
  306. @typing.overload
  307. def listen(self, /, address: PySide6.QtBluetooth.QBluetoothAddress = ..., port: int | None = ...) -> bool: ...
  308. @typing.overload
  309. def listen(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /, serviceName: str = ...) -> PySide6.QtBluetooth.QBluetoothServiceInfo: ...
  310. def maxPendingConnections(self, /) -> int: ...
  311. def nextPendingConnection(self, /) -> PySide6.QtBluetooth.QBluetoothSocket: ...
  312. def securityFlags(self, /) -> PySide6.QtBluetooth.QBluetooth.Security: ...
  313. def serverAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  314. def serverPort(self, /) -> int: ...
  315. def serverType(self, /) -> PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol: ...
  316. def setMaxPendingConnections(self, numConnections: int, /) -> None: ...
  317. def setSecurityFlags(self, security: PySide6.QtBluetooth.QBluetooth.Security, /) -> None: ...
  318. class QBluetoothServiceDiscoveryAgent(PySide6.QtCore.QObject):
  319. canceled : typing.ClassVar[Signal] = ... # canceled()
  320. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QBluetoothServiceDiscoveryAgent::Error)
  321. finished : typing.ClassVar[Signal] = ... # finished()
  322. serviceDiscovered : typing.ClassVar[Signal] = ... # serviceDiscovered(QBluetoothServiceInfo)
  323. class DiscoveryMode(enum.Enum):
  324. MinimalDiscovery = 0x0
  325. FullDiscovery = 0x1
  326. class Error(enum.Enum):
  327. NoError = 0x0
  328. InputOutputError = 0x1
  329. PoweredOffError = 0x2
  330. InvalidBluetoothAdapterError = 0x3
  331. MissingPermissionsError = 0x7
  332. UnknownError = 0x64
  333. @typing.overload
  334. def __init__(self, deviceAdapter: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  335. @typing.overload
  336. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  337. def clear(self, /) -> None: ...
  338. def discoveredServices(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothServiceInfo]: ...
  339. def error(self, /) -> PySide6.QtBluetooth.QBluetoothServiceDiscoveryAgent.Error: ...
  340. def errorString(self, /) -> str: ...
  341. def isActive(self, /) -> bool: ...
  342. def remoteAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  343. def setRemoteAddress(self, address: PySide6.QtBluetooth.QBluetoothAddress, /) -> bool: ...
  344. @typing.overload
  345. def setUuidFilter(self, uuids: collections.abc.Sequence[PySide6.QtBluetooth.QBluetoothUuid], /) -> None: ...
  346. @typing.overload
  347. def setUuidFilter(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  348. def start(self, /, mode: PySide6.QtBluetooth.QBluetoothServiceDiscoveryAgent.DiscoveryMode = ...) -> None: ...
  349. def stop(self, /) -> None: ...
  350. def uuidFilter(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  351. class QBluetoothServiceInfo(Shiboken.Object):
  352. class Alternative(Shiboken.Object):
  353. @typing.overload
  354. def __init__(self, /) -> None: ...
  355. @typing.overload
  356. def __init__(self, Alternative: PySide6.QtBluetooth.QBluetoothServiceInfo.Alternative, /) -> None: ...
  357. @typing.overload
  358. def __init__(self, list: collections.abc.Sequence[typing.Any], /) -> None: ...
  359. def __add__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  360. def __copy__(self, /) -> typing.Self: ...
  361. def __iadd__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  362. def __lshift__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  363. @typing.overload
  364. def append(self, l: collections.abc.Sequence[typing.Any], /) -> None: ...
  365. @typing.overload
  366. def append(self, arg__1: typing.Any, /) -> None: ...
  367. def at(self, i: int, /) -> typing.Any: ...
  368. def back(self, /) -> typing.Any: ...
  369. def capacity(self, /) -> int: ...
  370. def clear(self, /) -> None: ...
  371. def constData(self, /) -> object: ...
  372. def constFirst(self, /) -> typing.Any: ...
  373. def constLast(self, /) -> typing.Any: ...
  374. def count(self, /) -> int: ...
  375. def data(self, /) -> object: ...
  376. def empty(self, /) -> bool: ...
  377. @typing.overload
  378. def first(self, /) -> typing.Any: ...
  379. @typing.overload
  380. def first(self, n: int, /) -> typing.List[typing.Any]: ...
  381. @staticmethod
  382. def fromList(list: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  383. @staticmethod
  384. def fromVector(vector: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  385. def front(self, /) -> typing.Any: ...
  386. def insert(self, arg__1: int, arg__2: typing.Any, /) -> None: ...
  387. def isEmpty(self, /) -> bool: ...
  388. def isSharedWith(self, other: collections.abc.Sequence[typing.Any], /) -> bool: ...
  389. @typing.overload
  390. def last(self, /) -> typing.Any: ...
  391. @typing.overload
  392. def last(self, n: int, /) -> typing.List[typing.Any]: ...
  393. def length(self, /) -> int: ...
  394. @staticmethod
  395. def maxSize() -> int: ...
  396. def max_size(self, /) -> int: ...
  397. def mid(self, pos: int, /, len: int = ...) -> typing.List[typing.Any]: ...
  398. def move(self, from_: int, to: int, /) -> None: ...
  399. def pop_back(self, /) -> None: ...
  400. def pop_front(self, /) -> None: ...
  401. def prepend(self, arg__1: typing.Any, /) -> None: ...
  402. def push_back(self, arg__1: typing.Any, /) -> None: ...
  403. def push_front(self, arg__1: typing.Any, /) -> None: ...
  404. def remove(self, i: int, /, n: int = ...) -> None: ...
  405. def removeAll(self, arg__1: typing.Any, /) -> None: ...
  406. def removeAt(self, i: int, /) -> None: ...
  407. def removeFirst(self, /) -> None: ...
  408. def removeLast(self, /) -> None: ...
  409. def removeOne(self, arg__1: typing.Any, /) -> None: ...
  410. def reserve(self, size: int, /) -> None: ...
  411. def resize(self, size: int, /) -> None: ...
  412. def resizeForOverwrite(self, size: int, /) -> None: ...
  413. def shrink_to_fit(self, /) -> None: ...
  414. def size(self, /) -> int: ...
  415. @typing.overload
  416. def sliced(self, pos: int, /) -> typing.List[typing.Any]: ...
  417. @typing.overload
  418. def sliced(self, pos: int, n: int, /) -> typing.List[typing.Any]: ...
  419. def squeeze(self, /) -> None: ...
  420. def swap(self, other: collections.abc.Sequence[typing.Any], /) -> None: ...
  421. def swapItemsAt(self, i: int, j: int, /) -> None: ...
  422. def takeAt(self, i: int, /) -> typing.Any: ...
  423. def toList(self, /) -> typing.List[typing.Any]: ...
  424. def toVector(self, /) -> typing.List[typing.Any]: ...
  425. def value(self, i: int, /) -> typing.Any: ...
  426. class AttributeId(enum.Enum):
  427. ServiceRecordHandle = 0x0
  428. ServiceClassIds = 0x1
  429. ServiceRecordState = 0x2
  430. ServiceId = 0x3
  431. ProtocolDescriptorList = 0x4
  432. BrowseGroupList = 0x5
  433. LanguageBaseAttributeIdList = 0x6
  434. ServiceInfoTimeToLive = 0x7
  435. ServiceAvailability = 0x8
  436. BluetoothProfileDescriptorList = 0x9
  437. DocumentationUrl = 0xa
  438. ClientExecutableUrl = 0xb
  439. IconUrl = 0xc
  440. AdditionalProtocolDescriptorList = 0xd
  441. PrimaryLanguageBase = 0x100
  442. ServiceName = 0x100
  443. ServiceDescription = 0x101
  444. ServiceProvider = 0x102
  445. class Protocol(enum.Enum):
  446. UnknownProtocol = 0x0
  447. L2capProtocol = 0x1
  448. RfcommProtocol = 0x2
  449. class Sequence(Shiboken.Object):
  450. @typing.overload
  451. def __init__(self, /) -> None: ...
  452. @typing.overload
  453. def __init__(self, Sequence: PySide6.QtBluetooth.QBluetoothServiceInfo.Sequence, /) -> None: ...
  454. @typing.overload
  455. def __init__(self, list: collections.abc.Sequence[typing.Any], /) -> None: ...
  456. def __add__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  457. def __copy__(self, /) -> typing.Self: ...
  458. def __iadd__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  459. def __lshift__(self, l: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  460. @typing.overload
  461. def append(self, l: collections.abc.Sequence[typing.Any], /) -> None: ...
  462. @typing.overload
  463. def append(self, arg__1: typing.Any, /) -> None: ...
  464. def at(self, i: int, /) -> typing.Any: ...
  465. def back(self, /) -> typing.Any: ...
  466. def capacity(self, /) -> int: ...
  467. def clear(self, /) -> None: ...
  468. def constData(self, /) -> object: ...
  469. def constFirst(self, /) -> typing.Any: ...
  470. def constLast(self, /) -> typing.Any: ...
  471. def count(self, /) -> int: ...
  472. def data(self, /) -> object: ...
  473. def empty(self, /) -> bool: ...
  474. @typing.overload
  475. def first(self, /) -> typing.Any: ...
  476. @typing.overload
  477. def first(self, n: int, /) -> typing.List[typing.Any]: ...
  478. @staticmethod
  479. def fromList(list: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  480. @staticmethod
  481. def fromVector(vector: collections.abc.Sequence[typing.Any], /) -> typing.List[typing.Any]: ...
  482. def front(self, /) -> typing.Any: ...
  483. def insert(self, arg__1: int, arg__2: typing.Any, /) -> None: ...
  484. def isEmpty(self, /) -> bool: ...
  485. def isSharedWith(self, other: collections.abc.Sequence[typing.Any], /) -> bool: ...
  486. @typing.overload
  487. def last(self, /) -> typing.Any: ...
  488. @typing.overload
  489. def last(self, n: int, /) -> typing.List[typing.Any]: ...
  490. def length(self, /) -> int: ...
  491. @staticmethod
  492. def maxSize() -> int: ...
  493. def max_size(self, /) -> int: ...
  494. def mid(self, pos: int, /, len: int = ...) -> typing.List[typing.Any]: ...
  495. def move(self, from_: int, to: int, /) -> None: ...
  496. def pop_back(self, /) -> None: ...
  497. def pop_front(self, /) -> None: ...
  498. def prepend(self, arg__1: typing.Any, /) -> None: ...
  499. def push_back(self, arg__1: typing.Any, /) -> None: ...
  500. def push_front(self, arg__1: typing.Any, /) -> None: ...
  501. def remove(self, i: int, /, n: int = ...) -> None: ...
  502. def removeAll(self, arg__1: typing.Any, /) -> None: ...
  503. def removeAt(self, i: int, /) -> None: ...
  504. def removeFirst(self, /) -> None: ...
  505. def removeLast(self, /) -> None: ...
  506. def removeOne(self, arg__1: typing.Any, /) -> None: ...
  507. def reserve(self, size: int, /) -> None: ...
  508. def resize(self, size: int, /) -> None: ...
  509. def resizeForOverwrite(self, size: int, /) -> None: ...
  510. def shrink_to_fit(self, /) -> None: ...
  511. def size(self, /) -> int: ...
  512. @typing.overload
  513. def sliced(self, pos: int, /) -> typing.List[typing.Any]: ...
  514. @typing.overload
  515. def sliced(self, pos: int, n: int, /) -> typing.List[typing.Any]: ...
  516. def squeeze(self, /) -> None: ...
  517. def swap(self, other: collections.abc.Sequence[typing.Any], /) -> None: ...
  518. def swapItemsAt(self, i: int, j: int, /) -> None: ...
  519. def takeAt(self, i: int, /) -> typing.Any: ...
  520. def toList(self, /) -> typing.List[typing.Any]: ...
  521. def toVector(self, /) -> typing.List[typing.Any]: ...
  522. def value(self, i: int, /) -> typing.Any: ...
  523. @typing.overload
  524. def __init__(self, /) -> None: ...
  525. @typing.overload
  526. def __init__(self, other: PySide6.QtBluetooth.QBluetoothServiceInfo, /) -> None: ...
  527. def __copy__(self, /) -> typing.Self: ...
  528. def __repr__(self, /) -> str: ...
  529. def attribute(self, attributeId: int, /) -> typing.Any: ...
  530. def attributes(self, /) -> typing.List[int]: ...
  531. def contains(self, attributeId: int, /) -> bool: ...
  532. def device(self, /) -> PySide6.QtBluetooth.QBluetoothDeviceInfo: ...
  533. def isComplete(self, /) -> bool: ...
  534. def isRegistered(self, /) -> bool: ...
  535. def isValid(self, /) -> bool: ...
  536. def protocolDescriptor(self, protocol: PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, /) -> PySide6.QtBluetooth.QBluetoothServiceInfo.Sequence: ...
  537. def protocolServiceMultiplexer(self, /) -> int: ...
  538. def registerService(self, /, localAdapter: PySide6.QtBluetooth.QBluetoothAddress = ...) -> bool: ...
  539. def removeAttribute(self, attributeId: int, /) -> None: ...
  540. def serverChannel(self, /) -> int: ...
  541. def serviceAvailability(self, /) -> int: ...
  542. def serviceClassUuids(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  543. def serviceDescription(self, /) -> str: ...
  544. def serviceName(self, /) -> str: ...
  545. def serviceProvider(self, /) -> str: ...
  546. def serviceUuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  547. @typing.overload
  548. def setAttribute(self, attributeId: int, value: PySide6.QtBluetooth.QBluetoothServiceInfo.Alternative | collections.abc.Sequence[typing.Any], /) -> None: ...
  549. @typing.overload
  550. def setAttribute(self, attributeId: int, value: PySide6.QtBluetooth.QBluetoothServiceInfo.Sequence | collections.abc.Sequence[typing.Any], /) -> None: ...
  551. @typing.overload
  552. def setAttribute(self, attributeId: int, value: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  553. @typing.overload
  554. def setAttribute(self, attributeId: int, value: typing.Any, /) -> None: ...
  555. def setDevice(self, info: PySide6.QtBluetooth.QBluetoothDeviceInfo, /) -> None: ...
  556. def setServiceAvailability(self, availability: int, /) -> None: ...
  557. def setServiceDescription(self, description: str, /) -> None: ...
  558. def setServiceName(self, name: str, /) -> None: ...
  559. def setServiceProvider(self, provider: str, /) -> None: ...
  560. def setServiceUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  561. def socketProtocol(self, /) -> PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol: ...
  562. def unregisterService(self, /) -> bool: ...
  563. class QBluetoothSocket(PySide6.QtCore.QIODevice):
  564. connected : typing.ClassVar[Signal] = ... # connected()
  565. disconnected : typing.ClassVar[Signal] = ... # disconnected()
  566. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QBluetoothSocket::SocketError)
  567. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QBluetoothSocket::SocketState)
  568. class SocketError(enum.Enum):
  569. NoSocketError = 0x0
  570. UnknownSocketError = 0x1
  571. RemoteHostClosedError = 0x2
  572. HostNotFoundError = 0x3
  573. ServiceNotFoundError = 0x4
  574. NetworkError = 0x5
  575. UnsupportedProtocolError = 0x6
  576. OperationError = 0x7
  577. MissingPermissionsError = 0x8
  578. class SocketState(enum.Enum):
  579. UnconnectedState = 0x0
  580. ServiceLookupState = 0x1
  581. ConnectingState = 0x2
  582. ConnectedState = 0x3
  583. BoundState = 0x4
  584. ClosingState = 0x5
  585. ListeningState = 0x6
  586. @typing.overload
  587. def __init__(self, socketType: PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  588. @typing.overload
  589. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  590. def abort(self, /) -> None: ...
  591. def bytesAvailable(self, /) -> int: ...
  592. def bytesToWrite(self, /) -> int: ...
  593. def canReadLine(self, /) -> bool: ...
  594. def close(self, /) -> None: ...
  595. @typing.overload
  596. def connectToService(self, address: PySide6.QtBluetooth.QBluetoothAddress, uuid: PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, /, mode: PySide6.QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  597. @typing.overload
  598. def connectToService(self, address: PySide6.QtBluetooth.QBluetoothAddress, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /, openMode: PySide6.QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  599. @typing.overload
  600. def connectToService(self, address: PySide6.QtBluetooth.QBluetoothAddress, port: int, /, openMode: PySide6.QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  601. @typing.overload
  602. def connectToService(self, service: PySide6.QtBluetooth.QBluetoothServiceInfo, /, openMode: PySide6.QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  603. def disconnectFromService(self, /) -> None: ...
  604. def doDeviceDiscovery(self, service: PySide6.QtBluetooth.QBluetoothServiceInfo, openMode: PySide6.QtCore.QIODeviceBase.OpenModeFlag, /) -> None: ...
  605. def error(self, /) -> PySide6.QtBluetooth.QBluetoothSocket.SocketError: ...
  606. def errorString(self, /) -> str: ...
  607. def isSequential(self, /) -> bool: ...
  608. def localAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  609. def localName(self, /) -> str: ...
  610. def localPort(self, /) -> int: ...
  611. def peerAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  612. def peerName(self, /) -> str: ...
  613. def peerPort(self, /) -> int: ...
  614. def preferredSecurityFlags(self, /) -> PySide6.QtBluetooth.QBluetooth.Security: ...
  615. def readData(self, maxSize: int, /) -> object: ...
  616. def setPreferredSecurityFlags(self, flags: PySide6.QtBluetooth.QBluetooth.Security, /) -> None: ...
  617. def setSocketDescriptor(self, socketDescriptor: int, socketType: PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol, /, socketState: PySide6.QtBluetooth.QBluetoothSocket.SocketState = ..., openMode: PySide6.QtCore.QIODeviceBase.OpenModeFlag = ...) -> bool: ...
  618. def setSocketError(self, error: PySide6.QtBluetooth.QBluetoothSocket.SocketError, /) -> None: ...
  619. def setSocketState(self, state: PySide6.QtBluetooth.QBluetoothSocket.SocketState, /) -> None: ...
  620. def socketDescriptor(self, /) -> int: ...
  621. def socketType(self, /) -> PySide6.QtBluetooth.QBluetoothServiceInfo.Protocol: ...
  622. def state(self, /) -> PySide6.QtBluetooth.QBluetoothSocket.SocketState: ...
  623. def writeData(self, data: bytes | bytearray | memoryview, maxSize: int, /) -> int: ...
  624. class QBluetoothUuid(PySide6.QtCore.QUuid):
  625. class CharacteristicType(enum.Enum):
  626. DeviceName = 0x2a00
  627. Appearance = 0x2a01
  628. PeripheralPrivacyFlag = 0x2a02
  629. ReconnectionAddress = 0x2a03
  630. PeripheralPreferredConnectionParameters = 0x2a04
  631. ServiceChanged = 0x2a05
  632. AlertLevel = 0x2a06
  633. TxPowerLevel = 0x2a07
  634. DateTime = 0x2a08
  635. DayOfWeek = 0x2a09
  636. DayDateTime = 0x2a0a
  637. ExactTime256 = 0x2a0c
  638. DSTOffset = 0x2a0d
  639. TimeZone = 0x2a0e
  640. LocalTimeInformation = 0x2a0f
  641. TimeWithDST = 0x2a11
  642. TimeAccuracy = 0x2a12
  643. TimeSource = 0x2a13
  644. ReferenceTimeInformation = 0x2a14
  645. TimeUpdateControlPoint = 0x2a16
  646. TimeUpdateState = 0x2a17
  647. GlucoseMeasurement = 0x2a18
  648. BatteryLevel = 0x2a19
  649. TemperatureMeasurement = 0x2a1c
  650. TemperatureType = 0x2a1d
  651. IntermediateTemperature = 0x2a1e
  652. MeasurementInterval = 0x2a21
  653. BootKeyboardInputReport = 0x2a22
  654. SystemID = 0x2a23
  655. ModelNumberString = 0x2a24
  656. SerialNumberString = 0x2a25
  657. FirmwareRevisionString = 0x2a26
  658. HardwareRevisionString = 0x2a27
  659. SoftwareRevisionString = 0x2a28
  660. ManufacturerNameString = 0x2a29
  661. IEEE1107320601RegulatoryCertificationDataList = 0x2a2a
  662. CurrentTime = 0x2a2b
  663. MagneticDeclination = 0x2a2c
  664. ScanRefresh = 0x2a31
  665. BootKeyboardOutputReport = 0x2a32
  666. BootMouseInputReport = 0x2a33
  667. GlucoseMeasurementContext = 0x2a34
  668. BloodPressureMeasurement = 0x2a35
  669. IntermediateCuffPressure = 0x2a36
  670. HeartRateMeasurement = 0x2a37
  671. BodySensorLocation = 0x2a38
  672. HeartRateControlPoint = 0x2a39
  673. AlertStatus = 0x2a3f
  674. RingerControlPoint = 0x2a40
  675. RingerSetting = 0x2a41
  676. AlertCategoryIDBitMask = 0x2a42
  677. AlertCategoryID = 0x2a43
  678. AlertNotificationControlPoint = 0x2a44
  679. UnreadAlertStatus = 0x2a45
  680. NewAlert = 0x2a46
  681. SupportedNewAlertCategory = 0x2a47
  682. SupportedUnreadAlertCategory = 0x2a48
  683. BloodPressureFeature = 0x2a49
  684. HIDInformation = 0x2a4a
  685. ReportMap = 0x2a4b
  686. HIDControlPoint = 0x2a4c
  687. Report = 0x2a4d
  688. ProtocolMode = 0x2a4e
  689. ScanIntervalWindow = 0x2a4f
  690. PnPID = 0x2a50
  691. GlucoseFeature = 0x2a51
  692. RecordAccessControlPoint = 0x2a52
  693. RSCMeasurement = 0x2a53
  694. RSCFeature = 0x2a54
  695. SCControlPoint = 0x2a55
  696. CSCMeasurement = 0x2a5b
  697. CSCFeature = 0x2a5c
  698. SensorLocation = 0x2a5d
  699. CyclingPowerMeasurement = 0x2a63
  700. CyclingPowerVector = 0x2a64
  701. CyclingPowerFeature = 0x2a65
  702. CyclingPowerControlPoint = 0x2a66
  703. LocationAndSpeed = 0x2a67
  704. Navigation = 0x2a68
  705. PositionQuality = 0x2a69
  706. LNFeature = 0x2a6a
  707. LNControlPoint = 0x2a6b
  708. Elevation = 0x2a6c
  709. Pressure = 0x2a6d
  710. Temperature = 0x2a6e
  711. Humidity = 0x2a6f
  712. TrueWindSpeed = 0x2a70
  713. TrueWindDirection = 0x2a71
  714. ApparentWindSpeed = 0x2a72
  715. ApparentWindDirection = 0x2a73
  716. GustFactor = 0x2a74
  717. PollenConcentration = 0x2a75
  718. UVIndex = 0x2a76
  719. Irradiance = 0x2a77
  720. Rainfall = 0x2a78
  721. WindChill = 0x2a79
  722. HeatIndex = 0x2a7a
  723. DewPoint = 0x2a7b
  724. DescriptorValueChanged = 0x2a7d
  725. AerobicHeartRateLowerLimit = 0x2a7e
  726. AerobicThreshold = 0x2a7f
  727. Age = 0x2a80
  728. AnaerobicHeartRateLowerLimit = 0x2a81
  729. AnaerobicHeartRateUpperLimit = 0x2a82
  730. AnaerobicThreshold = 0x2a83
  731. AerobicHeartRateUpperLimit = 0x2a84
  732. DateOfBirth = 0x2a85
  733. DateOfThresholdAssessment = 0x2a86
  734. EmailAddress = 0x2a87
  735. FatBurnHeartRateLowerLimit = 0x2a88
  736. FatBurnHeartRateUpperLimit = 0x2a89
  737. FirstName = 0x2a8a
  738. FiveZoneHeartRateLimits = 0x2a8b
  739. Gender = 0x2a8c
  740. HeartRateMax = 0x2a8d
  741. Height = 0x2a8e
  742. HipCircumference = 0x2a8f
  743. LastName = 0x2a90
  744. MaximumRecommendedHeartRate = 0x2a91
  745. RestingHeartRate = 0x2a92
  746. SportTypeForAerobicAnaerobicThresholds = 0x2a93
  747. ThreeZoneHeartRateLimits = 0x2a94
  748. TwoZoneHeartRateLimits = 0x2a95
  749. VO2Max = 0x2a96
  750. WaistCircumference = 0x2a97
  751. Weight = 0x2a98
  752. DatabaseChangeIncrement = 0x2a99
  753. UserIndex = 0x2a9a
  754. BodyCompositionFeature = 0x2a9b
  755. BodyCompositionMeasurement = 0x2a9c
  756. WeightMeasurement = 0x2a9d
  757. WeightScaleFeature = 0x2a9e
  758. UserControlPoint = 0x2a9f
  759. MagneticFluxDensity2D = 0x2aa0
  760. MagneticFluxDensity3D = 0x2aa1
  761. Language = 0x2aa2
  762. BarometricPressureTrend = 0x2aa3
  763. class DescriptorType(enum.Enum):
  764. UnknownDescriptorType = 0x0
  765. CharacteristicExtendedProperties = 0x2900
  766. CharacteristicUserDescription = 0x2901
  767. ClientCharacteristicConfiguration = 0x2902
  768. ServerCharacteristicConfiguration = 0x2903
  769. CharacteristicPresentationFormat = 0x2904
  770. CharacteristicAggregateFormat = 0x2905
  771. ValidRange = 0x2906
  772. ExternalReportReference = 0x2907
  773. ReportReference = 0x2908
  774. EnvironmentalSensingConfiguration = 0x290b
  775. EnvironmentalSensingMeasurement = 0x290c
  776. EnvironmentalSensingTriggerSetting = 0x290d
  777. class ProtocolUuid(enum.Enum):
  778. Sdp = 0x1
  779. Udp = 0x2
  780. Rfcomm = 0x3
  781. Tcp = 0x4
  782. TcsBin = 0x5
  783. TcsAt = 0x6
  784. Att = 0x7
  785. Obex = 0x8
  786. Ip = 0x9
  787. Ftp = 0xa
  788. Http = 0xc
  789. Wsp = 0xe
  790. Bnep = 0xf
  791. Upnp = 0x10
  792. Hidp = 0x11
  793. HardcopyControlChannel = 0x12
  794. HardcopyDataChannel = 0x14
  795. HardcopyNotification = 0x16
  796. Avctp = 0x17
  797. Avdtp = 0x19
  798. Cmtp = 0x1b
  799. UdiCPlain = 0x1d
  800. McapControlChannel = 0x1e
  801. McapDataChannel = 0x1f
  802. L2cap = 0x100
  803. class ServiceClassUuid(enum.Enum):
  804. ServiceDiscoveryServer = 0x1000
  805. BrowseGroupDescriptor = 0x1001
  806. PublicBrowseGroup = 0x1002
  807. SerialPort = 0x1101
  808. LANAccessUsingPPP = 0x1102
  809. DialupNetworking = 0x1103
  810. IrMCSync = 0x1104
  811. ObexObjectPush = 0x1105
  812. OBEXFileTransfer = 0x1106
  813. IrMCSyncCommand = 0x1107
  814. Headset = 0x1108
  815. AudioSource = 0x110a
  816. AudioSink = 0x110b
  817. AV_RemoteControlTarget = 0x110c
  818. AdvancedAudioDistribution = 0x110d
  819. AV_RemoteControl = 0x110e
  820. AV_RemoteControlController = 0x110f
  821. HeadsetAG = 0x1112
  822. PANU = 0x1115
  823. NAP = 0x1116
  824. GN = 0x1117
  825. DirectPrinting = 0x1118
  826. ReferencePrinting = 0x1119
  827. BasicImage = 0x111a
  828. ImagingResponder = 0x111b
  829. ImagingAutomaticArchive = 0x111c
  830. ImagingReferenceObjects = 0x111d
  831. Handsfree = 0x111e
  832. HandsfreeAudioGateway = 0x111f
  833. DirectPrintingReferenceObjectsService = 0x1120
  834. ReflectedUI = 0x1121
  835. BasicPrinting = 0x1122
  836. PrintingStatus = 0x1123
  837. HumanInterfaceDeviceService = 0x1124
  838. HardcopyCableReplacement = 0x1125
  839. HCRPrint = 0x1126
  840. HCRScan = 0x1127
  841. SIMAccess = 0x112d
  842. PhonebookAccessPCE = 0x112e
  843. PhonebookAccessPSE = 0x112f
  844. PhonebookAccess = 0x1130
  845. HeadsetHS = 0x1131
  846. MessageAccessServer = 0x1132
  847. MessageNotificationServer = 0x1133
  848. MessageAccessProfile = 0x1134
  849. GNSS = 0x1135
  850. GNSSServer = 0x1136
  851. Display3D = 0x1137
  852. Glasses3D = 0x1138
  853. Synchronization3D = 0x1139
  854. MPSProfile = 0x113a
  855. MPSService = 0x113b
  856. PnPInformation = 0x1200
  857. GenericNetworking = 0x1201
  858. GenericFileTransfer = 0x1202
  859. GenericAudio = 0x1203
  860. GenericTelephony = 0x1204
  861. VideoSource = 0x1303
  862. VideoSink = 0x1304
  863. VideoDistribution = 0x1305
  864. HDP = 0x1400
  865. HDPSource = 0x1401
  866. HDPSink = 0x1402
  867. GenericAccess = 0x1800
  868. GenericAttribute = 0x1801
  869. ImmediateAlert = 0x1802
  870. LinkLoss = 0x1803
  871. TxPower = 0x1804
  872. CurrentTimeService = 0x1805
  873. ReferenceTimeUpdateService = 0x1806
  874. NextDSTChangeService = 0x1807
  875. Glucose = 0x1808
  876. HealthThermometer = 0x1809
  877. DeviceInformation = 0x180a
  878. HeartRate = 0x180d
  879. PhoneAlertStatusService = 0x180e
  880. BatteryService = 0x180f
  881. BloodPressure = 0x1810
  882. AlertNotificationService = 0x1811
  883. HumanInterfaceDevice = 0x1812
  884. ScanParameters = 0x1813
  885. RunningSpeedAndCadence = 0x1814
  886. CyclingSpeedAndCadence = 0x1816
  887. CyclingPower = 0x1818
  888. LocationAndNavigation = 0x1819
  889. EnvironmentalSensing = 0x181a
  890. BodyComposition = 0x181b
  891. UserData = 0x181c
  892. WeightScale = 0x181d
  893. BondManagement = 0x181e
  894. ContinuousGlucoseMonitoring = 0x181f
  895. @typing.overload
  896. def __init__(self, /) -> None: ...
  897. @typing.overload
  898. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid, /) -> None: ...
  899. @typing.overload
  900. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType, /) -> None: ...
  901. @typing.overload
  902. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.DescriptorType, /) -> None: ...
  903. @typing.overload
  904. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, /) -> None: ...
  905. @typing.overload
  906. def __init__(self, uuid: PySide6.QtCore.QUuid, /) -> None: ...
  907. @typing.overload
  908. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, /) -> None: ...
  909. @typing.overload
  910. def __init__(self, uuid: int, /) -> None: ...
  911. def __copy__(self, /) -> typing.Self: ...
  912. def __eq__(self, b: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> bool: ...
  913. def __lshift__(self, s: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  914. def __ne__(self, b: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> bool: ...
  915. def __rshift__(self, s: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  916. @staticmethod
  917. def characteristicToString(uuid: PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType, /) -> str: ...
  918. @staticmethod
  919. def descriptorToString(uuid: PySide6.QtBluetooth.QBluetoothUuid.DescriptorType, /) -> str: ...
  920. def minimumSize(self, /) -> int: ...
  921. @staticmethod
  922. def protocolToString(uuid: PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, /) -> str: ...
  923. @staticmethod
  924. def serviceClassToString(uuid: PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, /) -> str: ...
  925. def toUInt16(self, /) -> typing.Tuple[int, bool]: ...
  926. def toUInt32(self, /) -> typing.Tuple[int, bool]: ...
  927. class QIntList: ...
  928. class QLowEnergyAdvertisingData(Shiboken.Object):
  929. class Discoverability(enum.Enum):
  930. DiscoverabilityNone = 0x0
  931. DiscoverabilityLimited = 0x1
  932. DiscoverabilityGeneral = 0x2
  933. @typing.overload
  934. def __init__(self, /) -> None: ...
  935. @typing.overload
  936. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyAdvertisingData, /) -> None: ...
  937. def __copy__(self, /) -> typing.Self: ...
  938. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingData, /) -> bool: ...
  939. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingData, /) -> bool: ...
  940. def discoverability(self, /) -> PySide6.QtBluetooth.QLowEnergyAdvertisingData.Discoverability: ...
  941. def includePowerLevel(self, /) -> bool: ...
  942. @staticmethod
  943. def invalidManufacturerId() -> int: ...
  944. def localName(self, /) -> str: ...
  945. def manufacturerData(self, /) -> PySide6.QtCore.QByteArray: ...
  946. def manufacturerId(self, /) -> int: ...
  947. def rawData(self, /) -> PySide6.QtCore.QByteArray: ...
  948. def services(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  949. def setDiscoverability(self, mode: PySide6.QtBluetooth.QLowEnergyAdvertisingData.Discoverability, /) -> None: ...
  950. def setIncludePowerLevel(self, doInclude: bool, /) -> None: ...
  951. def setLocalName(self, name: str, /) -> None: ...
  952. def setManufacturerData(self, id: int, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  953. def setRawData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  954. def setServices(self, services: collections.abc.Sequence[PySide6.QtBluetooth.QBluetoothUuid], /) -> None: ...
  955. def swap(self, other: PySide6.QtBluetooth.QLowEnergyAdvertisingData, /) -> None: ...
  956. class QLowEnergyAdvertisingParameters(Shiboken.Object):
  957. class AddressInfo(Shiboken.Object):
  958. @typing.overload
  959. def __init__(self, /) -> None: ...
  960. @typing.overload
  961. def __init__(self, AddressInfo: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.AddressInfo, /) -> None: ...
  962. @typing.overload
  963. def __init__(self, addr: PySide6.QtBluetooth.QBluetoothAddress, t: PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType, /) -> None: ...
  964. def __copy__(self, /) -> typing.Self: ...
  965. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.AddressInfo, /) -> bool: ...
  966. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.AddressInfo, /) -> bool: ...
  967. class FilterPolicy(enum.Enum):
  968. IgnoreWhiteList = 0x0
  969. UseWhiteListForScanning = 0x1
  970. UseWhiteListForConnecting = 0x2
  971. UseWhiteListForScanningAndConnecting = 0x3
  972. class Mode(enum.Enum):
  973. AdvInd = 0x0
  974. AdvScanInd = 0x2
  975. AdvNonConnInd = 0x3
  976. @typing.overload
  977. def __init__(self, /) -> None: ...
  978. @typing.overload
  979. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters, /) -> None: ...
  980. def __copy__(self, /) -> typing.Self: ...
  981. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters, /) -> bool: ...
  982. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters, /) -> bool: ...
  983. def filterPolicy(self, /) -> PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.FilterPolicy: ...
  984. def maximumInterval(self, /) -> int: ...
  985. def minimumInterval(self, /) -> int: ...
  986. def mode(self, /) -> PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.Mode: ...
  987. def setInterval(self, minimum: int, maximum: int, /) -> None: ...
  988. def setMode(self, mode: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.Mode, /) -> None: ...
  989. def setWhiteList(self, whiteList: collections.abc.Sequence[PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.AddressInfo], policy: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.FilterPolicy, /) -> None: ...
  990. def swap(self, other: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters, /) -> None: ...
  991. def whiteList(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyAdvertisingParameters.AddressInfo]: ...
  992. class QLowEnergyCharacteristic(Shiboken.Object):
  993. CCCDDisable = ... # type: PySide6.QtCore.QByteArray
  994. CCCDEnableIndication = ... # type: PySide6.QtCore.QByteArray
  995. CCCDEnableNotification = ... # type: PySide6.QtCore.QByteArray
  996. class PropertyType(enum.Flag):
  997. Unknown = 0x0
  998. Broadcasting = 0x1
  999. Read = 0x2
  1000. WriteNoResponse = 0x4
  1001. Write = 0x8
  1002. Notify = 0x10
  1003. Indicate = 0x20
  1004. WriteSigned = 0x40
  1005. ExtendedProperty = 0x80
  1006. @typing.overload
  1007. def __init__(self, /) -> None: ...
  1008. @typing.overload
  1009. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyCharacteristic, /) -> None: ...
  1010. def __copy__(self, /) -> typing.Self: ...
  1011. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyCharacteristic, /) -> bool: ...
  1012. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyCharacteristic, /) -> bool: ...
  1013. def clientCharacteristicConfiguration(self, /) -> PySide6.QtBluetooth.QLowEnergyDescriptor: ...
  1014. def descriptor(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> PySide6.QtBluetooth.QLowEnergyDescriptor: ...
  1015. def descriptors(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyDescriptor]: ...
  1016. def isValid(self, /) -> bool: ...
  1017. def name(self, /) -> str: ...
  1018. def properties(self, /) -> PySide6.QtBluetooth.QLowEnergyCharacteristic.PropertyType: ...
  1019. def uuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1020. def value(self, /) -> PySide6.QtCore.QByteArray: ...
  1021. class QLowEnergyCharacteristicData(Shiboken.Object):
  1022. @typing.overload
  1023. def __init__(self, /) -> None: ...
  1024. @typing.overload
  1025. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyCharacteristicData, /) -> None: ...
  1026. def __copy__(self, /) -> typing.Self: ...
  1027. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyCharacteristicData, /) -> bool: ...
  1028. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyCharacteristicData, /) -> bool: ...
  1029. def addDescriptor(self, descriptor: PySide6.QtBluetooth.QLowEnergyDescriptorData, /) -> None: ...
  1030. def descriptors(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyDescriptorData]: ...
  1031. def isValid(self, /) -> bool: ...
  1032. def maximumValueLength(self, /) -> int: ...
  1033. def minimumValueLength(self, /) -> int: ...
  1034. def properties(self, /) -> PySide6.QtBluetooth.QLowEnergyCharacteristic.PropertyType: ...
  1035. def readConstraints(self, /) -> PySide6.QtBluetooth.QBluetooth.AttAccessConstraint: ...
  1036. def setDescriptors(self, descriptors: collections.abc.Sequence[PySide6.QtBluetooth.QLowEnergyDescriptorData], /) -> None: ...
  1037. def setProperties(self, properties: PySide6.QtBluetooth.QLowEnergyCharacteristic.PropertyType, /) -> None: ...
  1038. def setReadConstraints(self, constraints: PySide6.QtBluetooth.QBluetooth.AttAccessConstraint, /) -> None: ...
  1039. def setUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  1040. def setValue(self, value: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1041. def setValueLength(self, minimum: int, maximum: int, /) -> None: ...
  1042. def setWriteConstraints(self, constraints: PySide6.QtBluetooth.QBluetooth.AttAccessConstraint, /) -> None: ...
  1043. def swap(self, other: PySide6.QtBluetooth.QLowEnergyCharacteristicData, /) -> None: ...
  1044. def uuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1045. def value(self, /) -> PySide6.QtCore.QByteArray: ...
  1046. def writeConstraints(self, /) -> PySide6.QtBluetooth.QBluetooth.AttAccessConstraint: ...
  1047. class QLowEnergyConnectionParameters(Shiboken.Object):
  1048. @typing.overload
  1049. def __init__(self, /) -> None: ...
  1050. @typing.overload
  1051. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyConnectionParameters, /) -> None: ...
  1052. def __copy__(self, /) -> typing.Self: ...
  1053. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyConnectionParameters, /) -> bool: ...
  1054. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyConnectionParameters, /) -> bool: ...
  1055. def latency(self, /) -> int: ...
  1056. def maximumInterval(self, /) -> float: ...
  1057. def minimumInterval(self, /) -> float: ...
  1058. def setIntervalRange(self, minimum: float, maximum: float, /) -> None: ...
  1059. def setLatency(self, latency: int, /) -> None: ...
  1060. def setSupervisionTimeout(self, timeout: int, /) -> None: ...
  1061. def supervisionTimeout(self, /) -> int: ...
  1062. def swap(self, other: PySide6.QtBluetooth.QLowEnergyConnectionParameters, /) -> None: ...
  1063. class QLowEnergyController(PySide6.QtCore.QObject):
  1064. connected : typing.ClassVar[Signal] = ... # connected()
  1065. connectionUpdated : typing.ClassVar[Signal] = ... # connectionUpdated(QLowEnergyConnectionParameters)
  1066. disconnected : typing.ClassVar[Signal] = ... # disconnected()
  1067. discoveryFinished : typing.ClassVar[Signal] = ... # discoveryFinished()
  1068. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QLowEnergyController::Error)
  1069. mtuChanged : typing.ClassVar[Signal] = ... # mtuChanged(int)
  1070. rssiRead : typing.ClassVar[Signal] = ... # rssiRead(short)
  1071. serviceDiscovered : typing.ClassVar[Signal] = ... # serviceDiscovered(QBluetoothUuid)
  1072. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QLowEnergyController::ControllerState)
  1073. class ControllerState(enum.Enum):
  1074. UnconnectedState = 0x0
  1075. ConnectingState = 0x1
  1076. ConnectedState = 0x2
  1077. DiscoveringState = 0x3
  1078. DiscoveredState = 0x4
  1079. ClosingState = 0x5
  1080. AdvertisingState = 0x6
  1081. class Error(enum.Enum):
  1082. NoError = 0x0
  1083. UnknownError = 0x1
  1084. UnknownRemoteDeviceError = 0x2
  1085. NetworkError = 0x3
  1086. InvalidBluetoothAdapterError = 0x4
  1087. ConnectionError = 0x5
  1088. AdvertisingError = 0x6
  1089. RemoteHostClosedError = 0x7
  1090. AuthorizationError = 0x8
  1091. MissingPermissionsError = 0x9
  1092. RssiReadError = 0xa
  1093. class RemoteAddressType(enum.Enum):
  1094. PublicAddress = 0x0
  1095. RandomAddress = 0x1
  1096. class Role(enum.Enum):
  1097. CentralRole = 0x0
  1098. PeripheralRole = 0x1
  1099. def addService(self, service: PySide6.QtBluetooth.QLowEnergyServiceData, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyService: ...
  1100. def connectToDevice(self, /) -> None: ...
  1101. @typing.overload
  1102. @staticmethod
  1103. def createCentral(remoteDevice: PySide6.QtBluetooth.QBluetoothDeviceInfo, localDevice: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyController: ...
  1104. @typing.overload
  1105. @staticmethod
  1106. def createCentral(remoteDevice: PySide6.QtBluetooth.QBluetoothDeviceInfo, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyController: ...
  1107. @typing.overload
  1108. @staticmethod
  1109. def createPeripheral(localDevice: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyController: ...
  1110. @typing.overload
  1111. @staticmethod
  1112. def createPeripheral(parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyController: ...
  1113. def createServiceObject(self, service: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtBluetooth.QLowEnergyService: ...
  1114. def disconnectFromDevice(self, /) -> None: ...
  1115. def discoverServices(self, /) -> None: ...
  1116. def error(self, /) -> PySide6.QtBluetooth.QLowEnergyController.Error: ...
  1117. def errorString(self, /) -> str: ...
  1118. def localAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  1119. def mtu(self, /) -> int: ...
  1120. def readRssi(self, /) -> None: ...
  1121. def remoteAddress(self, /) -> PySide6.QtBluetooth.QBluetoothAddress: ...
  1122. def remoteAddressType(self, /) -> PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType: ...
  1123. def remoteDeviceUuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1124. def remoteName(self, /) -> str: ...
  1125. def requestConnectionUpdate(self, parameters: PySide6.QtBluetooth.QLowEnergyConnectionParameters, /) -> None: ...
  1126. def role(self, /) -> PySide6.QtBluetooth.QLowEnergyController.Role: ...
  1127. def services(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  1128. def setRemoteAddressType(self, type: PySide6.QtBluetooth.QLowEnergyController.RemoteAddressType, /) -> None: ...
  1129. def startAdvertising(self, parameters: PySide6.QtBluetooth.QLowEnergyAdvertisingParameters, advertisingData: PySide6.QtBluetooth.QLowEnergyAdvertisingData, /, scanResponseData: PySide6.QtBluetooth.QLowEnergyAdvertisingData = ...) -> None: ...
  1130. def state(self, /) -> PySide6.QtBluetooth.QLowEnergyController.ControllerState: ...
  1131. def stopAdvertising(self, /) -> None: ...
  1132. class QLowEnergyDescriptor(Shiboken.Object):
  1133. @typing.overload
  1134. def __init__(self, /) -> None: ...
  1135. @typing.overload
  1136. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyDescriptor, /) -> None: ...
  1137. def __copy__(self, /) -> typing.Self: ...
  1138. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyDescriptor, /) -> bool: ...
  1139. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyDescriptor, /) -> bool: ...
  1140. def isValid(self, /) -> bool: ...
  1141. def name(self, /) -> str: ...
  1142. def type(self, /) -> PySide6.QtBluetooth.QBluetoothUuid.DescriptorType: ...
  1143. def uuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1144. def value(self, /) -> PySide6.QtCore.QByteArray: ...
  1145. class QLowEnergyDescriptorData(Shiboken.Object):
  1146. @typing.overload
  1147. def __init__(self, /) -> None: ...
  1148. @typing.overload
  1149. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyDescriptorData, /) -> None: ...
  1150. @typing.overload
  1151. def __init__(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, value: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1152. def __copy__(self, /) -> typing.Self: ...
  1153. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyDescriptorData, /) -> bool: ...
  1154. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyDescriptorData, /) -> bool: ...
  1155. def isReadable(self, /) -> bool: ...
  1156. def isValid(self, /) -> bool: ...
  1157. def isWritable(self, /) -> bool: ...
  1158. def readConstraints(self, /) -> PySide6.QtBluetooth.QBluetooth.AttAccessConstraint: ...
  1159. def setReadPermissions(self, readable: bool, /, constraints: PySide6.QtBluetooth.QBluetooth.AttAccessConstraint = ...) -> None: ...
  1160. def setUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  1161. def setValue(self, value: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1162. def setWritePermissions(self, writable: bool, /, constraints: PySide6.QtBluetooth.QBluetooth.AttAccessConstraint = ...) -> None: ...
  1163. def swap(self, other: PySide6.QtBluetooth.QLowEnergyDescriptorData, /) -> None: ...
  1164. def uuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1165. def value(self, /) -> PySide6.QtCore.QByteArray: ...
  1166. def writeConstraints(self, /) -> PySide6.QtBluetooth.QBluetooth.AttAccessConstraint: ...
  1167. class QLowEnergyService(PySide6.QtCore.QObject):
  1168. characteristicChanged : typing.ClassVar[Signal] = ... # characteristicChanged(QLowEnergyCharacteristic,QByteArray)
  1169. characteristicRead : typing.ClassVar[Signal] = ... # characteristicRead(QLowEnergyCharacteristic,QByteArray)
  1170. characteristicWritten : typing.ClassVar[Signal] = ... # characteristicWritten(QLowEnergyCharacteristic,QByteArray)
  1171. descriptorRead : typing.ClassVar[Signal] = ... # descriptorRead(QLowEnergyDescriptor,QByteArray)
  1172. descriptorWritten : typing.ClassVar[Signal] = ... # descriptorWritten(QLowEnergyDescriptor,QByteArray)
  1173. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QLowEnergyService::ServiceError)
  1174. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QLowEnergyService::ServiceState)
  1175. class DiscoveryMode(enum.Enum):
  1176. FullDiscovery = 0x0
  1177. SkipValueDiscovery = 0x1
  1178. class ServiceError(enum.Enum):
  1179. NoError = 0x0
  1180. OperationError = 0x1
  1181. CharacteristicWriteError = 0x2
  1182. DescriptorWriteError = 0x3
  1183. UnknownError = 0x4
  1184. CharacteristicReadError = 0x5
  1185. DescriptorReadError = 0x6
  1186. class ServiceState(enum.Enum):
  1187. InvalidService = 0x0
  1188. DiscoveryRequired = 0x1
  1189. RemoteService = 0x1
  1190. DiscoveringService = 0x2
  1191. RemoteServiceDiscovering = 0x2
  1192. RemoteServiceDiscovered = 0x3
  1193. ServiceDiscovered = 0x3
  1194. LocalService = 0x4
  1195. class ServiceType(enum.Flag):
  1196. PrimaryService = 0x1
  1197. IncludedService = 0x2
  1198. class WriteMode(enum.Enum):
  1199. WriteWithResponse = 0x0
  1200. WriteWithoutResponse = 0x1
  1201. WriteSigned = 0x2
  1202. def characteristic(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> PySide6.QtBluetooth.QLowEnergyCharacteristic: ...
  1203. def characteristics(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyCharacteristic]: ...
  1204. @typing.overload
  1205. def contains(self, characteristic: PySide6.QtBluetooth.QLowEnergyCharacteristic, /) -> bool: ...
  1206. @typing.overload
  1207. def contains(self, descriptor: PySide6.QtBluetooth.QLowEnergyDescriptor, /) -> bool: ...
  1208. def discoverDetails(self, /, mode: PySide6.QtBluetooth.QLowEnergyService.DiscoveryMode = ...) -> None: ...
  1209. def error(self, /) -> PySide6.QtBluetooth.QLowEnergyService.ServiceError: ...
  1210. def includedServices(self, /) -> typing.List[PySide6.QtBluetooth.QBluetoothUuid]: ...
  1211. def readCharacteristic(self, characteristic: PySide6.QtBluetooth.QLowEnergyCharacteristic, /) -> None: ...
  1212. def readDescriptor(self, descriptor: PySide6.QtBluetooth.QLowEnergyDescriptor, /) -> None: ...
  1213. def serviceName(self, /) -> str: ...
  1214. def serviceUuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1215. def state(self, /) -> PySide6.QtBluetooth.QLowEnergyService.ServiceState: ...
  1216. def type(self, /) -> PySide6.QtBluetooth.QLowEnergyService.ServiceType: ...
  1217. def writeCharacteristic(self, characteristic: PySide6.QtBluetooth.QLowEnergyCharacteristic, newValue: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /, mode: PySide6.QtBluetooth.QLowEnergyService.WriteMode = ...) -> None: ...
  1218. def writeDescriptor(self, descriptor: PySide6.QtBluetooth.QLowEnergyDescriptor, newValue: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1219. class QLowEnergyServiceData(Shiboken.Object):
  1220. class ServiceType(enum.Enum):
  1221. ServiceTypePrimary = 0x2800
  1222. ServiceTypeSecondary = 0x2801
  1223. @typing.overload
  1224. def __init__(self, /) -> None: ...
  1225. @typing.overload
  1226. def __init__(self, other: PySide6.QtBluetooth.QLowEnergyServiceData, /) -> None: ...
  1227. def __copy__(self, /) -> typing.Self: ...
  1228. def __eq__(self, b: PySide6.QtBluetooth.QLowEnergyServiceData, /) -> bool: ...
  1229. def __ne__(self, b: PySide6.QtBluetooth.QLowEnergyServiceData, /) -> bool: ...
  1230. def addCharacteristic(self, characteristic: PySide6.QtBluetooth.QLowEnergyCharacteristicData, /) -> None: ...
  1231. def addIncludedService(self, service: PySide6.QtBluetooth.QLowEnergyService, /) -> None: ...
  1232. def characteristics(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyCharacteristicData]: ...
  1233. def includedServices(self, /) -> typing.List[PySide6.QtBluetooth.QLowEnergyService]: ...
  1234. def isValid(self, /) -> bool: ...
  1235. def setCharacteristics(self, characteristics: collections.abc.Sequence[PySide6.QtBluetooth.QLowEnergyCharacteristicData], /) -> None: ...
  1236. def setIncludedServices(self, services: collections.abc.Sequence[PySide6.QtBluetooth.QLowEnergyService], /) -> None: ...
  1237. def setType(self, type: PySide6.QtBluetooth.QLowEnergyServiceData.ServiceType, /) -> None: ...
  1238. def setUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid | PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType | PySide6.QtBluetooth.QBluetoothUuid.DescriptorType | PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid | PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid | PySide6.QtCore.QUuid, /) -> None: ...
  1239. def swap(self, other: PySide6.QtBluetooth.QLowEnergyServiceData, /) -> None: ...
  1240. def type(self, /) -> PySide6.QtBluetooth.QLowEnergyServiceData.ServiceType: ...
  1241. def uuid(self, /) -> PySide6.QtBluetooth.QBluetoothUuid: ...
  1242. # eof