QtDBus.pyi 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. # The PEP 484 type hints stub file for the QtDBus module.
  2. #
  3. # Generated by SIP 6.15.3
  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. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. # Support for QDate, QDateTime and QTime.
  29. import datetime
  30. # Convenient type aliases.
  31. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  32. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  33. class QDBusAbstractAdaptor(QtCore.QObject):
  34. def __init__(self, parent: QtCore.QObject|None) -> None: ...
  35. def autoRelaySignals(self) -> bool: ...
  36. def setAutoRelaySignals(self, enable: bool) -> None: ...
  37. class QDBusAbstractInterface(QtCore.QObject):
  38. def __init__(self, service: str|None, path: str|None, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject|None) -> None: ...
  39. def isInteractiveAuthorizationAllowed(self) -> bool: ...
  40. def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ...
  41. def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
  42. def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
  43. def asyncCallWithArgumentList(self, method: str|None, args: collections.abc.Iterable[typing.Any]) -> 'QDBusPendingCall': ...
  44. def asyncCall(self, method: str|None, *args: typing.Any) -> 'QDBusPendingCall': ...
  45. @typing.overload
  46. def callWithCallback(self, method: str|None, args: collections.abc.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ...
  47. @typing.overload
  48. def callWithCallback(self, method: str|None, args: collections.abc.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ...
  49. def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str|None, args: collections.abc.Iterable[typing.Any]) -> 'QDBusMessage': ...
  50. @typing.overload
  51. def call(self, method: str|None, *args: typing.Any) -> 'QDBusMessage': ...
  52. @typing.overload
  53. def call(self, mode: 'QDBus.CallMode', method: str|None, *args: typing.Any) -> 'QDBusMessage': ...
  54. def timeout(self) -> int: ...
  55. def setTimeout(self, timeout: int) -> None: ...
  56. def lastError(self) -> 'QDBusError': ...
  57. def interface(self) -> str: ...
  58. def path(self) -> str: ...
  59. def service(self) -> str: ...
  60. def connection(self) -> 'QDBusConnection': ...
  61. def isValid(self) -> bool: ...
  62. class QDBusArgument(PyQt6.sip.simplewrapper):
  63. @typing.overload
  64. def __init__(self) -> None: ...
  65. @typing.overload
  66. def __init__(self, other: 'QDBusArgument') -> None: ...
  67. @typing.overload
  68. def __init__(self, arg: typing.Any, id: int = ...) -> None: ...
  69. def swap(self, other: 'QDBusArgument') -> None: ...
  70. def endMapEntry(self) -> None: ...
  71. def beginMapEntry(self) -> None: ...
  72. def endMap(self) -> None: ...
  73. @typing.overload
  74. def beginMap(self, keyMetaType: QtCore.QMetaType, valueMetaType: QtCore.QMetaType) -> None: ...
  75. @typing.overload
  76. def beginMap(self, kid: int, vid: int) -> None: ...
  77. def endArray(self) -> None: ...
  78. @typing.overload
  79. def beginArray(self, elementMetaType: QtCore.QMetaType) -> None: ...
  80. @typing.overload
  81. def beginArray(self, id: int) -> None: ...
  82. def endStructure(self) -> None: ...
  83. def beginStructure(self) -> None: ...
  84. def add(self, arg: typing.Any, id: int = ...) -> None: ...
  85. class QDBus(PyQt6.sip.simplewrapper):
  86. class CallMode(enum.Enum):
  87. NoBlock = ... # type: QDBus.CallMode
  88. Block = ... # type: QDBus.CallMode
  89. BlockWithGui = ... # type: QDBus.CallMode
  90. AutoDetect = ... # type: QDBus.CallMode
  91. class QDBusConnection(PyQt6.sip.simplewrapper):
  92. class ConnectionCapability(enum.Flag):
  93. UnixFileDescriptorPassing = ... # type: QDBusConnection.ConnectionCapability
  94. class UnregisterMode(enum.Enum):
  95. UnregisterNode = ... # type: QDBusConnection.UnregisterMode
  96. UnregisterTree = ... # type: QDBusConnection.UnregisterMode
  97. class RegisterOption(enum.Flag):
  98. ExportAdaptors = ... # type: QDBusConnection.RegisterOption
  99. ExportScriptableSlots = ... # type: QDBusConnection.RegisterOption
  100. ExportScriptableSignals = ... # type: QDBusConnection.RegisterOption
  101. ExportScriptableProperties = ... # type: QDBusConnection.RegisterOption
  102. ExportScriptableInvokables = ... # type: QDBusConnection.RegisterOption
  103. ExportScriptableContents = ... # type: QDBusConnection.RegisterOption
  104. ExportNonScriptableSlots = ... # type: QDBusConnection.RegisterOption
  105. ExportNonScriptableSignals = ... # type: QDBusConnection.RegisterOption
  106. ExportNonScriptableProperties = ... # type: QDBusConnection.RegisterOption
  107. ExportNonScriptableInvokables = ... # type: QDBusConnection.RegisterOption
  108. ExportNonScriptableContents = ... # type: QDBusConnection.RegisterOption
  109. ExportAllSlots = ... # type: QDBusConnection.RegisterOption
  110. ExportAllSignals = ... # type: QDBusConnection.RegisterOption
  111. ExportAllProperties = ... # type: QDBusConnection.RegisterOption
  112. ExportAllInvokables = ... # type: QDBusConnection.RegisterOption
  113. ExportAllContents = ... # type: QDBusConnection.RegisterOption
  114. ExportAllSignal = ... # type: QDBusConnection.RegisterOption
  115. ExportChildObjects = ... # type: QDBusConnection.RegisterOption
  116. class BusType(enum.Enum):
  117. SessionBus = ... # type: QDBusConnection.BusType
  118. SystemBus = ... # type: QDBusConnection.BusType
  119. ActivationBus = ... # type: QDBusConnection.BusType
  120. @typing.overload
  121. def __init__(self, name: str|None) -> None: ...
  122. @typing.overload
  123. def __init__(self, other: 'QDBusConnection') -> None: ...
  124. def swap(self, other: 'QDBusConnection') -> None: ...
  125. @staticmethod
  126. def systemBus() -> 'QDBusConnection': ...
  127. @staticmethod
  128. def sessionBus() -> 'QDBusConnection': ...
  129. @staticmethod
  130. def localMachineId() -> QtCore.QByteArray: ...
  131. @staticmethod
  132. def disconnectFromPeer(name: str|None) -> None: ...
  133. @staticmethod
  134. def disconnectFromBus(name: str|None) -> None: ...
  135. @staticmethod
  136. def connectToPeer(address: str|None, name: str|None) -> 'QDBusConnection': ...
  137. @typing.overload
  138. @staticmethod
  139. def connectToBus(type: 'QDBusConnection.BusType', name: str|None) -> 'QDBusConnection': ...
  140. @typing.overload
  141. @staticmethod
  142. def connectToBus(address: str|None, name: str|None) -> 'QDBusConnection': ...
  143. def interface(self) -> 'QDBusConnectionInterface|None': ...
  144. def unregisterService(self, serviceName: str|None) -> bool: ...
  145. def registerService(self, serviceName: str|None) -> bool: ...
  146. def objectRegisteredAt(self, path: str|None) -> QtCore.QObject|None: ...
  147. def unregisterObject(self, path: str|None, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ...
  148. @typing.overload
  149. def registerObject(self, path: str|None, object: QtCore.QObject|None, options: 'QDBusConnection.RegisterOption' = ...) -> bool: ...
  150. @typing.overload
  151. def registerObject(self, path: str|None, interface: str|None, object: QtCore.QObject|None, options: 'QDBusConnection.RegisterOption' = ...) -> bool: ...
  152. @typing.overload
  153. def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, slot: PYQT_SLOT) -> bool: ...
  154. @typing.overload
  155. def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, signature: str|None, slot: PYQT_SLOT) -> bool: ...
  156. @typing.overload
  157. def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, argumentMatch: collections.abc.Iterable[str|None], signature: str|None, slot: PYQT_SLOT) -> bool: ...
  158. @typing.overload
  159. def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, slot: PYQT_SLOT) -> bool: ...
  160. @typing.overload
  161. def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, signature: str|None, slot: PYQT_SLOT) -> bool: ...
  162. @typing.overload
  163. def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, argumentMatch: collections.abc.Iterable[str|None], signature: str|None, slot: PYQT_SLOT) -> bool: ...
  164. def asyncCall(self, message: 'QDBusMessage', timeout: int = ...) -> 'QDBusPendingCall': ...
  165. def call(self, message: 'QDBusMessage', mode: QDBus.CallMode = ..., timeout: int = ...) -> 'QDBusMessage': ...
  166. def callWithCallback(self, message: 'QDBusMessage', returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT, timeout: int = ...) -> bool: ...
  167. def send(self, message: 'QDBusMessage') -> bool: ...
  168. def connectionCapabilities(self) -> 'QDBusConnection.ConnectionCapability': ...
  169. def name(self) -> str: ...
  170. def lastError(self) -> 'QDBusError': ...
  171. def baseService(self) -> str: ...
  172. def isConnected(self) -> bool: ...
  173. class QDBusConnectionInterface(QDBusAbstractInterface):
  174. class RegisterServiceReply(enum.Enum):
  175. ServiceNotRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply
  176. ServiceRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply
  177. ServiceQueued = ... # type: QDBusConnectionInterface.RegisterServiceReply
  178. class ServiceReplacementOptions(enum.Enum):
  179. DontAllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions
  180. AllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions
  181. class ServiceQueueOptions(enum.Enum):
  182. DontQueueService = ... # type: QDBusConnectionInterface.ServiceQueueOptions
  183. QueueService = ... # type: QDBusConnectionInterface.ServiceQueueOptions
  184. ReplaceExistingService = ... # type: QDBusConnectionInterface.ServiceQueueOptions
  185. def disconnectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
  186. def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
  187. callWithCallbackFailed: typing.ClassVar[QtCore.pyqtSignal]
  188. serviceOwnerChanged: typing.ClassVar[QtCore.pyqtSignal]
  189. serviceUnregistered: typing.ClassVar[QtCore.pyqtSignal]
  190. serviceRegistered: typing.ClassVar[QtCore.pyqtSignal]
  191. def serviceCredentials(self, serviceName: str|None) -> QDBusReply: ...
  192. def startService(self, name: str|None) -> QDBusReply: ...
  193. def serviceUid(self, serviceName: str|None) -> QDBusReply: ...
  194. def servicePid(self, serviceName: str|None) -> QDBusReply: ...
  195. def registerService(self, serviceName: str|None, qoption: 'QDBusConnectionInterface.ServiceQueueOptions' = ..., roption: 'QDBusConnectionInterface.ServiceReplacementOptions' = ...) -> QDBusReply: ...
  196. def unregisterService(self, serviceName: str|None) -> QDBusReply: ...
  197. def serviceOwner(self, name: str|None) -> QDBusReply: ...
  198. def isServiceRegistered(self, serviceName: str|None) -> QDBusReply: ...
  199. def activatableServiceNames(self) -> QDBusReply: ...
  200. def registeredServiceNames(self) -> QDBusReply: ...
  201. class QDBusError(PyQt6.sip.simplewrapper):
  202. class ErrorType(enum.Enum):
  203. NoError = ... # type: QDBusError.ErrorType
  204. Other = ... # type: QDBusError.ErrorType
  205. Failed = ... # type: QDBusError.ErrorType
  206. NoMemory = ... # type: QDBusError.ErrorType
  207. ServiceUnknown = ... # type: QDBusError.ErrorType
  208. NoReply = ... # type: QDBusError.ErrorType
  209. BadAddress = ... # type: QDBusError.ErrorType
  210. NotSupported = ... # type: QDBusError.ErrorType
  211. LimitsExceeded = ... # type: QDBusError.ErrorType
  212. AccessDenied = ... # type: QDBusError.ErrorType
  213. NoServer = ... # type: QDBusError.ErrorType
  214. Timeout = ... # type: QDBusError.ErrorType
  215. NoNetwork = ... # type: QDBusError.ErrorType
  216. AddressInUse = ... # type: QDBusError.ErrorType
  217. Disconnected = ... # type: QDBusError.ErrorType
  218. InvalidArgs = ... # type: QDBusError.ErrorType
  219. UnknownMethod = ... # type: QDBusError.ErrorType
  220. TimedOut = ... # type: QDBusError.ErrorType
  221. InvalidSignature = ... # type: QDBusError.ErrorType
  222. UnknownInterface = ... # type: QDBusError.ErrorType
  223. InternalError = ... # type: QDBusError.ErrorType
  224. UnknownObject = ... # type: QDBusError.ErrorType
  225. InvalidService = ... # type: QDBusError.ErrorType
  226. InvalidObjectPath = ... # type: QDBusError.ErrorType
  227. InvalidInterface = ... # type: QDBusError.ErrorType
  228. InvalidMember = ... # type: QDBusError.ErrorType
  229. UnknownProperty = ... # type: QDBusError.ErrorType
  230. PropertyReadOnly = ... # type: QDBusError.ErrorType
  231. def __init__(self, other: 'QDBusError') -> None: ...
  232. def swap(self, other: 'QDBusError') -> None: ...
  233. @staticmethod
  234. def errorString(error: 'QDBusError.ErrorType') -> str: ...
  235. def isValid(self) -> bool: ...
  236. def message(self) -> str: ...
  237. def name(self) -> str: ...
  238. def type(self) -> 'QDBusError.ErrorType': ...
  239. class QDBusObjectPath(PyQt6.sip.simplewrapper):
  240. @typing.overload
  241. def __init__(self) -> None: ...
  242. @typing.overload
  243. def __init__(self, objectPath: str|None) -> None: ...
  244. @typing.overload
  245. def __init__(self, a0: 'QDBusObjectPath') -> None: ...
  246. def __ge__(self, rhs: 'QDBusObjectPath') -> bool: ...
  247. def __eq__(self, other: object): ...
  248. def __ne__(self, other: object): ...
  249. def __lt__(self, rhs: 'QDBusObjectPath') -> bool: ...
  250. def swap(self, other: 'QDBusObjectPath') -> None: ...
  251. def __hash__(self) -> int: ...
  252. def setPath(self, objectPath: str|None) -> None: ...
  253. def path(self) -> str: ...
  254. class QDBusSignature(PyQt6.sip.simplewrapper):
  255. @typing.overload
  256. def __init__(self) -> None: ...
  257. @typing.overload
  258. def __init__(self, dBusSignature: str|None) -> None: ...
  259. @typing.overload
  260. def __init__(self, a0: 'QDBusSignature') -> None: ...
  261. def __ge__(self, rhs: 'QDBusSignature') -> bool: ...
  262. def __eq__(self, other: object): ...
  263. def __ne__(self, other: object): ...
  264. def __lt__(self, rhs: 'QDBusSignature') -> bool: ...
  265. def swap(self, other: 'QDBusSignature') -> None: ...
  266. def __hash__(self) -> int: ...
  267. def setSignature(self, dBusSignature: str|None) -> None: ...
  268. def signature(self) -> str: ...
  269. class QDBusVariant(PyQt6.sip.simplewrapper):
  270. @typing.overload
  271. def __init__(self) -> None: ...
  272. @typing.overload
  273. def __init__(self, dBusVariant: typing.Any) -> None: ...
  274. @typing.overload
  275. def __init__(self, a0: 'QDBusVariant') -> None: ...
  276. def __ne__(self, other: object): ...
  277. def __eq__(self, other: object): ...
  278. def swap(self, other: 'QDBusVariant') -> None: ...
  279. def setVariant(self, dBusVariant: typing.Any) -> None: ...
  280. def variant(self) -> typing.Any: ...
  281. class QDBusInterface(QDBusAbstractInterface):
  282. def __init__(self, service: str|None, path: str|None, interface: str|None = ..., connection: QDBusConnection = ..., parent: QtCore.QObject|None = ...) -> None: ...
  283. class QDBusMessage(PyQt6.sip.simplewrapper):
  284. class MessageType(enum.Enum):
  285. InvalidMessage = ... # type: QDBusMessage.MessageType
  286. MethodCallMessage = ... # type: QDBusMessage.MessageType
  287. ReplyMessage = ... # type: QDBusMessage.MessageType
  288. ErrorMessage = ... # type: QDBusMessage.MessageType
  289. SignalMessage = ... # type: QDBusMessage.MessageType
  290. @typing.overload
  291. def __init__(self) -> None: ...
  292. @typing.overload
  293. def __init__(self, other: 'QDBusMessage') -> None: ...
  294. def isInteractiveAuthorizationAllowed(self) -> bool: ...
  295. def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ...
  296. @staticmethod
  297. def createTargetedSignal(service: str|None, path: str|None, interface: str|None, name: str|None) -> 'QDBusMessage': ...
  298. def swap(self, other: 'QDBusMessage') -> None: ...
  299. def __lshift__(self, arg: typing.Any) -> 'QDBusMessage': ...
  300. def arguments(self) -> list[typing.Any]: ...
  301. def setArguments(self, arguments: collections.abc.Iterable[typing.Any]) -> None: ...
  302. def autoStartService(self) -> bool: ...
  303. def setAutoStartService(self, enable: bool) -> None: ...
  304. def isDelayedReply(self) -> bool: ...
  305. def setDelayedReply(self, enable: bool) -> None: ...
  306. def isReplyRequired(self) -> bool: ...
  307. def signature(self) -> str: ...
  308. def type(self) -> 'QDBusMessage.MessageType': ...
  309. def errorMessage(self) -> str: ...
  310. def errorName(self) -> str: ...
  311. def member(self) -> str: ...
  312. def interface(self) -> str: ...
  313. def path(self) -> str: ...
  314. def service(self) -> str: ...
  315. @typing.overload
  316. def createErrorReply(self, name: str|None, msg: str|None) -> 'QDBusMessage': ...
  317. @typing.overload
  318. def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ...
  319. @typing.overload
  320. def createErrorReply(self, type: QDBusError.ErrorType, msg: str|None) -> 'QDBusMessage': ...
  321. @typing.overload
  322. def createReply(self, arguments: collections.abc.Iterable[typing.Any] = ...) -> 'QDBusMessage': ...
  323. @typing.overload
  324. def createReply(self, argument: typing.Any) -> 'QDBusMessage': ...
  325. @typing.overload
  326. @staticmethod
  327. def createError(name: str|None, msg: str|None) -> 'QDBusMessage': ...
  328. @typing.overload
  329. @staticmethod
  330. def createError(error: QDBusError) -> 'QDBusMessage': ...
  331. @typing.overload
  332. @staticmethod
  333. def createError(type: QDBusError.ErrorType, msg: str|None) -> 'QDBusMessage': ...
  334. @staticmethod
  335. def createMethodCall(service: str|None, path: str|None, interface: str|None, method: str|None) -> 'QDBusMessage': ...
  336. @staticmethod
  337. def createSignal(path: str|None, interface: str|None, name: str|None) -> 'QDBusMessage': ...
  338. class QDBusPendingCall(PyQt6.sip.simplewrapper):
  339. def __init__(self, other: 'QDBusPendingCall') -> None: ...
  340. def swap(self, other: 'QDBusPendingCall') -> None: ...
  341. @staticmethod
  342. def fromCompletedCall(message: QDBusMessage) -> 'QDBusPendingCall': ...
  343. @staticmethod
  344. def fromError(error: QDBusError) -> 'QDBusPendingCall': ...
  345. class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
  346. def __init__(self, call: QDBusPendingCall, parent: QtCore.QObject|None = ...) -> None: ...
  347. finished: typing.ClassVar[QtCore.pyqtSignal]
  348. def waitForFinished(self) -> None: ...
  349. def isFinished(self) -> bool: ...
  350. class QDBusServiceWatcher(QtCore.QObject):
  351. class WatchModeFlag(enum.Flag):
  352. WatchForRegistration = ... # type: QDBusServiceWatcher.WatchModeFlag
  353. WatchForUnregistration = ... # type: QDBusServiceWatcher.WatchModeFlag
  354. WatchForOwnerChange = ... # type: QDBusServiceWatcher.WatchModeFlag
  355. @typing.overload
  356. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  357. @typing.overload
  358. def __init__(self, service: str|None, connection: QDBusConnection, watchMode: 'QDBusServiceWatcher.WatchModeFlag' = ..., parent: QtCore.QObject|None = ...) -> None: ...
  359. serviceOwnerChanged: typing.ClassVar[QtCore.pyqtSignal]
  360. serviceUnregistered: typing.ClassVar[QtCore.pyqtSignal]
  361. serviceRegistered: typing.ClassVar[QtCore.pyqtSignal]
  362. def setConnection(self, connection: QDBusConnection) -> None: ...
  363. def connection(self) -> QDBusConnection: ...
  364. def setWatchMode(self, mode: 'QDBusServiceWatcher.WatchModeFlag') -> None: ...
  365. def watchMode(self) -> 'QDBusServiceWatcher.WatchModeFlag': ...
  366. def removeWatchedService(self, service: str|None) -> bool: ...
  367. def addWatchedService(self, newService: str|None) -> None: ...
  368. def setWatchedServices(self, services: collections.abc.Iterable[str|None]) -> None: ...
  369. def watchedServices(self) -> list[str]: ...
  370. class QDBusUnixFileDescriptor(PyQt6.sip.simplewrapper):
  371. @typing.overload
  372. def __init__(self) -> None: ...
  373. @typing.overload
  374. def __init__(self, fileDescriptor: int) -> None: ...
  375. @typing.overload
  376. def __init__(self, other: 'QDBusUnixFileDescriptor') -> None: ...
  377. def swap(self, other: 'QDBusUnixFileDescriptor') -> None: ...
  378. @staticmethod
  379. def isSupported() -> bool: ...
  380. def setFileDescriptor(self, fileDescriptor: int) -> None: ...
  381. def fileDescriptor(self) -> int: ...
  382. def isValid(self) -> bool: ...
  383. class QDBusPendingReply(QDBusPendingCall):
  384. @typing.overload
  385. def __init__(self) -> None: ...
  386. @typing.overload
  387. def __init__(self, other: 'QDBusPendingReply') -> None: ...
  388. @typing.overload
  389. def __init__(self, call: QDBusPendingCall) -> None: ...
  390. @typing.overload
  391. def __init__(self, reply: QDBusMessage) -> None: ...
  392. def value(self, type: typing.Any = ...) -> typing.Any: ...
  393. def waitForFinished(self) -> None: ...
  394. def reply(self) -> QDBusMessage: ...
  395. def isValid(self) -> bool: ...
  396. def isFinished(self) -> bool: ...
  397. def isError(self) -> bool: ...
  398. def error(self) -> QDBusError: ...
  399. def argumentAt(self, index: int) -> typing.Any: ...
  400. class QDBusReply(PyQt6.sip.simplewrapper):
  401. @typing.overload
  402. def __init__(self, reply: QDBusMessage) -> None: ...
  403. @typing.overload
  404. def __init__(self, call: QDBusPendingCall) -> None: ...
  405. @typing.overload
  406. def __init__(self, error: QDBusError) -> None: ...
  407. @typing.overload
  408. def __init__(self, other: 'QDBusReply') -> None: ...
  409. def value(self, type: typing.Any = ...) -> typing.Any: ...
  410. def isValid(self) -> bool: ...
  411. def error(self) -> QDBusError: ...