QtPositioning.pyi 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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.QtPositioning, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtPositioning`
  9. import PySide6.QtPositioning
  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 QGeoAddress(Shiboken.Object):
  18. @typing.overload
  19. def __init__(self, /) -> None: ...
  20. @typing.overload
  21. def __init__(self, other: PySide6.QtPositioning.QGeoAddress, /) -> None: ...
  22. def __copy__(self, /) -> typing.Self: ...
  23. def __eq__(self, rhs: PySide6.QtPositioning.QGeoAddress, /) -> bool: ...
  24. def __hash__(self, /) -> int: ...
  25. def __ne__(self, rhs: PySide6.QtPositioning.QGeoAddress, /) -> bool: ...
  26. def city(self, /) -> str: ...
  27. def clear(self, /) -> None: ...
  28. def country(self, /) -> str: ...
  29. def countryCode(self, /) -> str: ...
  30. def county(self, /) -> str: ...
  31. def district(self, /) -> str: ...
  32. def isEmpty(self, /) -> bool: ...
  33. def isTextGenerated(self, /) -> bool: ...
  34. def postalCode(self, /) -> str: ...
  35. def setCity(self, city: str, /) -> None: ...
  36. def setCountry(self, country: str, /) -> None: ...
  37. def setCountryCode(self, countryCode: str, /) -> None: ...
  38. def setCounty(self, county: str, /) -> None: ...
  39. def setDistrict(self, district: str, /) -> None: ...
  40. def setPostalCode(self, postalCode: str, /) -> None: ...
  41. def setState(self, state: str, /) -> None: ...
  42. def setStreet(self, street: str, /) -> None: ...
  43. def setStreetNumber(self, streetNumber: str, /) -> None: ...
  44. def setText(self, text: str, /) -> None: ...
  45. def state(self, /) -> str: ...
  46. def street(self, /) -> str: ...
  47. def streetNumber(self, /) -> str: ...
  48. def swap(self, other: PySide6.QtPositioning.QGeoAddress, /) -> None: ...
  49. def text(self, /) -> str: ...
  50. class QGeoAreaMonitorInfo(Shiboken.Object):
  51. @typing.overload
  52. def __init__(self, other: PySide6.QtPositioning.QGeoAreaMonitorInfo, /) -> None: ...
  53. @typing.overload
  54. def __init__(self, /, name: str = ...) -> None: ...
  55. def __copy__(self, /) -> typing.Self: ...
  56. def __eq__(self, rhs: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, /) -> bool: ...
  57. def __hash__(self, /) -> int: ...
  58. def __lshift__(self, ds: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  59. def __ne__(self, rhs: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, /) -> bool: ...
  60. def __repr__(self, /) -> str: ...
  61. def __rshift__(self, ds: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  62. def area(self, /) -> PySide6.QtPositioning.QGeoShape: ...
  63. def expiration(self, /) -> PySide6.QtCore.QDateTime: ...
  64. def identifier(self, /) -> str: ...
  65. def isPersistent(self, /) -> bool: ...
  66. def isValid(self, /) -> bool: ...
  67. def name(self, /) -> str: ...
  68. def notificationParameters(self, /) -> typing.Dict[str, typing.Any]: ...
  69. def setArea(self, newShape: PySide6.QtPositioning.QGeoShape, /) -> None: ...
  70. def setExpiration(self, expiry: PySide6.QtCore.QDateTime, /) -> None: ...
  71. def setName(self, name: str, /) -> None: ...
  72. def setNotificationParameters(self, parameters: typing.Dict[str, typing.Any], /) -> None: ...
  73. def setPersistent(self, isPersistent: bool, /) -> None: ...
  74. def swap(self, other: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, /) -> None: ...
  75. class QGeoAreaMonitorSource(PySide6.QtCore.QObject):
  76. areaEntered : typing.ClassVar[Signal] = ... # areaEntered(QGeoAreaMonitorInfo,QGeoPositionInfo)
  77. areaExited : typing.ClassVar[Signal] = ... # areaExited(QGeoAreaMonitorInfo,QGeoPositionInfo)
  78. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QGeoAreaMonitorSource::Error)
  79. monitorExpired : typing.ClassVar[Signal] = ... # monitorExpired(QGeoAreaMonitorInfo)
  80. class AreaMonitorFeature(enum.Flag):
  81. AnyAreaMonitorFeature = -1
  82. PersistentAreaMonitorFeature = 0x1
  83. class Error(enum.Enum):
  84. AccessError = 0x0
  85. InsufficientPositionInfo = 0x1
  86. UnknownSourceError = 0x2
  87. NoError = 0x3
  88. def __init__(self, parent: PySide6.QtCore.QObject, /) -> None: ...
  89. @typing.overload
  90. def activeMonitors(self, /) -> typing.List[PySide6.QtPositioning.QGeoAreaMonitorInfo]: ...
  91. @typing.overload
  92. def activeMonitors(self, lookupArea: PySide6.QtPositioning.QGeoShape, /) -> typing.List[PySide6.QtPositioning.QGeoAreaMonitorInfo]: ...
  93. @staticmethod
  94. def availableSources() -> typing.List[str]: ...
  95. def backendProperty(self, name: str, /) -> typing.Any: ...
  96. @staticmethod
  97. def createDefaultSource(parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoAreaMonitorSource: ...
  98. @staticmethod
  99. def createSource(sourceName: str, parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoAreaMonitorSource: ...
  100. def error(self, /) -> PySide6.QtPositioning.QGeoAreaMonitorSource.Error: ...
  101. def positionInfoSource(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  102. def requestUpdate(self, monitor: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, signal: bytes | bytearray | memoryview, /) -> bool: ...
  103. def setBackendProperty(self, name: str, value: typing.Any, /) -> bool: ...
  104. def setPositionInfoSource(self, source: PySide6.QtPositioning.QGeoPositionInfoSource, /) -> None: ...
  105. def sourceName(self, /) -> str: ...
  106. def startMonitoring(self, monitor: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, /) -> bool: ...
  107. def stopMonitoring(self, monitor: PySide6.QtPositioning.QGeoAreaMonitorInfo | str, /) -> bool: ...
  108. def supportedAreaMonitorFeatures(self, /) -> PySide6.QtPositioning.QGeoAreaMonitorSource.AreaMonitorFeature: ...
  109. class QGeoCircle(PySide6.QtPositioning.QGeoShape):
  110. @typing.overload
  111. def __init__(self, other: PySide6.QtPositioning.QGeoCircle, /, *, center: PySide6.QtPositioning.QGeoCoordinate | None = ..., radius: float | None = ...) -> None: ...
  112. @typing.overload
  113. def __init__(self, center: PySide6.QtPositioning.QGeoCoordinate, /, radius: float = ...) -> None: ...
  114. @typing.overload
  115. def __init__(self, other: PySide6.QtPositioning.QGeoShape, /, *, center: PySide6.QtPositioning.QGeoCoordinate | None = ..., radius: float | None = ...) -> None: ...
  116. @typing.overload
  117. def __init__(self, /, *, center: PySide6.QtPositioning.QGeoCoordinate | None = ..., radius: float | None = ...) -> None: ...
  118. def __copy__(self, /) -> typing.Self: ...
  119. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  120. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  121. def center(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  122. def extendCircle(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  123. def radius(self, /) -> float: ...
  124. def setCenter(self, center: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  125. def setRadius(self, radius: float, /) -> None: ...
  126. def toString(self, /) -> str: ...
  127. def translate(self, degreesLatitude: float, degreesLongitude: float, /) -> None: ...
  128. def translated(self, degreesLatitude: float, degreesLongitude: float, /) -> PySide6.QtPositioning.QGeoCircle: ...
  129. class QGeoCoordinate(Shiboken.Object):
  130. class CoordinateFormat(enum.Enum):
  131. Degrees = 0x0
  132. DegreesWithHemisphere = 0x1
  133. DegreesMinutes = 0x2
  134. DegreesMinutesWithHemisphere = 0x3
  135. DegreesMinutesSeconds = 0x4
  136. DegreesMinutesSecondsWithHemisphere = 0x5
  137. class CoordinateType(enum.Enum):
  138. InvalidCoordinate = 0x0
  139. Coordinate2D = 0x1
  140. Coordinate3D = 0x2
  141. @typing.overload
  142. def __init__(self, other: PySide6.QtPositioning.QGeoCoordinate, /, *, latitude: float | None = ..., longitude: float | None = ..., altitude: float | None = ..., isValid: bool | None = ...) -> None: ...
  143. @typing.overload
  144. def __init__(self, latitude: float, longitude: float, altitude: float, /, *, isValid: bool | None = ...) -> None: ...
  145. @typing.overload
  146. def __init__(self, latitude: float, longitude: float, /, *, altitude: float | None = ..., isValid: bool | None = ...) -> None: ...
  147. @typing.overload
  148. def __init__(self, /, *, latitude: float | None = ..., longitude: float | None = ..., altitude: float | None = ..., isValid: bool | None = ...) -> None: ...
  149. def __copy__(self, /) -> typing.Self: ...
  150. def __eq__(self, rhs: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  151. def __hash__(self, /) -> int: ...
  152. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  153. def __ne__(self, rhs: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  154. def __repr__(self, /) -> str: ...
  155. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  156. def altitude(self, /) -> float: ...
  157. def atDistanceAndAzimuth(self, distance: float, azimuth: float, /, distanceUp: float = ...) -> PySide6.QtPositioning.QGeoCoordinate: ...
  158. def azimuthTo(self, other: PySide6.QtPositioning.QGeoCoordinate, /) -> float: ...
  159. def distanceTo(self, other: PySide6.QtPositioning.QGeoCoordinate, /) -> float: ...
  160. def isValid(self, /) -> bool: ...
  161. def latitude(self, /) -> float: ...
  162. def longitude(self, /) -> float: ...
  163. def setAltitude(self, altitude: float, /) -> None: ...
  164. def setLatitude(self, latitude: float, /) -> None: ...
  165. def setLongitude(self, longitude: float, /) -> None: ...
  166. def swap(self, other: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  167. def toString(self, /, format: PySide6.QtPositioning.QGeoCoordinate.CoordinateFormat = ...) -> str: ...
  168. def type(self, /) -> PySide6.QtPositioning.QGeoCoordinate.CoordinateType: ...
  169. class QGeoLocation(Shiboken.Object):
  170. @typing.overload
  171. def __init__(self, /) -> None: ...
  172. @typing.overload
  173. def __init__(self, other: PySide6.QtPositioning.QGeoLocation, /) -> None: ...
  174. def __copy__(self, /) -> typing.Self: ...
  175. def __eq__(self, rhs: PySide6.QtPositioning.QGeoLocation, /) -> bool: ...
  176. def __hash__(self, /) -> int: ...
  177. def __ne__(self, rhs: PySide6.QtPositioning.QGeoLocation, /) -> bool: ...
  178. def address(self, /) -> PySide6.QtPositioning.QGeoAddress: ...
  179. def boundingShape(self, /) -> PySide6.QtPositioning.QGeoShape: ...
  180. def coordinate(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  181. def extendedAttributes(self, /) -> typing.Dict[str, typing.Any]: ...
  182. def isEmpty(self, /) -> bool: ...
  183. def setAddress(self, address: PySide6.QtPositioning.QGeoAddress, /) -> None: ...
  184. def setBoundingShape(self, shape: PySide6.QtPositioning.QGeoShape, /) -> None: ...
  185. def setCoordinate(self, position: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  186. def setExtendedAttributes(self, data: typing.Dict[str, typing.Any], /) -> None: ...
  187. def swap(self, other: PySide6.QtPositioning.QGeoLocation, /) -> None: ...
  188. class QGeoPath(PySide6.QtPositioning.QGeoShape):
  189. @typing.overload
  190. def __init__(self, other: PySide6.QtPositioning.QGeoPath, /, *, path: collections.abc.Sequence[typing.Any] | None = ..., width: float | None = ...) -> None: ...
  191. @typing.overload
  192. def __init__(self, other: PySide6.QtPositioning.QGeoShape, /, *, path: collections.abc.Sequence[typing.Any] | None = ..., width: float | None = ...) -> None: ...
  193. @typing.overload
  194. def __init__(self, path: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /, width: float = ...) -> None: ...
  195. @typing.overload
  196. def __init__(self, /, *, path: collections.abc.Sequence[typing.Any] | None = ..., width: float | None = ...) -> None: ...
  197. def __copy__(self, /) -> typing.Self: ...
  198. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  199. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  200. def addCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  201. def clearPath(self, /) -> None: ...
  202. def containsCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  203. def coordinateAt(self, index: int, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  204. def insertCoordinate(self, index: int, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  205. def length(self, /, indexFrom: int | None = ..., indexTo: int = ...) -> float: ...
  206. def path(self, /) -> typing.List[PySide6.QtPositioning.QGeoCoordinate]: ...
  207. @typing.overload
  208. def removeCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  209. @typing.overload
  210. def removeCoordinate(self, index: int, /) -> None: ...
  211. def replaceCoordinate(self, index: int, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  212. def setPath(self, path: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> None: ...
  213. def setVariantPath(self, path: collections.abc.Sequence[typing.Any], /) -> None: ...
  214. def setWidth(self, width: float, /) -> None: ...
  215. def size(self, /) -> int: ...
  216. def toString(self, /) -> str: ...
  217. def translate(self, degreesLatitude: float, degreesLongitude: float, /) -> None: ...
  218. def translated(self, degreesLatitude: float, degreesLongitude: float, /) -> PySide6.QtPositioning.QGeoPath: ...
  219. def variantPath(self, /) -> typing.List[typing.Any]: ...
  220. def width(self, /) -> float: ...
  221. class QGeoPolygon(PySide6.QtPositioning.QGeoShape):
  222. @typing.overload
  223. def __init__(self, other: PySide6.QtPositioning.QGeoPolygon, /, *, perimeter: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate] | None = ...) -> None: ...
  224. @typing.overload
  225. def __init__(self, other: PySide6.QtPositioning.QGeoShape, /, *, perimeter: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate] | None = ...) -> None: ...
  226. @typing.overload
  227. def __init__(self, path: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /, *, perimeter: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate] | None = ...) -> None: ...
  228. @typing.overload
  229. def __init__(self, /, *, perimeter: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate] | None = ...) -> None: ...
  230. def __copy__(self, /) -> typing.Self: ...
  231. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  232. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  233. def addCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  234. @typing.overload
  235. def addHole(self, holePath: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> None: ...
  236. @typing.overload
  237. def addHole(self, holePath: typing.Any, /) -> None: ...
  238. def containsCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  239. def coordinateAt(self, index: int, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  240. def hole(self, index: int, /) -> typing.List[typing.Any]: ...
  241. def holePath(self, index: int, /) -> typing.List[PySide6.QtPositioning.QGeoCoordinate]: ...
  242. def holesCount(self, /) -> int: ...
  243. def insertCoordinate(self, index: int, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  244. def length(self, /, indexFrom: int | None = ..., indexTo: int = ...) -> float: ...
  245. def perimeter(self, /) -> typing.List[PySide6.QtPositioning.QGeoCoordinate]: ...
  246. @typing.overload
  247. def removeCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  248. @typing.overload
  249. def removeCoordinate(self, index: int, /) -> None: ...
  250. def removeHole(self, index: int, /) -> None: ...
  251. def replaceCoordinate(self, index: int, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  252. def setPerimeter(self, path: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> None: ...
  253. def size(self, /) -> int: ...
  254. def toString(self, /) -> str: ...
  255. def translate(self, degreesLatitude: float, degreesLongitude: float, /) -> None: ...
  256. def translated(self, degreesLatitude: float, degreesLongitude: float, /) -> PySide6.QtPositioning.QGeoPolygon: ...
  257. class QGeoPositionInfo(Shiboken.Object):
  258. class Attribute(enum.Enum):
  259. Direction = 0x0
  260. GroundSpeed = 0x1
  261. VerticalSpeed = 0x2
  262. MagneticVariation = 0x3
  263. HorizontalAccuracy = 0x4
  264. VerticalAccuracy = 0x5
  265. DirectionAccuracy = 0x6
  266. @typing.overload
  267. def __init__(self, /) -> None: ...
  268. @typing.overload
  269. def __init__(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, updateTime: PySide6.QtCore.QDateTime, /) -> None: ...
  270. @typing.overload
  271. def __init__(self, other: PySide6.QtPositioning.QGeoPositionInfo, /) -> None: ...
  272. def __copy__(self, /) -> typing.Self: ...
  273. def __eq__(self, rhs: PySide6.QtPositioning.QGeoPositionInfo, /) -> bool: ...
  274. def __hash__(self, /) -> int: ...
  275. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  276. def __ne__(self, rhs: PySide6.QtPositioning.QGeoPositionInfo, /) -> bool: ...
  277. def __repr__(self, /) -> str: ...
  278. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  279. def attribute(self, attribute: PySide6.QtPositioning.QGeoPositionInfo.Attribute, /) -> float: ...
  280. def coordinate(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  281. def hasAttribute(self, attribute: PySide6.QtPositioning.QGeoPositionInfo.Attribute, /) -> bool: ...
  282. def isValid(self, /) -> bool: ...
  283. def removeAttribute(self, attribute: PySide6.QtPositioning.QGeoPositionInfo.Attribute, /) -> None: ...
  284. def setAttribute(self, attribute: PySide6.QtPositioning.QGeoPositionInfo.Attribute, value: float, /) -> None: ...
  285. def setCoordinate(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  286. def setTimestamp(self, timestamp: PySide6.QtCore.QDateTime, /) -> None: ...
  287. def swap(self, other: PySide6.QtPositioning.QGeoPositionInfo, /) -> None: ...
  288. def timestamp(self, /) -> PySide6.QtCore.QDateTime: ...
  289. class QGeoPositionInfoSource(PySide6.QtCore.QObject):
  290. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QGeoPositionInfoSource::Error)
  291. positionUpdated : typing.ClassVar[Signal] = ... # positionUpdated(QGeoPositionInfo)
  292. supportedPositioningMethodsChanged: typing.ClassVar[Signal] = ... # supportedPositioningMethodsChanged()
  293. class Error(enum.Enum):
  294. AccessError = 0x0
  295. ClosedError = 0x1
  296. UnknownSourceError = 0x2
  297. NoError = 0x3
  298. UpdateTimeoutError = 0x4
  299. class PositioningMethod(enum.Flag):
  300. NonSatellitePositioningMethods = -256
  301. AllPositioningMethods = -1
  302. NoPositioningMethods = 0x0
  303. SatellitePositioningMethods = 0xff
  304. def __init__(self, parent: PySide6.QtCore.QObject, /, *, updateInterval: int | None = ..., minimumUpdateInterval: int | None = ..., sourceName: str | None = ..., preferredPositioningMethods: PySide6.QtPositioning.QGeoPositionInfoSource.PositioningMethod | None = ...) -> None: ...
  305. @staticmethod
  306. def availableSources() -> typing.List[str]: ...
  307. def backendProperty(self, name: str, /) -> typing.Any: ...
  308. @typing.overload
  309. @staticmethod
  310. def createDefaultSource(parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  311. @typing.overload
  312. @staticmethod
  313. def createDefaultSource(parameters: typing.Dict[str, typing.Any], parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  314. @typing.overload
  315. @staticmethod
  316. def createSource(sourceName: str, parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  317. @typing.overload
  318. @staticmethod
  319. def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  320. def error(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource.Error: ...
  321. def lastKnownPosition(self, /, fromSatellitePositioningMethodsOnly: bool = ...) -> PySide6.QtPositioning.QGeoPositionInfo: ...
  322. def minimumUpdateInterval(self, /) -> int: ...
  323. def preferredPositioningMethods(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource.PositioningMethod: ...
  324. def requestUpdate(self, /, timeout: int | None = ...) -> None: ...
  325. def setBackendProperty(self, name: str, value: typing.Any, /) -> bool: ...
  326. def setPreferredPositioningMethods(self, methods: PySide6.QtPositioning.QGeoPositionInfoSource.PositioningMethod, /) -> None: ...
  327. def setUpdateInterval(self, msec: int, /) -> None: ...
  328. def sourceName(self, /) -> str: ...
  329. def startUpdates(self, /) -> None: ...
  330. def stopUpdates(self, /) -> None: ...
  331. def supportedPositioningMethods(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource.PositioningMethod: ...
  332. def updateInterval(self, /) -> int: ...
  333. class QGeoPositionInfoSourceFactory(Shiboken.Object):
  334. def __init__(self, /) -> None: ...
  335. def areaMonitor(self, parent: PySide6.QtCore.QObject, parameters: typing.Dict[str, typing.Any], /) -> PySide6.QtPositioning.QGeoAreaMonitorSource: ...
  336. def positionInfoSource(self, parent: PySide6.QtCore.QObject, parameters: typing.Dict[str, typing.Any], /) -> PySide6.QtPositioning.QGeoPositionInfoSource: ...
  337. def satelliteInfoSource(self, parent: PySide6.QtCore.QObject, parameters: typing.Dict[str, typing.Any], /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource: ...
  338. class QGeoRectangle(PySide6.QtPositioning.QGeoShape):
  339. @typing.overload
  340. def __init__(self, other: PySide6.QtPositioning.QGeoRectangle, /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., bottomRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., topLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  341. @typing.overload
  342. def __init__(self, topLeft: PySide6.QtPositioning.QGeoCoordinate, bottomRight: PySide6.QtPositioning.QGeoCoordinate, /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  343. @typing.overload
  344. def __init__(self, center: PySide6.QtPositioning.QGeoCoordinate, degreesWidth: float, degreesHeight: float, /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., bottomRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., topLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  345. @typing.overload
  346. def __init__(self, other: PySide6.QtPositioning.QGeoShape, /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., bottomRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., topLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  347. @typing.overload
  348. def __init__(self, coordinates: collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., bottomRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., topLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  349. @typing.overload
  350. def __init__(self, /, *, bottomLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., bottomRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., topLeft: PySide6.QtPositioning.QGeoCoordinate | None = ..., topRight: PySide6.QtPositioning.QGeoCoordinate | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ..., height: float | None = ..., width: float | None = ...) -> None: ...
  351. def __copy__(self, /) -> typing.Self: ...
  352. def __ior__(self, rectangle: PySide6.QtPositioning.QGeoRectangle | PySide6.QtPositioning.QGeoShape | collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> PySide6.QtPositioning.QGeoRectangle: ...
  353. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  354. def __or__(self, rectangle: PySide6.QtPositioning.QGeoRectangle | PySide6.QtPositioning.QGeoShape | collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> PySide6.QtPositioning.QGeoRectangle: ...
  355. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  356. def bottomLeft(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  357. def bottomRight(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  358. def center(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  359. @typing.overload
  360. def contains(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  361. @typing.overload
  362. def contains(self, rectangle: PySide6.QtPositioning.QGeoRectangle | PySide6.QtPositioning.QGeoShape | collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> bool: ...
  363. def extendRectangle(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  364. def height(self, /) -> float: ...
  365. def intersects(self, rectangle: PySide6.QtPositioning.QGeoRectangle | PySide6.QtPositioning.QGeoShape | collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> bool: ...
  366. def setBottomLeft(self, bottomLeft: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  367. def setBottomRight(self, bottomRight: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  368. def setCenter(self, center: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  369. def setHeight(self, degreesHeight: float, /) -> None: ...
  370. def setTopLeft(self, topLeft: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  371. def setTopRight(self, topRight: PySide6.QtPositioning.QGeoCoordinate, /) -> None: ...
  372. def setWidth(self, degreesWidth: float, /) -> None: ...
  373. def toString(self, /) -> str: ...
  374. def topLeft(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  375. def topRight(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  376. def translate(self, degreesLatitude: float, degreesLongitude: float, /) -> None: ...
  377. def translated(self, degreesLatitude: float, degreesLongitude: float, /) -> PySide6.QtPositioning.QGeoRectangle: ...
  378. def united(self, rectangle: PySide6.QtPositioning.QGeoRectangle | PySide6.QtPositioning.QGeoShape | collections.abc.Sequence[PySide6.QtPositioning.QGeoCoordinate], /) -> PySide6.QtPositioning.QGeoRectangle: ...
  379. def width(self, /) -> float: ...
  380. class QGeoSatelliteInfo(Shiboken.Object):
  381. class Attribute(enum.Enum):
  382. Elevation = 0x0
  383. Azimuth = 0x1
  384. class SatelliteSystem(enum.Enum):
  385. Undefined = 0x0
  386. GPS = 0x1
  387. GLONASS = 0x2
  388. GALILEO = 0x3
  389. BEIDOU = 0x4
  390. QZSS = 0x5
  391. Multiple = 0xff
  392. CustomType = 0x100
  393. @typing.overload
  394. def __init__(self, other: PySide6.QtPositioning.QGeoSatelliteInfo, /, *, satelliteSystem: PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem | None = ..., satelliteIdentifier: int | None = ..., signalStrength: float | None = ...) -> None: ...
  395. @typing.overload
  396. def __init__(self, /, *, satelliteSystem: PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem | None = ..., satelliteIdentifier: int | None = ..., signalStrength: float | None = ...) -> None: ...
  397. def __copy__(self, /) -> typing.Self: ...
  398. def __eq__(self, rhs: PySide6.QtPositioning.QGeoSatelliteInfo, /) -> bool: ...
  399. def __hash__(self, /) -> int: ...
  400. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  401. def __ne__(self, rhs: PySide6.QtPositioning.QGeoSatelliteInfo, /) -> bool: ...
  402. def __repr__(self, /) -> str: ...
  403. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  404. def attribute(self, attribute: PySide6.QtPositioning.QGeoSatelliteInfo.Attribute, /) -> float: ...
  405. def hasAttribute(self, attribute: PySide6.QtPositioning.QGeoSatelliteInfo.Attribute, /) -> bool: ...
  406. def removeAttribute(self, attribute: PySide6.QtPositioning.QGeoSatelliteInfo.Attribute, /) -> None: ...
  407. def satelliteIdentifier(self, /) -> int: ...
  408. def satelliteSystem(self, /) -> PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem: ...
  409. def setAttribute(self, attribute: PySide6.QtPositioning.QGeoSatelliteInfo.Attribute, value: float, /) -> None: ...
  410. def setSatelliteIdentifier(self, satId: int, /) -> None: ...
  411. def setSatelliteSystem(self, system: PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem, /) -> None: ...
  412. def setSignalStrength(self, signalStrength: int, /) -> None: ...
  413. def signalStrength(self, /) -> int: ...
  414. def swap(self, other: PySide6.QtPositioning.QGeoSatelliteInfo, /) -> None: ...
  415. class QGeoSatelliteInfoSource(PySide6.QtCore.QObject):
  416. errorOccurred : typing.ClassVar[Signal] = ... # errorOccurred(QGeoSatelliteInfoSource::Error)
  417. satellitesInUseUpdated : typing.ClassVar[Signal] = ... # satellitesInUseUpdated(QList<QGeoSatelliteInfo>)
  418. satellitesInViewUpdated : typing.ClassVar[Signal] = ... # satellitesInViewUpdated(QList<QGeoSatelliteInfo>)
  419. class Error(enum.Enum):
  420. UnknownSourceError = -1
  421. AccessError = 0x0
  422. ClosedError = 0x1
  423. NoError = 0x2
  424. UpdateTimeoutError = 0x3
  425. def __init__(self, parent: PySide6.QtCore.QObject, /, *, updateInterval: int | None = ..., minimumUpdateInterval: int | None = ...) -> None: ...
  426. @staticmethod
  427. def availableSources() -> typing.List[str]: ...
  428. def backendProperty(self, name: str, /) -> typing.Any: ...
  429. @typing.overload
  430. @staticmethod
  431. def createDefaultSource(parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource: ...
  432. @typing.overload
  433. @staticmethod
  434. def createDefaultSource(parameters: typing.Dict[str, typing.Any], parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource: ...
  435. @typing.overload
  436. @staticmethod
  437. def createSource(sourceName: str, parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource: ...
  438. @typing.overload
  439. @staticmethod
  440. def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: PySide6.QtCore.QObject, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource: ...
  441. def error(self, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource.Error: ...
  442. def minimumUpdateInterval(self, /) -> int: ...
  443. def requestUpdate(self, /, timeout: int | None = ...) -> None: ...
  444. def setBackendProperty(self, name: str, value: typing.Any, /) -> bool: ...
  445. def setUpdateInterval(self, msec: int, /) -> None: ...
  446. def sourceName(self, /) -> str: ...
  447. def startUpdates(self, /) -> None: ...
  448. def stopUpdates(self, /) -> None: ...
  449. def updateInterval(self, /) -> int: ...
  450. class QGeoShape(Shiboken.Object):
  451. class ShapeType(enum.Enum):
  452. UnknownType = 0x0
  453. RectangleType = 0x1
  454. CircleType = 0x2
  455. PathType = 0x3
  456. PolygonType = 0x4
  457. @typing.overload
  458. def __init__(self, other: PySide6.QtPositioning.QGeoShape, /, *, type: PySide6.QtPositioning.QGeoShape.ShapeType | None = ..., isValid: bool | None = ..., isEmpty: bool | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ...) -> None: ...
  459. @typing.overload
  460. def __init__(self, /, *, type: PySide6.QtPositioning.QGeoShape.ShapeType | None = ..., isValid: bool | None = ..., isEmpty: bool | None = ..., center: PySide6.QtPositioning.QGeoCoordinate | None = ...) -> None: ...
  461. def __copy__(self, /) -> typing.Self: ...
  462. def __eq__(self, rhs: PySide6.QtPositioning.QGeoShape, /) -> bool: ...
  463. def __hash__(self, /) -> int: ...
  464. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  465. def __ne__(self, rhs: PySide6.QtPositioning.QGeoShape, /) -> bool: ...
  466. def __repr__(self, /) -> str: ...
  467. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  468. def boundingGeoRectangle(self, /) -> PySide6.QtPositioning.QGeoRectangle: ...
  469. def center(self, /) -> PySide6.QtPositioning.QGeoCoordinate: ...
  470. def contains(self, coordinate: PySide6.QtPositioning.QGeoCoordinate, /) -> bool: ...
  471. def isEmpty(self, /) -> bool: ...
  472. def isValid(self, /) -> bool: ...
  473. def toString(self, /) -> str: ...
  474. def type(self, /) -> PySide6.QtPositioning.QGeoShape.ShapeType: ...
  475. class QIntList: ...
  476. class QNmeaPositionInfoSource(PySide6.QtPositioning.QGeoPositionInfoSource):
  477. class UpdateMode(enum.Enum):
  478. RealTimeMode = 0x1
  479. SimulationMode = 0x2
  480. def __init__(self, updateMode: PySide6.QtPositioning.QNmeaPositionInfoSource.UpdateMode, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  481. def device(self, /) -> PySide6.QtCore.QIODevice: ...
  482. def error(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource.Error: ...
  483. def lastKnownPosition(self, /, fromSatellitePositioningMethodsOnly: bool = ...) -> PySide6.QtPositioning.QGeoPositionInfo: ...
  484. def minimumUpdateInterval(self, /) -> int: ...
  485. @typing.overload
  486. def parsePosInfoFromNmeaData(self, data: bytes | bytearray | memoryview, size: int, posInfo: PySide6.QtPositioning.QGeoPositionInfo, /) -> typing.Tuple[bool, bool]: ...
  487. @typing.overload
  488. def parsePosInfoFromNmeaData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, posInfo: PySide6.QtPositioning.QGeoPositionInfo, /) -> typing.Tuple[bool, bool]: ...
  489. def requestUpdate(self, /, timeout: int | None = ...) -> None: ...
  490. def setDevice(self, source: PySide6.QtCore.QIODevice, /) -> None: ...
  491. def setError(self, positionError: PySide6.QtPositioning.QGeoPositionInfoSource.Error, /) -> None: ...
  492. def setUpdateInterval(self, msec: int, /) -> None: ...
  493. def setUserEquivalentRangeError(self, uere: float, /) -> None: ...
  494. def startUpdates(self, /) -> None: ...
  495. def stopUpdates(self, /) -> None: ...
  496. def supportedPositioningMethods(self, /) -> PySide6.QtPositioning.QGeoPositionInfoSource.PositioningMethod: ...
  497. def updateMode(self, /) -> PySide6.QtPositioning.QNmeaPositionInfoSource.UpdateMode: ...
  498. def userEquivalentRangeError(self, /) -> float: ...
  499. class QNmeaSatelliteInfoSource(PySide6.QtPositioning.QGeoSatelliteInfoSource):
  500. class SatelliteInfoParseStatus(enum.Enum):
  501. NotParsed = 0x0
  502. PartiallyParsed = 0x1
  503. FullyParsed = 0x2
  504. class UpdateMode(enum.Enum):
  505. RealTimeMode = 0x1
  506. SimulationMode = 0x2
  507. def __init__(self, mode: PySide6.QtPositioning.QNmeaSatelliteInfoSource.UpdateMode, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  508. def backendProperty(self, name: str, /) -> typing.Any: ...
  509. def device(self, /) -> PySide6.QtCore.QIODevice: ...
  510. def error(self, /) -> PySide6.QtPositioning.QGeoSatelliteInfoSource.Error: ...
  511. def minimumUpdateInterval(self, /) -> int: ...
  512. @typing.overload
  513. def parseSatelliteInfoFromNmea(self, data: bytes | bytearray | memoryview, size: int, infos: collections.abc.Sequence[PySide6.QtPositioning.QGeoSatelliteInfo], system: PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem, /) -> PySide6.QtPositioning.QNmeaSatelliteInfoSource.SatelliteInfoParseStatus: ...
  514. @typing.overload
  515. def parseSatelliteInfoFromNmea(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, infos: collections.abc.Sequence[PySide6.QtPositioning.QGeoSatelliteInfo], system: PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem, /) -> PySide6.QtPositioning.QNmeaSatelliteInfoSource.SatelliteInfoParseStatus: ...
  516. @typing.overload
  517. def parseSatellitesInUseFromNmea(self, data: bytes | bytearray | memoryview, size: int, pnrsInUse: collections.abc.Sequence[int], /) -> PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem: ...
  518. @typing.overload
  519. def parseSatellitesInUseFromNmea(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, pnrsInUse: collections.abc.Sequence[int], /) -> PySide6.QtPositioning.QGeoSatelliteInfo.SatelliteSystem: ...
  520. def requestUpdate(self, /, timeout: int | None = ...) -> None: ...
  521. def setBackendProperty(self, name: str, value: typing.Any, /) -> bool: ...
  522. def setDevice(self, source: PySide6.QtCore.QIODevice, /) -> None: ...
  523. def setError(self, satelliteError: PySide6.QtPositioning.QGeoSatelliteInfoSource.Error, /) -> None: ...
  524. def setUpdateInterval(self, msec: int, /) -> None: ...
  525. def startUpdates(self, /) -> None: ...
  526. def stopUpdates(self, /) -> None: ...
  527. def updateMode(self, /) -> PySide6.QtPositioning.QNmeaSatelliteInfoSource.UpdateMode: ...
  528. # eof