QtWebEngineCore.pyi 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  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.QtWebEngineCore, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtWebEngineCore`
  9. import PySide6.QtWebEngineCore
  10. import PySide6.QtCore
  11. import PySide6.QtGui
  12. import PySide6.QtNetwork
  13. import PySide6.QtWebChannel
  14. import enum
  15. import typing
  16. import collections.abc
  17. from PySide6.QtCore import Signal
  18. from shiboken6 import Shiboken
  19. class QIntList: ...
  20. class QWebEngineCertificateError(Shiboken.Object):
  21. class Type(enum.Enum):
  22. SslObsoleteVersion = -218
  23. CertificateKnownInterceptionBlocked = -217
  24. CertificateSymantecLegacy = -215
  25. CertificateTransparencyRequired = -214
  26. CertificateValidityTooLong = -213
  27. CertificateNameConstraintViolation = -212
  28. CertificateWeakKey = -211
  29. CertificateNonUniqueName = -210
  30. CertificateWeakSignatureAlgorithm = -208
  31. CertificateInvalid = -207
  32. CertificateRevoked = -206
  33. CertificateUnableToCheckRevocation = -205
  34. CertificateNoRevocationMechanism = -204
  35. CertificateContainsErrors = -203
  36. CertificateAuthorityInvalid = -202
  37. CertificateDateInvalid = -201
  38. CertificateCommonNameInvalid = -200
  39. SslPinnedKeyNotInCertificateChain = -150
  40. Ok = 0x0
  41. @typing.overload
  42. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineCertificateError, /, *, url: PySide6.QtCore.QUrl | None = ..., type: PySide6.QtWebEngineCore.QWebEngineCertificateError.Type | None = ..., description: str | None = ..., overridable: bool | None = ..., isMainFrame: bool | None = ...) -> None: ...
  43. @typing.overload
  44. def __init__(self, /, *, url: PySide6.QtCore.QUrl | None = ..., type: PySide6.QtWebEngineCore.QWebEngineCertificateError.Type | None = ..., description: str | None = ..., overridable: bool | None = ..., isMainFrame: bool | None = ...) -> None: ...
  45. def __copy__(self, /) -> typing.Self: ...
  46. def acceptCertificate(self, /) -> None: ...
  47. def certificateChain(self, /) -> typing.List[PySide6.QtNetwork.QSslCertificate]: ...
  48. def defer(self, /) -> None: ...
  49. def description(self, /) -> str: ...
  50. def isMainFrame(self, /) -> bool: ...
  51. def isOverridable(self, /) -> bool: ...
  52. def rejectCertificate(self, /) -> None: ...
  53. def type(self, /) -> PySide6.QtWebEngineCore.QWebEngineCertificateError.Type: ...
  54. def url(self, /) -> PySide6.QtCore.QUrl: ...
  55. class QWebEngineClientCertificateSelection(Shiboken.Object):
  56. def __init__(self, arg__1: PySide6.QtWebEngineCore.QWebEngineClientCertificateSelection, /) -> None: ...
  57. def __copy__(self, /) -> typing.Self: ...
  58. def certificates(self, /) -> typing.List[PySide6.QtNetwork.QSslCertificate]: ...
  59. def host(self, /) -> PySide6.QtCore.QUrl: ...
  60. def select(self, certificate: PySide6.QtNetwork.QSslCertificate | PySide6.QtCore.QIODevice, /) -> None: ...
  61. def selectNone(self, /) -> None: ...
  62. class QWebEngineClientCertificateStore(Shiboken.Object):
  63. def add(self, certificate: PySide6.QtNetwork.QSslCertificate | PySide6.QtCore.QIODevice, privateKey: PySide6.QtNetwork.QSslKey | int, /) -> None: ...
  64. def certificates(self, /) -> typing.List[PySide6.QtNetwork.QSslCertificate]: ...
  65. def clear(self, /) -> None: ...
  66. def remove(self, certificate: PySide6.QtNetwork.QSslCertificate | PySide6.QtCore.QIODevice, /) -> None: ...
  67. class QWebEngineClientHints(PySide6.QtCore.QObject):
  68. def arch(self, /) -> str: ...
  69. def bitness(self, /) -> str: ...
  70. def formFactors(self, /) -> typing.List[str]: ...
  71. def fullVersion(self, /) -> str: ...
  72. def fullVersionList(self, /) -> typing.Dict[str, typing.Any]: ...
  73. def isAllClientHintsEnabled(self, /) -> bool: ...
  74. def isMobile(self, /) -> bool: ...
  75. def isWow64(self, /) -> bool: ...
  76. def model(self, /) -> str: ...
  77. def platform(self, /) -> str: ...
  78. def platformVersion(self, /) -> str: ...
  79. def resetAll(self, /) -> None: ...
  80. def setAllClientHintsEnabled(self, enabled: bool, /) -> None: ...
  81. def setArch(self, arg__1: str, /) -> None: ...
  82. def setBitness(self, arg__1: str, /) -> None: ...
  83. def setFormFactors(self, arg__1: collections.abc.Sequence[str], /) -> None: ...
  84. def setFullVersion(self, arg__1: str, /) -> None: ...
  85. def setFullVersionList(self, arg__1: typing.Dict[str, typing.Any], /) -> None: ...
  86. def setIsMobile(self, arg__1: bool, /) -> None: ...
  87. def setIsWow64(self, arg__1: bool, /) -> None: ...
  88. def setModel(self, arg__1: str, /) -> None: ...
  89. def setPlatform(self, arg__1: str, /) -> None: ...
  90. def setPlatformVersion(self, arg__1: str, /) -> None: ...
  91. class QWebEngineContextMenuRequest(PySide6.QtCore.QObject):
  92. class EditFlag(enum.Flag):
  93. CanUndo = 0x1
  94. CanRedo = 0x2
  95. CanCut = 0x4
  96. CanCopy = 0x8
  97. CanPaste = 0x10
  98. CanDelete = 0x20
  99. CanSelectAll = 0x40
  100. CanTranslate = 0x80
  101. CanEditRichly = 0x100
  102. class MediaFlag(enum.Flag):
  103. MediaInError = 0x1
  104. MediaPaused = 0x2
  105. MediaMuted = 0x4
  106. MediaLoop = 0x8
  107. MediaCanSave = 0x10
  108. MediaHasAudio = 0x20
  109. MediaCanToggleControls = 0x40
  110. MediaControls = 0x80
  111. MediaCanPrint = 0x100
  112. MediaCanRotate = 0x200
  113. class MediaType(enum.Enum):
  114. MediaTypeNone = 0x0
  115. MediaTypeImage = 0x1
  116. MediaTypeVideo = 0x2
  117. MediaTypeAudio = 0x3
  118. MediaTypeCanvas = 0x4
  119. MediaTypeFile = 0x5
  120. MediaTypePlugin = 0x6
  121. def editFlags(self, /) -> PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.EditFlag: ...
  122. def isAccepted(self, /) -> bool: ...
  123. def isContentEditable(self, /) -> bool: ...
  124. def linkText(self, /) -> str: ...
  125. def linkUrl(self, /) -> PySide6.QtCore.QUrl: ...
  126. def mediaFlags(self, /) -> PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.MediaFlag: ...
  127. def mediaType(self, /) -> PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.MediaType: ...
  128. def mediaUrl(self, /) -> PySide6.QtCore.QUrl: ...
  129. def misspelledWord(self, /) -> str: ...
  130. def position(self, /) -> PySide6.QtCore.QPoint: ...
  131. def selectedText(self, /) -> str: ...
  132. def setAccepted(self, accepted: bool, /) -> None: ...
  133. def spellCheckerSuggestions(self, /) -> typing.List[str]: ...
  134. class QWebEngineCookieStore(PySide6.QtCore.QObject):
  135. cookieAdded : typing.ClassVar[Signal] = ... # cookieAdded(QNetworkCookie)
  136. cookieRemoved : typing.ClassVar[Signal] = ... # cookieRemoved(QNetworkCookie)
  137. class FilterRequest(Shiboken.Object):
  138. @typing.overload
  139. def __init__(self, /) -> None: ...
  140. @typing.overload
  141. def __init__(self, FilterRequest: PySide6.QtWebEngineCore.QWebEngineCookieStore.FilterRequest, /) -> None: ...
  142. def __copy__(self, /) -> typing.Self: ...
  143. def deleteAllCookies(self, /) -> None: ...
  144. def deleteCookie(self, cookie: PySide6.QtNetwork.QNetworkCookie, /, origin: PySide6.QtCore.QUrl | str = ...) -> None: ...
  145. def deleteSessionCookies(self, /) -> None: ...
  146. def loadAllCookies(self, /) -> None: ...
  147. def setCookie(self, cookie: PySide6.QtNetwork.QNetworkCookie, /, origin: PySide6.QtCore.QUrl | str = ...) -> None: ...
  148. def setCookieFilter(self, filterCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  149. class QWebEngineDesktopMediaRequest(Shiboken.Object):
  150. @typing.overload
  151. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineDesktopMediaRequest, /, *, screensModel: PySide6.QtCore.QAbstractListModel | None = ..., windowsModel: PySide6.QtCore.QAbstractListModel | None = ...) -> None: ...
  152. @typing.overload
  153. def __init__(self, /, *, screensModel: PySide6.QtCore.QAbstractListModel | None = ..., windowsModel: PySide6.QtCore.QAbstractListModel | None = ...) -> None: ...
  154. def __copy__(self, /) -> typing.Self: ...
  155. def cancel(self, /) -> None: ...
  156. def screensModel(self, /) -> PySide6.QtCore.QAbstractListModel: ...
  157. def selectScreen(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) -> None: ...
  158. def selectWindow(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) -> None: ...
  159. def windowsModel(self, /) -> PySide6.QtCore.QAbstractListModel: ...
  160. class QWebEngineDownloadRequest(PySide6.QtCore.QObject):
  161. downloadDirectoryChanged : typing.ClassVar[Signal] = ... # downloadDirectoryChanged()
  162. downloadFileNameChanged : typing.ClassVar[Signal] = ... # downloadFileNameChanged()
  163. interruptReasonChanged : typing.ClassVar[Signal] = ... # interruptReasonChanged()
  164. isFinishedChanged : typing.ClassVar[Signal] = ... # isFinishedChanged()
  165. isPausedChanged : typing.ClassVar[Signal] = ... # isPausedChanged()
  166. receivedBytesChanged : typing.ClassVar[Signal] = ... # receivedBytesChanged()
  167. savePageFormatChanged : typing.ClassVar[Signal] = ... # savePageFormatChanged()
  168. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QWebEngineDownloadRequest::DownloadState)
  169. totalBytesChanged : typing.ClassVar[Signal] = ... # totalBytesChanged()
  170. class DownloadInterruptReason(enum.Enum):
  171. NoReason = 0x0
  172. FileFailed = 0x1
  173. FileAccessDenied = 0x2
  174. FileNoSpace = 0x3
  175. FileNameTooLong = 0x5
  176. FileTooLarge = 0x6
  177. FileVirusInfected = 0x7
  178. FileTransientError = 0xa
  179. FileBlocked = 0xb
  180. FileSecurityCheckFailed = 0xc
  181. FileTooShort = 0xd
  182. FileHashMismatch = 0xe
  183. NetworkFailed = 0x14
  184. NetworkTimeout = 0x15
  185. NetworkDisconnected = 0x16
  186. NetworkServerDown = 0x17
  187. NetworkInvalidRequest = 0x18
  188. ServerFailed = 0x1e
  189. ServerBadContent = 0x21
  190. ServerUnauthorized = 0x22
  191. ServerCertProblem = 0x23
  192. ServerForbidden = 0x24
  193. ServerUnreachable = 0x25
  194. UserCanceled = 0x28
  195. class DownloadState(enum.Enum):
  196. DownloadRequested = 0x0
  197. DownloadInProgress = 0x1
  198. DownloadCompleted = 0x2
  199. DownloadCancelled = 0x3
  200. DownloadInterrupted = 0x4
  201. class SavePageFormat(enum.Enum):
  202. UnknownSaveFormat = -1
  203. SingleHtmlSaveFormat = 0x0
  204. CompleteHtmlSaveFormat = 0x1
  205. MimeHtmlSaveFormat = 0x2
  206. def accept(self, /) -> None: ...
  207. def cancel(self, /) -> None: ...
  208. def downloadDirectory(self, /) -> str: ...
  209. def downloadFileName(self, /) -> str: ...
  210. def id(self, /) -> int: ...
  211. def interruptReason(self, /) -> PySide6.QtWebEngineCore.QWebEngineDownloadRequest.DownloadInterruptReason: ...
  212. def interruptReasonString(self, /) -> str: ...
  213. def isFinished(self, /) -> bool: ...
  214. def isPaused(self, /) -> bool: ...
  215. def isSavePageDownload(self, /) -> bool: ...
  216. def mimeType(self, /) -> str: ...
  217. def page(self, /) -> PySide6.QtWebEngineCore.QWebEnginePage: ...
  218. def pause(self, /) -> None: ...
  219. def receivedBytes(self, /) -> int: ...
  220. def resume(self, /) -> None: ...
  221. def savePageFormat(self, /) -> PySide6.QtWebEngineCore.QWebEngineDownloadRequest.SavePageFormat: ...
  222. def setDownloadDirectory(self, directory: str, /) -> None: ...
  223. def setDownloadFileName(self, fileName: str, /) -> None: ...
  224. def setSavePageFormat(self, format: PySide6.QtWebEngineCore.QWebEngineDownloadRequest.SavePageFormat, /) -> None: ...
  225. def state(self, /) -> PySide6.QtWebEngineCore.QWebEngineDownloadRequest.DownloadState: ...
  226. def suggestedFileName(self, /) -> str: ...
  227. def totalBytes(self, /) -> int: ...
  228. def url(self, /) -> PySide6.QtCore.QUrl: ...
  229. class QWebEngineExtensionInfo(Shiboken.Object):
  230. @typing.overload
  231. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineExtensionInfo, /, *, name: str | None = ..., id: str | None = ..., description: str | None = ..., path: str | None = ..., error: str | None = ..., actionPopupUrl: PySide6.QtCore.QUrl | None = ..., isEnabled: bool | None = ..., isLoaded: bool | None = ..., isInstalled: bool | None = ...) -> None: ...
  232. @typing.overload
  233. def __init__(self, /, *, name: str | None = ..., id: str | None = ..., description: str | None = ..., path: str | None = ..., error: str | None = ..., actionPopupUrl: PySide6.QtCore.QUrl | None = ..., isEnabled: bool | None = ..., isLoaded: bool | None = ..., isInstalled: bool | None = ...) -> None: ...
  234. def actionPopupUrl(self, /) -> PySide6.QtCore.QUrl: ...
  235. def description(self, /) -> str: ...
  236. def error(self, /) -> str: ...
  237. def id(self, /) -> str: ...
  238. def isEnabled(self, /) -> bool: ...
  239. def isInstalled(self, /) -> bool: ...
  240. def isLoaded(self, /) -> bool: ...
  241. def name(self, /) -> str: ...
  242. def path(self, /) -> str: ...
  243. def swap(self, other: PySide6.QtWebEngineCore.QWebEngineExtensionInfo, /) -> None: ...
  244. class QWebEngineExtensionManager(PySide6.QtCore.QObject):
  245. installFinished : typing.ClassVar[Signal] = ... # installFinished(QWebEngineExtensionInfo)
  246. loadFinished : typing.ClassVar[Signal] = ... # loadFinished(QWebEngineExtensionInfo)
  247. uninstallFinished : typing.ClassVar[Signal] = ... # uninstallFinished(QWebEngineExtensionInfo)
  248. unloadFinished : typing.ClassVar[Signal] = ... # unloadFinished(QWebEngineExtensionInfo)
  249. def event(self, e: PySide6.QtCore.QEvent, /) -> bool: ...
  250. def extensions(self, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineExtensionInfo]: ...
  251. def installExtension(self, path: str, /) -> None: ...
  252. def installPath(self, /) -> str: ...
  253. def loadExtension(self, path: str, /) -> None: ...
  254. def setExtensionEnabled(self, extension: PySide6.QtWebEngineCore.QWebEngineExtensionInfo, enabled: bool, /) -> None: ...
  255. def uninstallExtension(self, extension: PySide6.QtWebEngineCore.QWebEngineExtensionInfo, /) -> None: ...
  256. def unloadExtension(self, extension: PySide6.QtWebEngineCore.QWebEngineExtensionInfo, /) -> None: ...
  257. class QWebEngineFileSystemAccessRequest(Shiboken.Object):
  258. class AccessFlag(enum.Flag):
  259. Read = 0x1
  260. Write = 0x2
  261. class HandleType(enum.Enum):
  262. File = 0x0
  263. Directory = 0x1
  264. @typing.overload
  265. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest, /, *, origin: PySide6.QtCore.QUrl | None = ..., filePath: PySide6.QtCore.QUrl | None = ..., handleType: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.HandleType | None = ..., accessFlags: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.AccessFlag | None = ...) -> None: ...
  266. @typing.overload
  267. def __init__(self, /, *, origin: PySide6.QtCore.QUrl | None = ..., filePath: PySide6.QtCore.QUrl | None = ..., handleType: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.HandleType | None = ..., accessFlags: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.AccessFlag | None = ...) -> None: ...
  268. def __copy__(self, /) -> typing.Self: ...
  269. def __eq__(self, rhs: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest, /) -> bool: ...
  270. def __ne__(self, rhs: PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest, /) -> bool: ...
  271. def accept(self, /) -> None: ...
  272. def accessFlags(self, /) -> PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.AccessFlag: ...
  273. def filePath(self, /) -> PySide6.QtCore.QUrl: ...
  274. def handleType(self, /) -> PySide6.QtWebEngineCore.QWebEngineFileSystemAccessRequest.HandleType: ...
  275. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  276. def reject(self, /) -> None: ...
  277. class QWebEngineFindTextResult(Shiboken.Object):
  278. @typing.overload
  279. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineFindTextResult, /, *, numberOfMatches: int | None = ..., activeMatch: int | None = ...) -> None: ...
  280. @typing.overload
  281. def __init__(self, /, *, numberOfMatches: int | None = ..., activeMatch: int | None = ...) -> None: ...
  282. def __copy__(self, /) -> typing.Self: ...
  283. def activeMatch(self, /) -> int: ...
  284. def numberOfMatches(self, /) -> int: ...
  285. class QWebEngineFrame(Shiboken.Object):
  286. @typing.overload
  287. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineFrame, /, *, isValid: bool | None = ..., name: str | None = ..., htmlName: str | None = ..., url: PySide6.QtCore.QUrl | None = ..., size: PySide6.QtCore.QSizeF | None = ..., isMainFrame: bool | None = ..., children: collections.abc.Sequence[PySide6.QtWebEngineCore.QWebEngineFrame] | None = ...) -> None: ...
  288. @typing.overload
  289. def __init__(self, /, *, isValid: bool | None = ..., name: str | None = ..., htmlName: str | None = ..., url: PySide6.QtCore.QUrl | None = ..., size: PySide6.QtCore.QSizeF | None = ..., isMainFrame: bool | None = ..., children: collections.abc.Sequence[PySide6.QtWebEngineCore.QWebEngineFrame] | None = ...) -> None: ...
  290. def __copy__(self, /) -> typing.Self: ...
  291. def __eq__(self, rhs: PySide6.QtWebEngineCore.QWebEngineFrame, /) -> bool: ...
  292. def __ne__(self, rhs: PySide6.QtWebEngineCore.QWebEngineFrame, /) -> bool: ...
  293. def children(self, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineFrame]: ...
  294. def htmlName(self, /) -> str: ...
  295. def isMainFrame(self, /) -> bool: ...
  296. def isValid(self, /) -> bool: ...
  297. def name(self, /) -> str: ...
  298. @typing.overload
  299. def printToPdf(self, filePath: str, /) -> None: ...
  300. @typing.overload
  301. def printToPdf(self, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  302. @typing.overload
  303. def runJavaScript(self, scriptSource: str, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  304. @typing.overload
  305. def runJavaScript(self, scriptSource: str, worldId: int, /, resultCallback: collections.abc.Callable[..., typing.Any] = ...) -> None: ...
  306. def size(self, /) -> PySide6.QtCore.QSizeF: ...
  307. def url(self, /) -> PySide6.QtCore.QUrl: ...
  308. class QWebEngineFullScreenRequest(Shiboken.Object):
  309. @typing.overload
  310. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineFullScreenRequest, /, *, toggleOn: bool | None = ..., origin: PySide6.QtCore.QUrl | None = ...) -> None: ...
  311. @typing.overload
  312. def __init__(self, /, *, toggleOn: bool | None = ..., origin: PySide6.QtCore.QUrl | None = ...) -> None: ...
  313. def __copy__(self, /) -> typing.Self: ...
  314. def accept(self, /) -> None: ...
  315. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  316. def reject(self, /) -> None: ...
  317. def toggleOn(self, /) -> bool: ...
  318. class QWebEngineGlobalSettings(Shiboken.Object):
  319. class DnsMode(Shiboken.Object):
  320. @typing.overload
  321. def __init__(self, /) -> None: ...
  322. @typing.overload
  323. def __init__(self, DnsMode: PySide6.QtWebEngineCore.QWebEngineGlobalSettings.DnsMode, /) -> None: ...
  324. def __copy__(self, /) -> typing.Self: ...
  325. class SecureDnsMode(enum.Enum):
  326. SystemOnly = 0x0
  327. SecureWithFallback = 0x1
  328. SecureOnly = 0x2
  329. @staticmethod
  330. def setDnsMode(dnsMode: PySide6.QtWebEngineCore.QWebEngineGlobalSettings.DnsMode, /) -> bool: ...
  331. class QWebEngineHistory(PySide6.QtCore.QObject):
  332. def __lshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  333. def __rshift__(self, stream: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  334. def back(self, /) -> None: ...
  335. def backItem(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryItem: ...
  336. def backItems(self, maxItems: int, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineHistoryItem]: ...
  337. def backItemsModel(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryModel: ...
  338. def canGoBack(self, /) -> bool: ...
  339. def canGoForward(self, /) -> bool: ...
  340. def clear(self, /) -> None: ...
  341. def count(self, /) -> int: ...
  342. def currentItem(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryItem: ...
  343. def currentItemIndex(self, /) -> int: ...
  344. def forward(self, /) -> None: ...
  345. def forwardItem(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryItem: ...
  346. def forwardItems(self, maxItems: int, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineHistoryItem]: ...
  347. def forwardItemsModel(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryModel: ...
  348. def goToItem(self, item: PySide6.QtWebEngineCore.QWebEngineHistoryItem, /) -> None: ...
  349. def itemAt(self, i: int, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryItem: ...
  350. def items(self, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineHistoryItem]: ...
  351. def itemsModel(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistoryModel: ...
  352. class QWebEngineHistoryItem(Shiboken.Object):
  353. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineHistoryItem, /) -> None: ...
  354. def __copy__(self, /) -> typing.Self: ...
  355. def iconUrl(self, /) -> PySide6.QtCore.QUrl: ...
  356. def isValid(self, /) -> bool: ...
  357. def lastVisited(self, /) -> PySide6.QtCore.QDateTime: ...
  358. def originalUrl(self, /) -> PySide6.QtCore.QUrl: ...
  359. def title(self, /) -> str: ...
  360. def url(self, /) -> PySide6.QtCore.QUrl: ...
  361. class QWebEngineHistoryModel(PySide6.QtCore.QAbstractListModel):
  362. class Roles(enum.Enum):
  363. UrlRole = 0x100
  364. TitleRole = 0x101
  365. OffsetRole = 0x102
  366. IconUrlRole = 0x103
  367. def data(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /, role: int = ...) -> typing.Any: ...
  368. def reset(self, /) -> None: ...
  369. def roleNames(self, /) -> typing.Dict[int, PySide6.QtCore.QByteArray]: ...
  370. def rowCount(self, /, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex = ...) -> int: ...
  371. class QWebEngineHttpRequest(Shiboken.Object):
  372. class Method(enum.Enum):
  373. Get = 0x0
  374. Post = 0x1
  375. @typing.overload
  376. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineHttpRequest, /) -> None: ...
  377. @typing.overload
  378. def __init__(self, /, url: PySide6.QtCore.QUrl | str = ..., method: PySide6.QtWebEngineCore.QWebEngineHttpRequest.Method = ...) -> None: ...
  379. def __eq__(self, other: PySide6.QtWebEngineCore.QWebEngineHttpRequest, /) -> bool: ...
  380. def __ne__(self, other: PySide6.QtWebEngineCore.QWebEngineHttpRequest, /) -> bool: ...
  381. def hasHeader(self, headerName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> bool: ...
  382. def header(self, headerName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> PySide6.QtCore.QByteArray: ...
  383. def headers(self, /) -> typing.List[PySide6.QtCore.QByteArray]: ...
  384. def method(self, /) -> PySide6.QtWebEngineCore.QWebEngineHttpRequest.Method: ...
  385. def postData(self, /) -> PySide6.QtCore.QByteArray: ...
  386. @staticmethod
  387. def postRequest(url: PySide6.QtCore.QUrl | str, postData: typing.Dict[str, str], /) -> PySide6.QtWebEngineCore.QWebEngineHttpRequest: ...
  388. def setHeader(self, headerName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, value: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  389. def setMethod(self, method: PySide6.QtWebEngineCore.QWebEngineHttpRequest.Method, /) -> None: ...
  390. def setPostData(self, postData: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  391. def setUrl(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  392. def swap(self, other: PySide6.QtWebEngineCore.QWebEngineHttpRequest, /) -> None: ...
  393. def unsetHeader(self, headerName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  394. def url(self, /) -> PySide6.QtCore.QUrl: ...
  395. class QWebEngineLoadingInfo(Shiboken.Object):
  396. class ErrorDomain(enum.Enum):
  397. NoErrorDomain = 0x0
  398. InternalErrorDomain = 0x1
  399. ConnectionErrorDomain = 0x2
  400. CertificateErrorDomain = 0x3
  401. HttpErrorDomain = 0x4
  402. FtpErrorDomain = 0x5
  403. DnsErrorDomain = 0x6
  404. HttpStatusCodeDomain = 0x7
  405. class LoadStatus(enum.Enum):
  406. LoadStartedStatus = 0x0
  407. LoadStoppedStatus = 0x1
  408. LoadSucceededStatus = 0x2
  409. LoadFailedStatus = 0x3
  410. @typing.overload
  411. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineLoadingInfo, /, *, url: PySide6.QtCore.QUrl | None = ..., isErrorPage: bool | None = ..., status: PySide6.QtWebEngineCore.QWebEngineLoadingInfo.LoadStatus | None = ..., errorString: str | None = ..., errorDomain: PySide6.QtWebEngineCore.QWebEngineLoadingInfo.ErrorDomain | None = ..., errorCode: int | None = ..., responseHeaders: typing.Optional[typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray]] = ..., isDownload: bool | None = ...) -> None: ...
  412. @typing.overload
  413. def __init__(self, /, *, url: PySide6.QtCore.QUrl | None = ..., isErrorPage: bool | None = ..., status: PySide6.QtWebEngineCore.QWebEngineLoadingInfo.LoadStatus | None = ..., errorString: str | None = ..., errorDomain: PySide6.QtWebEngineCore.QWebEngineLoadingInfo.ErrorDomain | None = ..., errorCode: int | None = ..., responseHeaders: typing.Optional[typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray]] = ..., isDownload: bool | None = ...) -> None: ...
  414. def __copy__(self, /) -> typing.Self: ...
  415. def errorCode(self, /) -> int: ...
  416. def errorDomain(self, /) -> PySide6.QtWebEngineCore.QWebEngineLoadingInfo.ErrorDomain: ...
  417. def errorString(self, /) -> str: ...
  418. def isDownload(self, /) -> bool: ...
  419. def isErrorPage(self, /) -> bool: ...
  420. def responseHeaders(self, /) -> typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray]: ...
  421. def status(self, /) -> PySide6.QtWebEngineCore.QWebEngineLoadingInfo.LoadStatus: ...
  422. def url(self, /) -> PySide6.QtCore.QUrl: ...
  423. class QWebEngineNavigationRequest(PySide6.QtCore.QObject):
  424. actionChanged : typing.ClassVar[Signal] = ... # actionChanged()
  425. class NavigationRequestAction(enum.Enum):
  426. AcceptRequest = 0x0
  427. IgnoreRequest = 0xff
  428. class NavigationType(enum.Enum):
  429. LinkClickedNavigation = 0x0
  430. TypedNavigation = 0x1
  431. FormSubmittedNavigation = 0x2
  432. BackForwardNavigation = 0x3
  433. ReloadNavigation = 0x4
  434. OtherNavigation = 0x5
  435. RedirectNavigation = 0x6
  436. def accept(self, /) -> None: ...
  437. def hasFormData(self, /) -> bool: ...
  438. def isMainFrame(self, /) -> bool: ...
  439. def navigationType(self, /) -> PySide6.QtWebEngineCore.QWebEngineNavigationRequest.NavigationType: ...
  440. def reject(self, /) -> None: ...
  441. def url(self, /) -> PySide6.QtCore.QUrl: ...
  442. class QWebEngineNewWindowRequest(PySide6.QtCore.QObject):
  443. class DestinationType(enum.Enum):
  444. InNewWindow = 0x0
  445. InNewTab = 0x1
  446. InNewDialog = 0x2
  447. InNewBackgroundTab = 0x3
  448. def destination(self, /) -> PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.DestinationType: ...
  449. def isUserInitiated(self, /) -> bool: ...
  450. def openIn(self, arg__1: PySide6.QtWebEngineCore.QWebEnginePage, /) -> None: ...
  451. def requestedGeometry(self, /) -> PySide6.QtCore.QRect: ...
  452. def requestedUrl(self, /) -> PySide6.QtCore.QUrl: ...
  453. class QWebEngineNotification(PySide6.QtCore.QObject):
  454. closed : typing.ClassVar[Signal] = ... # closed()
  455. def click(self, /) -> None: ...
  456. def close(self, /) -> None: ...
  457. def direction(self, /) -> PySide6.QtCore.Qt.LayoutDirection: ...
  458. def icon(self, /) -> PySide6.QtGui.QImage: ...
  459. def language(self, /) -> str: ...
  460. def matches(self, other: PySide6.QtWebEngineCore.QWebEngineNotification, /) -> bool: ...
  461. def message(self, /) -> str: ...
  462. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  463. def show(self, /) -> None: ...
  464. def tag(self, /) -> str: ...
  465. def title(self, /) -> str: ...
  466. class QWebEnginePage(PySide6.QtCore.QObject):
  467. _q_aboutToDelete : typing.ClassVar[Signal] = ... # _q_aboutToDelete()
  468. audioMutedChanged : typing.ClassVar[Signal] = ... # audioMutedChanged(bool)
  469. authenticationRequired : typing.ClassVar[Signal] = ... # authenticationRequired(QUrl,QAuthenticator*)
  470. certificateError : typing.ClassVar[Signal] = ... # certificateError(QWebEngineCertificateError)
  471. contentsSizeChanged : typing.ClassVar[Signal] = ... # contentsSizeChanged(QSizeF)
  472. desktopMediaRequested : typing.ClassVar[Signal] = ... # desktopMediaRequested(QWebEngineDesktopMediaRequest)
  473. featurePermissionRequestCanceled: typing.ClassVar[Signal] = ... # featurePermissionRequestCanceled(QUrl,QWebEnginePage::Feature)
  474. featurePermissionRequested: typing.ClassVar[Signal] = ... # featurePermissionRequested(QUrl,QWebEnginePage::Feature)
  475. fileSystemAccessRequested: typing.ClassVar[Signal] = ... # fileSystemAccessRequested(QWebEngineFileSystemAccessRequest)
  476. findTextFinished : typing.ClassVar[Signal] = ... # findTextFinished(QWebEngineFindTextResult)
  477. fullScreenRequested : typing.ClassVar[Signal] = ... # fullScreenRequested(QWebEngineFullScreenRequest)
  478. geometryChangeRequested : typing.ClassVar[Signal] = ... # geometryChangeRequested(QRect)
  479. iconChanged : typing.ClassVar[Signal] = ... # iconChanged(QIcon)
  480. iconUrlChanged : typing.ClassVar[Signal] = ... # iconUrlChanged(QUrl)
  481. lifecycleStateChanged : typing.ClassVar[Signal] = ... # lifecycleStateChanged(LifecycleState)
  482. linkHovered : typing.ClassVar[Signal] = ... # linkHovered(QString)
  483. loadFinished : typing.ClassVar[Signal] = ... # loadFinished(bool)
  484. loadProgress : typing.ClassVar[Signal] = ... # loadProgress(int)
  485. loadStarted : typing.ClassVar[Signal] = ... # loadStarted()
  486. loadingChanged : typing.ClassVar[Signal] = ... # loadingChanged(QWebEngineLoadingInfo)
  487. navigationRequested : typing.ClassVar[Signal] = ... # navigationRequested(QWebEngineNavigationRequest&)
  488. newWindowRequested : typing.ClassVar[Signal] = ... # newWindowRequested(QWebEngineNewWindowRequest&)
  489. pdfPrintingFinished : typing.ClassVar[Signal] = ... # pdfPrintingFinished(QString,bool)
  490. permissionRequested : typing.ClassVar[Signal] = ... # permissionRequested(QWebEnginePermission)
  491. printRequested : typing.ClassVar[Signal] = ... # printRequested()
  492. printRequestedByFrame : typing.ClassVar[Signal] = ... # printRequestedByFrame(QWebEngineFrame)
  493. proxyAuthenticationRequired: typing.ClassVar[Signal] = ... # proxyAuthenticationRequired(QUrl,QAuthenticator*,QString)
  494. quotaRequested : typing.ClassVar[Signal] = ... # quotaRequested(QWebEngineQuotaRequest)
  495. recentlyAudibleChanged : typing.ClassVar[Signal] = ... # recentlyAudibleChanged(bool)
  496. recommendedStateChanged : typing.ClassVar[Signal] = ... # recommendedStateChanged(LifecycleState)
  497. registerProtocolHandlerRequested: typing.ClassVar[Signal] = ... # registerProtocolHandlerRequested(QWebEngineRegisterProtocolHandlerRequest)
  498. renderProcessPidChanged : typing.ClassVar[Signal] = ... # renderProcessPidChanged(qlonglong)
  499. renderProcessTerminated : typing.ClassVar[Signal] = ... # renderProcessTerminated(RenderProcessTerminationStatus,int)
  500. scrollPositionChanged : typing.ClassVar[Signal] = ... # scrollPositionChanged(QPointF)
  501. selectClientCertificate : typing.ClassVar[Signal] = ... # selectClientCertificate(QWebEngineClientCertificateSelection)
  502. selectionChanged : typing.ClassVar[Signal] = ... # selectionChanged()
  503. titleChanged : typing.ClassVar[Signal] = ... # titleChanged(QString)
  504. urlChanged : typing.ClassVar[Signal] = ... # urlChanged(QUrl)
  505. visibleChanged : typing.ClassVar[Signal] = ... # visibleChanged(bool)
  506. webAuthUxRequested : typing.ClassVar[Signal] = ... # webAuthUxRequested(QWebEngineWebAuthUxRequest*)
  507. windowCloseRequested : typing.ClassVar[Signal] = ... # windowCloseRequested()
  508. zoomFactorChanged : typing.ClassVar[Signal] = ... # zoomFactorChanged(double)
  509. class Feature(enum.Enum):
  510. Notifications = 0x0
  511. Geolocation = 0x1
  512. MediaAudioCapture = 0x2
  513. MediaVideoCapture = 0x3
  514. MediaAudioVideoCapture = 0x4
  515. MouseLock = 0x5
  516. DesktopVideoCapture = 0x6
  517. DesktopAudioVideoCapture = 0x7
  518. ClipboardReadWrite = 0x8
  519. LocalFontsAccess = 0x9
  520. class FileSelectionMode(enum.Enum):
  521. FileSelectOpen = 0x0
  522. FileSelectOpenMultiple = 0x1
  523. FileSelectUploadFolder = 0x2
  524. FileSelectSave = 0x3
  525. class FindFlag(enum.Flag):
  526. FindBackward = 0x1
  527. FindCaseSensitively = 0x2
  528. class JavaScriptConsoleMessageLevel(enum.Enum):
  529. InfoMessageLevel = 0x0
  530. WarningMessageLevel = 0x1
  531. ErrorMessageLevel = 0x2
  532. class LifecycleState(enum.Enum):
  533. Active = 0x0
  534. Frozen = 0x1
  535. Discarded = 0x2
  536. class NavigationType(enum.Enum):
  537. NavigationTypeLinkClicked = 0x0
  538. NavigationTypeTyped = 0x1
  539. NavigationTypeFormSubmitted = 0x2
  540. NavigationTypeBackForward = 0x3
  541. NavigationTypeReload = 0x4
  542. NavigationTypeOther = 0x5
  543. NavigationTypeRedirect = 0x6
  544. class PermissionPolicy(enum.Enum):
  545. PermissionUnknown = 0x0
  546. PermissionGrantedByUser = 0x1
  547. PermissionDeniedByUser = 0x2
  548. class RenderProcessTerminationStatus(enum.Enum):
  549. NormalTerminationStatus = 0x0
  550. AbnormalTerminationStatus = 0x1
  551. CrashedTerminationStatus = 0x2
  552. KilledTerminationStatus = 0x3
  553. class WebAction(enum.Enum):
  554. NoWebAction = -1
  555. Back = 0x0
  556. Forward = 0x1
  557. Stop = 0x2
  558. Reload = 0x3
  559. Cut = 0x4
  560. Copy = 0x5
  561. Paste = 0x6
  562. Undo = 0x7
  563. Redo = 0x8
  564. SelectAll = 0x9
  565. ReloadAndBypassCache = 0xa
  566. PasteAndMatchStyle = 0xb
  567. OpenLinkInThisWindow = 0xc
  568. OpenLinkInNewWindow = 0xd
  569. OpenLinkInNewTab = 0xe
  570. CopyLinkToClipboard = 0xf
  571. DownloadLinkToDisk = 0x10
  572. CopyImageToClipboard = 0x11
  573. CopyImageUrlToClipboard = 0x12
  574. DownloadImageToDisk = 0x13
  575. CopyMediaUrlToClipboard = 0x14
  576. ToggleMediaControls = 0x15
  577. ToggleMediaLoop = 0x16
  578. ToggleMediaPlayPause = 0x17
  579. ToggleMediaMute = 0x18
  580. DownloadMediaToDisk = 0x19
  581. InspectElement = 0x1a
  582. ExitFullScreen = 0x1b
  583. RequestClose = 0x1c
  584. Unselect = 0x1d
  585. SavePage = 0x1e
  586. OpenLinkInNewBackgroundTab = 0x1f
  587. ViewSource = 0x20
  588. ToggleBold = 0x21
  589. ToggleItalic = 0x22
  590. ToggleUnderline = 0x23
  591. ToggleStrikethrough = 0x24
  592. AlignLeft = 0x25
  593. AlignCenter = 0x26
  594. AlignRight = 0x27
  595. AlignJustified = 0x28
  596. Indent = 0x29
  597. Outdent = 0x2a
  598. InsertOrderedList = 0x2b
  599. InsertUnorderedList = 0x2c
  600. ChangeTextDirectionLTR = 0x2d
  601. ChangeTextDirectionRTL = 0x2e
  602. WebActionCount = 0x2f
  603. class WebWindowType(enum.Enum):
  604. WebBrowserWindow = 0x0
  605. WebBrowserTab = 0x1
  606. WebDialog = 0x2
  607. WebBrowserBackgroundTab = 0x3
  608. @typing.overload
  609. def __init__(self, profile: PySide6.QtWebEngineCore.QWebEngineProfile, /, parent: PySide6.QtCore.QObject | None = ..., *, selectedText: str | None = ..., hasSelection: bool | None = ..., requestedUrl: PySide6.QtCore.QUrl | None = ..., zoomFactor: float | None = ..., title: str | None = ..., url: PySide6.QtCore.QUrl | None = ..., iconUrl: PySide6.QtCore.QUrl | None = ..., icon: PySide6.QtGui.QIcon | None = ..., backgroundColor: PySide6.QtGui.QColor | None = ..., contentsSize: PySide6.QtCore.QSizeF | None = ..., scrollPosition: PySide6.QtCore.QPointF | None = ..., audioMuted: bool | None = ..., recentlyAudible: bool | None = ..., visible: bool | None = ..., lifecycleState: PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState | None = ..., recommendedState: PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState | None = ..., renderProcessPid: int | None = ..., loading: bool | None = ...) -> None: ...
  610. @typing.overload
  611. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, selectedText: str | None = ..., hasSelection: bool | None = ..., requestedUrl: PySide6.QtCore.QUrl | None = ..., zoomFactor: float | None = ..., title: str | None = ..., url: PySide6.QtCore.QUrl | None = ..., iconUrl: PySide6.QtCore.QUrl | None = ..., icon: PySide6.QtGui.QIcon | None = ..., backgroundColor: PySide6.QtGui.QColor | None = ..., contentsSize: PySide6.QtCore.QSizeF | None = ..., scrollPosition: PySide6.QtCore.QPointF | None = ..., audioMuted: bool | None = ..., recentlyAudible: bool | None = ..., visible: bool | None = ..., lifecycleState: PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState | None = ..., recommendedState: PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState | None = ..., renderProcessPid: int | None = ..., loading: bool | None = ...) -> None: ...
  612. def acceptAsNewWindow(self, request: PySide6.QtWebEngineCore.QWebEngineNewWindowRequest, /) -> None: ...
  613. def acceptNavigationRequest(self, url: PySide6.QtCore.QUrl | str, type: PySide6.QtWebEngineCore.QWebEnginePage.NavigationType, isMainFrame: bool, /) -> bool: ...
  614. def action(self, action: PySide6.QtWebEngineCore.QWebEnginePage.WebAction, /) -> PySide6.QtGui.QAction: ...
  615. def backgroundColor(self, /) -> PySide6.QtGui.QColor: ...
  616. def chooseFiles(self, mode: PySide6.QtWebEngineCore.QWebEnginePage.FileSelectionMode, oldFiles: collections.abc.Sequence[str], acceptedMimeTypes: collections.abc.Sequence[str], /) -> typing.List[str]: ...
  617. def contentsSize(self, /) -> PySide6.QtCore.QSizeF: ...
  618. def createWindow(self, type: PySide6.QtWebEngineCore.QWebEnginePage.WebWindowType, /) -> PySide6.QtWebEngineCore.QWebEnginePage: ...
  619. def devToolsId(self, /) -> str: ...
  620. def devToolsPage(self, /) -> PySide6.QtWebEngineCore.QWebEnginePage: ...
  621. def download(self, url: PySide6.QtCore.QUrl | str, /, filename: str = ...) -> None: ...
  622. def event(self, arg__1: PySide6.QtCore.QEvent, /) -> bool: ...
  623. def findFrameByName(self, name: str, /) -> PySide6.QtWebEngineCore.QWebEngineFrame: ...
  624. @typing.overload
  625. def findText(self, subString: str, /, options: PySide6.QtWebEngineCore.QWebEnginePage.FindFlag = ...) -> None: ...
  626. @typing.overload
  627. def findText(self, subString: str, options: PySide6.QtWebEngineCore.QWebEnginePage.FindFlag, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  628. def hasSelection(self, /) -> bool: ...
  629. def history(self, /) -> PySide6.QtWebEngineCore.QWebEngineHistory: ...
  630. def icon(self, /) -> PySide6.QtGui.QIcon: ...
  631. def iconUrl(self, /) -> PySide6.QtCore.QUrl: ...
  632. def inspectedPage(self, /) -> PySide6.QtWebEngineCore.QWebEnginePage: ...
  633. def isAudioMuted(self, /) -> bool: ...
  634. def isLoading(self, /) -> bool: ...
  635. def isVisible(self, /) -> bool: ...
  636. def javaScriptAlert(self, securityOrigin: PySide6.QtCore.QUrl | str, msg: str, /) -> None: ...
  637. def javaScriptConfirm(self, securityOrigin: PySide6.QtCore.QUrl | str, msg: str, /) -> bool: ...
  638. def javaScriptConsoleMessage(self, level: PySide6.QtWebEngineCore.QWebEnginePage.JavaScriptConsoleMessageLevel, message: str, lineNumber: int, sourceID: str, /) -> None: ...
  639. def javaScriptPrompt(self, securityOrigin: PySide6.QtCore.QUrl | str, msg: str, defaultValue: str, /) -> typing.Tuple[bool, str]: ...
  640. def lifecycleState(self, /) -> PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState: ...
  641. @typing.overload
  642. def load(self, request: PySide6.QtWebEngineCore.QWebEngineHttpRequest, /) -> None: ...
  643. @typing.overload
  644. def load(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  645. def mainFrame(self, /) -> PySide6.QtWebEngineCore.QWebEngineFrame: ...
  646. @typing.overload
  647. def printToPdf(self, filePath: str, /, layout: PySide6.QtGui.QPageLayout = ..., ranges: PySide6.QtGui.QPageRanges = ...) -> None: ...
  648. @typing.overload
  649. def printToPdf(self, resultCallback: collections.abc.Callable[..., typing.Any], /, pageLayout: PySide6.QtGui.QPageLayout = ..., ranges: PySide6.QtGui.QPageRanges = ...) -> None: ...
  650. def profile(self, /) -> PySide6.QtWebEngineCore.QWebEngineProfile: ...
  651. def recentlyAudible(self, /) -> bool: ...
  652. def recommendedState(self, /) -> PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState: ...
  653. def renderProcessPid(self, /) -> int: ...
  654. def replaceMisspelledWord(self, replacement: str, /) -> None: ...
  655. def requestedUrl(self, /) -> PySide6.QtCore.QUrl: ...
  656. @typing.overload
  657. def runJavaScript(self, scriptSource: str, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  658. @typing.overload
  659. def runJavaScript(self, scriptSource: str, /, worldId: int | None = ..., resultCallback: collections.abc.Callable[..., typing.Any] = ...) -> None: ...
  660. def save(self, filePath: str, /, format: PySide6.QtWebEngineCore.QWebEngineDownloadRequest.SavePageFormat = ...) -> None: ...
  661. def scripts(self, /) -> PySide6.QtWebEngineCore.QWebEngineScriptCollection: ...
  662. def scrollPosition(self, /) -> PySide6.QtCore.QPointF: ...
  663. def selectedText(self, /) -> str: ...
  664. def setAudioMuted(self, muted: bool, /) -> None: ...
  665. def setBackgroundColor(self, color: typing.Union[PySide6.QtGui.QColor, str, PySide6.QtGui.QRgba64, typing.Any, PySide6.QtCore.Qt.GlobalColor, int], /) -> None: ...
  666. def setContent(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /, mimeType: str = ..., baseUrl: PySide6.QtCore.QUrl | str = ...) -> None: ...
  667. def setDevToolsPage(self, page: PySide6.QtWebEngineCore.QWebEnginePage, /) -> None: ...
  668. def setFeaturePermission(self, securityOrigin: PySide6.QtCore.QUrl | str, feature: PySide6.QtWebEngineCore.QWebEnginePage.Feature, policy: PySide6.QtWebEngineCore.QWebEnginePage.PermissionPolicy, /) -> None: ...
  669. def setHtml(self, html: str, /, baseUrl: PySide6.QtCore.QUrl | str = ...) -> None: ...
  670. def setInspectedPage(self, page: PySide6.QtWebEngineCore.QWebEnginePage, /) -> None: ...
  671. def setLifecycleState(self, state: PySide6.QtWebEngineCore.QWebEnginePage.LifecycleState, /) -> None: ...
  672. def setUrl(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  673. def setUrlRequestInterceptor(self, interceptor: PySide6.QtWebEngineCore.QWebEngineUrlRequestInterceptor, /) -> None: ...
  674. def setVisible(self, visible: bool, /) -> None: ...
  675. def setWebChannel(self, arg__1: PySide6.QtWebChannel.QWebChannel, /, worldId: int | None = ...) -> None: ...
  676. def setZoomFactor(self, factor: float, /) -> None: ...
  677. def settings(self, /) -> PySide6.QtWebEngineCore.QWebEngineSettings: ...
  678. def title(self, /) -> str: ...
  679. def toHtml(self, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  680. def toPlainText(self, resultCallback: collections.abc.Callable[..., typing.Any], /) -> None: ...
  681. def triggerAction(self, action: PySide6.QtWebEngineCore.QWebEnginePage.WebAction, /, checked: bool = ...) -> None: ...
  682. def url(self, /) -> PySide6.QtCore.QUrl: ...
  683. def webChannel(self, /) -> PySide6.QtWebChannel.QWebChannel: ...
  684. def zoomFactor(self, /) -> float: ...
  685. class QWebEnginePermission(Shiboken.Object):
  686. class PermissionType(enum.Enum):
  687. Unsupported = 0x0
  688. MediaAudioCapture = 0x1
  689. MediaVideoCapture = 0x2
  690. MediaAudioVideoCapture = 0x3
  691. DesktopVideoCapture = 0x4
  692. DesktopAudioVideoCapture = 0x5
  693. MouseLock = 0x6
  694. Notifications = 0x7
  695. Geolocation = 0x8
  696. ClipboardReadWrite = 0x9
  697. LocalFontsAccess = 0xa
  698. class State(enum.Enum):
  699. Invalid = 0x0
  700. Ask = 0x1
  701. Granted = 0x2
  702. Denied = 0x3
  703. @typing.overload
  704. def __init__(self, other: PySide6.QtWebEngineCore.QWebEnginePermission, /, *, origin: PySide6.QtCore.QUrl | None = ..., permissionType: PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType | None = ..., state: PySide6.QtWebEngineCore.QWebEnginePermission.State | None = ..., isValid: bool | None = ...) -> None: ...
  705. @typing.overload
  706. def __init__(self, /, *, origin: PySide6.QtCore.QUrl | None = ..., permissionType: PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType | None = ..., state: PySide6.QtWebEngineCore.QWebEnginePermission.State | None = ..., isValid: bool | None = ...) -> None: ...
  707. def __copy__(self, /) -> typing.Self: ...
  708. def __eq__(self, rhs: PySide6.QtWebEngineCore.QWebEnginePermission, /) -> bool: ...
  709. def __ne__(self, rhs: PySide6.QtWebEngineCore.QWebEnginePermission, /) -> bool: ...
  710. def deny(self, /) -> None: ...
  711. def grant(self, /) -> None: ...
  712. @staticmethod
  713. def isPersistent(permissionType: PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType, /) -> bool: ...
  714. def isValid(self, /) -> bool: ...
  715. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  716. def permissionType(self, /) -> PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType: ...
  717. def reset(self, /) -> None: ...
  718. def state(self, /) -> PySide6.QtWebEngineCore.QWebEnginePermission.State: ...
  719. def swap(self, other: PySide6.QtWebEngineCore.QWebEnginePermission, /) -> None: ...
  720. class QWebEngineProfile(PySide6.QtCore.QObject):
  721. clearHttpCacheCompleted : typing.ClassVar[Signal] = ... # clearHttpCacheCompleted()
  722. downloadRequested : typing.ClassVar[Signal] = ... # downloadRequested(QWebEngineDownloadRequest*)
  723. class HttpCacheType(enum.Enum):
  724. MemoryHttpCache = 0x0
  725. DiskHttpCache = 0x1
  726. NoCache = 0x2
  727. class PersistentCookiesPolicy(enum.Enum):
  728. NoPersistentCookies = 0x0
  729. AllowPersistentCookies = 0x1
  730. ForcePersistentCookies = 0x2
  731. class PersistentPermissionsPolicy(enum.Enum):
  732. AskEveryTime = 0x0
  733. StoreInMemory = 0x1
  734. StoreOnDisk = 0x2
  735. @typing.overload
  736. def __init__(self, name: str, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  737. @typing.overload
  738. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  739. def additionalTrustedCertificates(self, /) -> typing.List[PySide6.QtNetwork.QSslCertificate]: ...
  740. def cachePath(self, /) -> str: ...
  741. def clearAllVisitedLinks(self, /) -> None: ...
  742. def clearHttpCache(self, /) -> None: ...
  743. def clearVisitedLinks(self, urls: collections.abc.Sequence[PySide6.QtCore.QUrl], /) -> None: ...
  744. def clientCertificateStore(self, /) -> PySide6.QtWebEngineCore.QWebEngineClientCertificateStore: ...
  745. def clientHints(self, /) -> PySide6.QtWebEngineCore.QWebEngineClientHints: ...
  746. def cookieStore(self, /) -> PySide6.QtWebEngineCore.QWebEngineCookieStore: ...
  747. @staticmethod
  748. def defaultProfile() -> PySide6.QtWebEngineCore.QWebEngineProfile: ...
  749. def downloadPath(self, /) -> str: ...
  750. def extensionManager(self, /) -> PySide6.QtWebEngineCore.QWebEngineExtensionManager: ...
  751. def httpAcceptLanguage(self, /) -> str: ...
  752. def httpCacheMaximumSize(self, /) -> int: ...
  753. def httpCacheType(self, /) -> PySide6.QtWebEngineCore.QWebEngineProfile.HttpCacheType: ...
  754. def httpUserAgent(self, /) -> str: ...
  755. def installUrlSchemeHandler(self, scheme: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, arg__2: PySide6.QtWebEngineCore.QWebEngineUrlSchemeHandler, /) -> None: ...
  756. def isOffTheRecord(self, /) -> bool: ...
  757. def isPushServiceEnabled(self, /) -> bool: ...
  758. def isSpellCheckEnabled(self, /) -> bool: ...
  759. def listAllPermissions(self, /) -> typing.List[PySide6.QtWebEngineCore.QWebEnginePermission]: ...
  760. def listPermissionsForOrigin(self, securityOrigin: PySide6.QtCore.QUrl | str, /) -> typing.List[PySide6.QtWebEngineCore.QWebEnginePermission]: ...
  761. def listPermissionsForPermissionType(self, permissionType: PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType, /) -> typing.List[PySide6.QtWebEngineCore.QWebEnginePermission]: ...
  762. def persistentCookiesPolicy(self, /) -> PySide6.QtWebEngineCore.QWebEngineProfile.PersistentCookiesPolicy: ...
  763. def persistentPermissionsPolicy(self, /) -> PySide6.QtWebEngineCore.QWebEngineProfile.PersistentPermissionsPolicy: ...
  764. def persistentStoragePath(self, /) -> str: ...
  765. def queryPermission(self, securityOrigin: PySide6.QtCore.QUrl | str, permissionType: PySide6.QtWebEngineCore.QWebEnginePermission.PermissionType, /) -> PySide6.QtWebEngineCore.QWebEnginePermission: ...
  766. def removeAllUrlSchemeHandlers(self, /) -> None: ...
  767. def removeUrlScheme(self, scheme: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  768. def removeUrlSchemeHandler(self, arg__1: PySide6.QtWebEngineCore.QWebEngineUrlSchemeHandler, /) -> None: ...
  769. def scripts(self, /) -> PySide6.QtWebEngineCore.QWebEngineScriptCollection: ...
  770. def setCachePath(self, path: str, /) -> None: ...
  771. def setDownloadPath(self, path: str, /) -> None: ...
  772. def setHttpAcceptLanguage(self, httpAcceptLanguage: str, /) -> None: ...
  773. def setHttpCacheMaximumSize(self, maxSize: int, /) -> None: ...
  774. def setHttpCacheType(self, arg__1: PySide6.QtWebEngineCore.QWebEngineProfile.HttpCacheType, /) -> None: ...
  775. def setHttpUserAgent(self, userAgent: str, /) -> None: ...
  776. def setNotificationPresenter(self, notificationPresenter: collections.abc.Callable[..., typing.Any], /) -> None: ...
  777. def setPersistentCookiesPolicy(self, arg__1: PySide6.QtWebEngineCore.QWebEngineProfile.PersistentCookiesPolicy, /) -> None: ...
  778. def setPersistentPermissionsPolicy(self, arg__1: PySide6.QtWebEngineCore.QWebEngineProfile.PersistentPermissionsPolicy, /) -> None: ...
  779. def setPersistentStoragePath(self, path: str, /) -> None: ...
  780. def setPushServiceEnabled(self, enabled: bool, /) -> None: ...
  781. def setSpellCheckEnabled(self, enabled: bool, /) -> None: ...
  782. def setSpellCheckLanguages(self, languages: collections.abc.Sequence[str], /) -> None: ...
  783. def setUrlRequestInterceptor(self, interceptor: PySide6.QtWebEngineCore.QWebEngineUrlRequestInterceptor, /) -> None: ...
  784. def settings(self, /) -> PySide6.QtWebEngineCore.QWebEngineSettings: ...
  785. def spellCheckLanguages(self, /) -> typing.List[str]: ...
  786. def storageName(self, /) -> str: ...
  787. def urlSchemeHandler(self, arg__1: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> PySide6.QtWebEngineCore.QWebEngineUrlSchemeHandler: ...
  788. def visitedLinksContainsUrl(self, url: PySide6.QtCore.QUrl | str, /) -> bool: ...
  789. class QWebEngineProfileBuilder(Shiboken.Object):
  790. def __init__(self, /) -> None: ...
  791. @staticmethod
  792. def createOffTheRecordProfile(parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtWebEngineCore.QWebEngineProfile: ...
  793. def createProfile(self, storageName: str, /, parent: PySide6.QtCore.QObject | None = ...) -> PySide6.QtWebEngineCore.QWebEngineProfile: ...
  794. def setAdditionalTrustedCertificates(self, additionalTrustedCertificates: collections.abc.Sequence[PySide6.QtNetwork.QSslCertificate], /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  795. def setCachePath(self, path: str, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  796. def setHttpCacheMaximumSize(self, maxSizeInBytes: int, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  797. def setHttpCacheType(self, httpCacheType: PySide6.QtWebEngineCore.QWebEngineProfile.HttpCacheType, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  798. def setPersistentCookiesPolicy(self, persistentCookiesPolicy: PySide6.QtWebEngineCore.QWebEngineProfile.PersistentCookiesPolicy, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  799. def setPersistentPermissionsPolicy(self, persistentPermissionPolicy: PySide6.QtWebEngineCore.QWebEngineProfile.PersistentPermissionsPolicy, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  800. def setPersistentStoragePath(self, path: str, /) -> PySide6.QtWebEngineCore.QWebEngineProfileBuilder: ...
  801. class QWebEngineQuotaRequest(Shiboken.Object):
  802. def __init__(self, /, *, origin: PySide6.QtCore.QUrl | None = ..., requestedSize: int | None = ...) -> None: ...
  803. def __eq__(self, arg__1: PySide6.QtWebEngineCore.QWebEngineQuotaRequest, /) -> bool: ...
  804. def __ne__(self, arg__1: PySide6.QtWebEngineCore.QWebEngineQuotaRequest, /) -> bool: ...
  805. def accept(self, /) -> None: ...
  806. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  807. def reject(self, /) -> None: ...
  808. def requestedSize(self, /) -> int: ...
  809. class QWebEngineRegisterProtocolHandlerRequest(Shiboken.Object):
  810. @typing.overload
  811. def __init__(self, QWebEngineRegisterProtocolHandlerRequest: PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest, /, *, origin: PySide6.QtCore.QUrl | None = ..., scheme: str | None = ...) -> None: ...
  812. @typing.overload
  813. def __init__(self, /, *, origin: PySide6.QtCore.QUrl | None = ..., scheme: str | None = ...) -> None: ...
  814. def __copy__(self, /) -> typing.Self: ...
  815. def __eq__(self, that: PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest, /) -> bool: ...
  816. def __ne__(self, that: PySide6.QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest, /) -> bool: ...
  817. def accept(self, /) -> None: ...
  818. def origin(self, /) -> PySide6.QtCore.QUrl: ...
  819. def reject(self, /) -> None: ...
  820. def scheme(self, /) -> str: ...
  821. class QWebEngineScript(Shiboken.Object):
  822. class InjectionPoint(enum.Enum):
  823. Deferred = 0x0
  824. DocumentReady = 0x1
  825. DocumentCreation = 0x2
  826. class ScriptWorldId(enum.IntEnum):
  827. MainWorld = 0x0
  828. ApplicationWorld = 0x1
  829. UserWorld = 0x2
  830. @typing.overload
  831. def __init__(self, other: PySide6.QtWebEngineCore.QWebEngineScript, /, *, name: str | None = ..., sourceUrl: PySide6.QtCore.QUrl | None = ..., sourceCode: str | None = ..., injectionPoint: PySide6.QtWebEngineCore.QWebEngineScript.InjectionPoint | None = ..., worldId: int | None = ..., runsOnSubFrames: bool | None = ...) -> None: ...
  832. @typing.overload
  833. def __init__(self, /, *, name: str | None = ..., sourceUrl: PySide6.QtCore.QUrl | None = ..., sourceCode: str | None = ..., injectionPoint: PySide6.QtWebEngineCore.QWebEngineScript.InjectionPoint | None = ..., worldId: int | None = ..., runsOnSubFrames: bool | None = ...) -> None: ...
  834. def __copy__(self, /) -> typing.Self: ...
  835. def __eq__(self, other: PySide6.QtWebEngineCore.QWebEngineScript, /) -> bool: ...
  836. def __ne__(self, other: PySide6.QtWebEngineCore.QWebEngineScript, /) -> bool: ...
  837. def __repr__(self, /) -> str: ...
  838. def injectionPoint(self, /) -> PySide6.QtWebEngineCore.QWebEngineScript.InjectionPoint: ...
  839. def name(self, /) -> str: ...
  840. def runsOnSubFrames(self, /) -> bool: ...
  841. def setInjectionPoint(self, arg__1: PySide6.QtWebEngineCore.QWebEngineScript.InjectionPoint, /) -> None: ...
  842. def setName(self, arg__1: str, /) -> None: ...
  843. def setRunsOnSubFrames(self, on: bool, /) -> None: ...
  844. def setSourceCode(self, arg__1: str, /) -> None: ...
  845. def setSourceUrl(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  846. def setWorldId(self, arg__1: int, /) -> None: ...
  847. def sourceCode(self, /) -> str: ...
  848. def sourceUrl(self, /) -> PySide6.QtCore.QUrl: ...
  849. def swap(self, other: PySide6.QtWebEngineCore.QWebEngineScript, /) -> None: ...
  850. def worldId(self, /) -> int: ...
  851. class QWebEngineScriptCollection(Shiboken.Object):
  852. def clear(self, /) -> None: ...
  853. def contains(self, value: PySide6.QtWebEngineCore.QWebEngineScript, /) -> bool: ...
  854. def count(self, /) -> int: ...
  855. def find(self, name: str, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineScript]: ...
  856. @typing.overload
  857. def insert(self, arg__1: PySide6.QtWebEngineCore.QWebEngineScript, /) -> None: ...
  858. @typing.overload
  859. def insert(self, list: collections.abc.Sequence[PySide6.QtWebEngineCore.QWebEngineScript], /) -> None: ...
  860. def isEmpty(self, /) -> bool: ...
  861. def remove(self, arg__1: PySide6.QtWebEngineCore.QWebEngineScript, /) -> bool: ...
  862. def toList(self, /) -> typing.List[PySide6.QtWebEngineCore.QWebEngineScript]: ...
  863. class QWebEngineSettings(Shiboken.Object):
  864. class FontFamily(enum.Enum):
  865. StandardFont = 0x0
  866. FixedFont = 0x1
  867. SerifFont = 0x2
  868. SansSerifFont = 0x3
  869. CursiveFont = 0x4
  870. FantasyFont = 0x5
  871. PictographFont = 0x6
  872. class FontSize(enum.Enum):
  873. MinimumFontSize = 0x0
  874. MinimumLogicalFontSize = 0x1
  875. DefaultFontSize = 0x2
  876. DefaultFixedFontSize = 0x3
  877. class ImageAnimationPolicy(enum.Enum):
  878. Inherited = 0x0
  879. Allow = 0x1
  880. AnimateOnce = 0x2
  881. Disallow = 0x3
  882. class UnknownUrlSchemePolicy(enum.Enum):
  883. InheritedUnknownUrlSchemePolicy = 0x0
  884. DisallowUnknownUrlSchemes = 0x1
  885. AllowUnknownUrlSchemesFromUserInteraction = 0x2
  886. AllowAllUnknownUrlSchemes = 0x3
  887. class WebAttribute(enum.Enum):
  888. AutoLoadImages = 0x0
  889. JavascriptEnabled = 0x1
  890. JavascriptCanOpenWindows = 0x2
  891. JavascriptCanAccessClipboard = 0x3
  892. LinksIncludedInFocusChain = 0x4
  893. LocalStorageEnabled = 0x5
  894. LocalContentCanAccessRemoteUrls = 0x6
  895. XSSAuditingEnabled = 0x7
  896. SpatialNavigationEnabled = 0x8
  897. LocalContentCanAccessFileUrls = 0x9
  898. HyperlinkAuditingEnabled = 0xa
  899. ScrollAnimatorEnabled = 0xb
  900. ErrorPageEnabled = 0xc
  901. PluginsEnabled = 0xd
  902. FullScreenSupportEnabled = 0xe
  903. ScreenCaptureEnabled = 0xf
  904. WebGLEnabled = 0x10
  905. Accelerated2dCanvasEnabled = 0x11
  906. AutoLoadIconsForPage = 0x12
  907. TouchIconsEnabled = 0x13
  908. FocusOnNavigationEnabled = 0x14
  909. PrintElementBackgrounds = 0x15
  910. AllowRunningInsecureContent = 0x16
  911. AllowGeolocationOnInsecureOrigins = 0x17
  912. AllowWindowActivationFromJavaScript = 0x18
  913. ShowScrollBars = 0x19
  914. PlaybackRequiresUserGesture = 0x1a
  915. WebRTCPublicInterfacesOnly = 0x1b
  916. JavascriptCanPaste = 0x1c
  917. DnsPrefetchEnabled = 0x1d
  918. PdfViewerEnabled = 0x1e
  919. NavigateOnDropEnabled = 0x1f
  920. ReadingFromCanvasEnabled = 0x20
  921. ForceDarkMode = 0x21
  922. PrintHeaderAndFooter = 0x22
  923. PreferCSSMarginsForPrinting = 0x23
  924. TouchEventsApiEnabled = 0x24
  925. BackForwardCacheEnabled = 0x25
  926. def defaultTextEncoding(self, /) -> str: ...
  927. def fontFamily(self, which: PySide6.QtWebEngineCore.QWebEngineSettings.FontFamily, /) -> str: ...
  928. def fontSize(self, type: PySide6.QtWebEngineCore.QWebEngineSettings.FontSize, /) -> int: ...
  929. def imageAnimationPolicy(self, /) -> PySide6.QtWebEngineCore.QWebEngineSettings.ImageAnimationPolicy: ...
  930. def resetAttribute(self, attr: PySide6.QtWebEngineCore.QWebEngineSettings.WebAttribute, /) -> None: ...
  931. def resetFontFamily(self, which: PySide6.QtWebEngineCore.QWebEngineSettings.FontFamily, /) -> None: ...
  932. def resetFontSize(self, type: PySide6.QtWebEngineCore.QWebEngineSettings.FontSize, /) -> None: ...
  933. def resetImageAnimationPolicy(self, /) -> None: ...
  934. def resetUnknownUrlSchemePolicy(self, /) -> None: ...
  935. def setAttribute(self, attr: PySide6.QtWebEngineCore.QWebEngineSettings.WebAttribute, on: bool, /) -> None: ...
  936. def setDefaultTextEncoding(self, encoding: str, /) -> None: ...
  937. def setFontFamily(self, which: PySide6.QtWebEngineCore.QWebEngineSettings.FontFamily, family: str, /) -> None: ...
  938. def setFontSize(self, type: PySide6.QtWebEngineCore.QWebEngineSettings.FontSize, size: int, /) -> None: ...
  939. def setImageAnimationPolicy(self, policy: PySide6.QtWebEngineCore.QWebEngineSettings.ImageAnimationPolicy, /) -> None: ...
  940. def setUnknownUrlSchemePolicy(self, policy: PySide6.QtWebEngineCore.QWebEngineSettings.UnknownUrlSchemePolicy, /) -> None: ...
  941. def testAttribute(self, attr: PySide6.QtWebEngineCore.QWebEngineSettings.WebAttribute, /) -> bool: ...
  942. def unknownUrlSchemePolicy(self, /) -> PySide6.QtWebEngineCore.QWebEngineSettings.UnknownUrlSchemePolicy: ...
  943. class QWebEngineUrlRequestInfo(Shiboken.Object):
  944. class NavigationType(enum.Enum):
  945. NavigationTypeLink = 0x0
  946. NavigationTypeTyped = 0x1
  947. NavigationTypeFormSubmitted = 0x2
  948. NavigationTypeBackForward = 0x3
  949. NavigationTypeReload = 0x4
  950. NavigationTypeOther = 0x5
  951. NavigationTypeRedirect = 0x6
  952. class ResourceType(enum.Enum):
  953. ResourceTypeMainFrame = 0x0
  954. ResourceTypeSubFrame = 0x1
  955. ResourceTypeStylesheet = 0x2
  956. ResourceTypeScript = 0x3
  957. ResourceTypeImage = 0x4
  958. ResourceTypeFontResource = 0x5
  959. ResourceTypeSubResource = 0x6
  960. ResourceTypeObject = 0x7
  961. ResourceTypeMedia = 0x8
  962. ResourceTypeWorker = 0x9
  963. ResourceTypeSharedWorker = 0xa
  964. ResourceTypePrefetch = 0xb
  965. ResourceTypeFavicon = 0xc
  966. ResourceTypeXhr = 0xd
  967. ResourceTypePing = 0xe
  968. ResourceTypeServiceWorker = 0xf
  969. ResourceTypeCspReport = 0x10
  970. ResourceTypePluginResource = 0x11
  971. ResourceTypeNavigationPreloadMainFrame = 0x13
  972. ResourceTypeNavigationPreloadSubFrame = 0x14
  973. ResourceTypeJson = 0x15
  974. ResourceTypeLast = 0x15
  975. ResourceTypeWebSocket = 0xfe
  976. ResourceTypeUnknown = 0xff
  977. def block(self, shouldBlock: bool, /) -> None: ...
  978. def changed(self, /) -> bool: ...
  979. def firstPartyUrl(self, /) -> PySide6.QtCore.QUrl: ...
  980. def httpHeaders(self, /) -> typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray]: ...
  981. def initiator(self, /) -> PySide6.QtCore.QUrl: ...
  982. def isDownload(self, /) -> bool: ...
  983. def navigationType(self, /) -> PySide6.QtWebEngineCore.QWebEngineUrlRequestInfo.NavigationType: ...
  984. def redirect(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  985. def requestBody(self, /) -> PySide6.QtCore.QIODevice: ...
  986. def requestMethod(self, /) -> PySide6.QtCore.QByteArray: ...
  987. def requestUrl(self, /) -> PySide6.QtCore.QUrl: ...
  988. def resourceType(self, /) -> PySide6.QtWebEngineCore.QWebEngineUrlRequestInfo.ResourceType: ...
  989. def setHttpHeader(self, name: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, value: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  990. class QWebEngineUrlRequestInterceptor(PySide6.QtCore.QObject):
  991. def __init__(self, /, p: PySide6.QtCore.QObject | None = ...) -> None: ...
  992. def interceptRequest(self, info: PySide6.QtWebEngineCore.QWebEngineUrlRequestInfo, /) -> None: ...
  993. class QWebEngineUrlRequestJob(PySide6.QtCore.QObject):
  994. class Error(enum.Enum):
  995. NoError = 0x0
  996. UrlNotFound = 0x1
  997. UrlInvalid = 0x2
  998. RequestAborted = 0x3
  999. RequestDenied = 0x4
  1000. RequestFailed = 0x5
  1001. def fail(self, error: PySide6.QtWebEngineCore.QWebEngineUrlRequestJob.Error, /) -> None: ...
  1002. def initiator(self, /) -> PySide6.QtCore.QUrl: ...
  1003. def redirect(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  1004. def reply(self, contentType: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, device: PySide6.QtCore.QIODevice, /) -> None: ...
  1005. def requestBody(self, /) -> PySide6.QtCore.QIODevice: ...
  1006. def requestHeaders(self, /) -> typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray]: ...
  1007. def requestMethod(self, /) -> PySide6.QtCore.QByteArray: ...
  1008. def requestUrl(self, /) -> PySide6.QtCore.QUrl: ...
  1009. def setAdditionalResponseHeaders(self, additionalResponseHeaders: typing.Dict[PySide6.QtCore.QByteArray, PySide6.QtCore.QByteArray], /) -> None: ...
  1010. class QWebEngineUrlScheme(Shiboken.Object):
  1011. class Flag(enum.Flag):
  1012. SecureScheme = 0x1
  1013. LocalScheme = 0x2
  1014. LocalAccessAllowed = 0x4
  1015. NoAccessAllowed = 0x8
  1016. ServiceWorkersAllowed = 0x10
  1017. ViewSourceAllowed = 0x20
  1018. ContentSecurityPolicyIgnored = 0x40
  1019. CorsEnabled = 0x80
  1020. FetchApiAllowed = 0x100
  1021. class SpecialPort(enum.Enum):
  1022. PortUnspecified = -1
  1023. class Syntax(enum.Enum):
  1024. HostPortAndUserInformation = 0x0
  1025. HostAndPort = 0x1
  1026. Host = 0x2
  1027. Path = 0x3
  1028. @typing.overload
  1029. def __init__(self, /) -> None: ...
  1030. @typing.overload
  1031. def __init__(self, that: PySide6.QtWebEngineCore.QWebEngineUrlScheme, /) -> None: ...
  1032. @typing.overload
  1033. def __init__(self, name: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1034. def __copy__(self, /) -> typing.Self: ...
  1035. def __eq__(self, that: PySide6.QtWebEngineCore.QWebEngineUrlScheme, /) -> bool: ...
  1036. def __ne__(self, that: PySide6.QtWebEngineCore.QWebEngineUrlScheme, /) -> bool: ...
  1037. def defaultPort(self, /) -> int: ...
  1038. def flags(self, /) -> PySide6.QtWebEngineCore.QWebEngineUrlScheme.Flag: ...
  1039. def name(self, /) -> PySide6.QtCore.QByteArray: ...
  1040. @staticmethod
  1041. def registerScheme(scheme: PySide6.QtWebEngineCore.QWebEngineUrlScheme, /) -> None: ...
  1042. @staticmethod
  1043. def schemeByName(name: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> PySide6.QtWebEngineCore.QWebEngineUrlScheme: ...
  1044. def setDefaultPort(self, newValue: int, /) -> None: ...
  1045. def setFlags(self, newValue: PySide6.QtWebEngineCore.QWebEngineUrlScheme.Flag, /) -> None: ...
  1046. def setName(self, newValue: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  1047. def setSyntax(self, newValue: PySide6.QtWebEngineCore.QWebEngineUrlScheme.Syntax, /) -> None: ...
  1048. def syntax(self, /) -> PySide6.QtWebEngineCore.QWebEngineUrlScheme.Syntax: ...
  1049. class QWebEngineUrlSchemeHandler(PySide6.QtCore.QObject):
  1050. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  1051. def requestStarted(self, arg__1: PySide6.QtWebEngineCore.QWebEngineUrlRequestJob, /) -> None: ...
  1052. class QWebEngineWebAuthPinRequest(Shiboken.Object):
  1053. @typing.overload
  1054. def __init__(self, /) -> None: ...
  1055. @typing.overload
  1056. def __init__(self, QWebEngineWebAuthPinRequest: PySide6.QtWebEngineCore.QWebEngineWebAuthPinRequest, /) -> None: ...
  1057. def __copy__(self, /) -> typing.Self: ...
  1058. class QWebEngineWebAuthUxRequest(PySide6.QtCore.QObject):
  1059. stateChanged : typing.ClassVar[Signal] = ... # stateChanged(QWebEngineWebAuthUxRequest::WebAuthUxState)
  1060. class PinEntryError(enum.Enum):
  1061. NoError = 0x0
  1062. InternalUvLocked = 0x1
  1063. WrongPin = 0x2
  1064. TooShort = 0x3
  1065. InvalidCharacters = 0x4
  1066. SameAsCurrentPin = 0x5
  1067. class PinEntryReason(enum.Enum):
  1068. Set = 0x0
  1069. Change = 0x1
  1070. Challenge = 0x2
  1071. class RequestFailureReason(enum.Enum):
  1072. Timeout = 0x0
  1073. KeyNotRegistered = 0x1
  1074. KeyAlreadyRegistered = 0x2
  1075. SoftPinBlock = 0x3
  1076. HardPinBlock = 0x4
  1077. AuthenticatorRemovedDuringPinEntry = 0x5
  1078. AuthenticatorMissingResidentKeys = 0x6
  1079. AuthenticatorMissingUserVerification = 0x7
  1080. AuthenticatorMissingLargeBlob = 0x8
  1081. NoCommonAlgorithms = 0x9
  1082. StorageFull = 0xa
  1083. UserConsentDenied = 0xb
  1084. WinUserCancelled = 0xc
  1085. class WebAuthUxState(enum.Enum):
  1086. NotStarted = 0x0
  1087. SelectAccount = 0x1
  1088. CollectPin = 0x2
  1089. FinishTokenCollection = 0x3
  1090. RequestFailed = 0x4
  1091. Cancelled = 0x5
  1092. Completed = 0x6
  1093. def cancel(self, /) -> None: ...
  1094. def pinRequest(self, /) -> PySide6.QtWebEngineCore.QWebEngineWebAuthPinRequest: ...
  1095. def relyingPartyId(self, /) -> str: ...
  1096. def requestFailureReason(self, /) -> PySide6.QtWebEngineCore.QWebEngineWebAuthUxRequest.RequestFailureReason: ...
  1097. def retry(self, /) -> None: ...
  1098. def setPin(self, pin: str, /) -> None: ...
  1099. def setSelectedAccount(self, selectedAccount: str, /) -> None: ...
  1100. def state(self, /) -> PySide6.QtWebEngineCore.QWebEngineWebAuthUxRequest.WebAuthUxState: ...
  1101. def userNames(self, /) -> typing.List[str]: ...
  1102. def qWebEngineChromiumSecurityPatchVersion() -> bytes | bytearray | memoryview: ...
  1103. def qWebEngineChromiumVersion() -> bytes | bytearray | memoryview: ...
  1104. def qWebEngineVersion() -> bytes | bytearray | memoryview: ...
  1105. # eof