File indexing completed on 2024-05-12 16:09:07
0001 class pyqtSignal(): 0002 def connect(self, targetSignal): pass 0003 def emit(self, *args): pass 0004 from QtCore import * 0005 0006 from QtWidgets import * 0007 0008 import datetime 0009 0010 class QWebEngineCertificateError(): 0011 """""" 0012 # Enum QWebEngineCertificateError.Error 0013 SslPinnedKeyNotInCertificateChain = 0 0014 CertificateCommonNameInvalid = 0 0015 CertificateDateInvalid = 0 0016 CertificateAuthorityInvalid = 0 0017 CertificateContainsErrors = 0 0018 CertificateNoRevocationMechanism = 0 0019 CertificateUnableToCheckRevocation = 0 0020 CertificateRevoked = 0 0021 CertificateInvalid = 0 0022 CertificateWeakSignatureAlgorithm = 0 0023 CertificateNonUniqueName = 0 0024 CertificateWeakKey = 0 0025 CertificateNameConstraintViolation = 0 0026 0027 def errorDescription(self): 0028 '''str QWebEngineCertificateError.errorDescription()''' 0029 return str() 0030 def isOverridable(self): 0031 '''bool QWebEngineCertificateError.isOverridable()''' 0032 return bool() 0033 def url(self): 0034 '''QUrl QWebEngineCertificateError.url()''' 0035 return QUrl() 0036 def error(self): 0037 '''QWebEngineCertificateError.Error QWebEngineCertificateError.error()''' 0038 return QWebEngineCertificateError.Error() 0039 0040 0041 class QWebEngineHistoryItem(): 0042 """""" 0043 def __init__(self, other): 0044 '''void QWebEngineHistoryItem.__init__(QWebEngineHistoryItem other)''' 0045 def isValid(self): 0046 '''bool QWebEngineHistoryItem.isValid()''' 0047 return bool() 0048 def iconUrl(self): 0049 '''QUrl QWebEngineHistoryItem.iconUrl()''' 0050 return QUrl() 0051 def lastVisited(self): 0052 '''QDateTime QWebEngineHistoryItem.lastVisited()''' 0053 return QDateTime() 0054 def title(self): 0055 '''str QWebEngineHistoryItem.title()''' 0056 return str() 0057 def url(self): 0058 '''QUrl QWebEngineHistoryItem.url()''' 0059 return QUrl() 0060 def originalUrl(self): 0061 '''QUrl QWebEngineHistoryItem.originalUrl()''' 0062 return QUrl() 0063 0064 0065 class QWebEngineHistory(): 0066 """""" 0067 def __len__(self): 0068 ''' QWebEngineHistory.__len__()''' 0069 return () 0070 def count(self): 0071 '''int QWebEngineHistory.count()''' 0072 return int() 0073 def currentItemIndex(self): 0074 '''int QWebEngineHistory.currentItemIndex()''' 0075 return int() 0076 def itemAt(self, i): 0077 '''QWebEngineHistoryItem QWebEngineHistory.itemAt(int i)''' 0078 return QWebEngineHistoryItem() 0079 def forwardItem(self): 0080 '''QWebEngineHistoryItem QWebEngineHistory.forwardItem()''' 0081 return QWebEngineHistoryItem() 0082 def currentItem(self): 0083 '''QWebEngineHistoryItem QWebEngineHistory.currentItem()''' 0084 return QWebEngineHistoryItem() 0085 def backItem(self): 0086 '''QWebEngineHistoryItem QWebEngineHistory.backItem()''' 0087 return QWebEngineHistoryItem() 0088 def goToItem(self, item): 0089 '''void QWebEngineHistory.goToItem(QWebEngineHistoryItem item)''' 0090 def forward(self): 0091 '''void QWebEngineHistory.forward()''' 0092 def back(self): 0093 '''void QWebEngineHistory.back()''' 0094 def canGoForward(self): 0095 '''bool QWebEngineHistory.canGoForward()''' 0096 return bool() 0097 def canGoBack(self): 0098 '''bool QWebEngineHistory.canGoBack()''' 0099 return bool() 0100 def forwardItems(self, maxItems): 0101 '''list-of-QWebEngineHistoryItem QWebEngineHistory.forwardItems(int maxItems)''' 0102 return [QWebEngineHistoryItem()] 0103 def backItems(self, maxItems): 0104 '''list-of-QWebEngineHistoryItem QWebEngineHistory.backItems(int maxItems)''' 0105 return [QWebEngineHistoryItem()] 0106 def items(self): 0107 '''list-of-QWebEngineHistoryItem QWebEngineHistory.items()''' 0108 return [QWebEngineHistoryItem()] 0109 def clear(self): 0110 '''void QWebEngineHistory.clear()''' 0111 0112 0113 class QWebEnginePage(QObject): 0114 """""" 0115 # Enum QWebEnginePage.NavigationType 0116 NavigationTypeLinkClicked = 0 0117 NavigationTypeTyped = 0 0118 NavigationTypeFormSubmitted = 0 0119 NavigationTypeBackForward = 0 0120 NavigationTypeReload = 0 0121 NavigationTypeOther = 0 0122 0123 # Enum QWebEnginePage.JavaScriptConsoleMessageLevel 0124 InfoMessageLevel = 0 0125 WarningMessageLevel = 0 0126 ErrorMessageLevel = 0 0127 0128 # Enum QWebEnginePage.FileSelectionMode 0129 FileSelectOpen = 0 0130 FileSelectOpenMultiple = 0 0131 0132 # Enum QWebEnginePage.Feature 0133 Geolocation = 0 0134 MediaAudioCapture = 0 0135 MediaVideoCapture = 0 0136 MediaAudioVideoCapture = 0 0137 0138 # Enum QWebEnginePage.PermissionPolicy 0139 PermissionUnknown = 0 0140 PermissionGrantedByUser = 0 0141 PermissionDeniedByUser = 0 0142 0143 # Enum QWebEnginePage.WebWindowType 0144 WebBrowserWindow = 0 0145 WebBrowserTab = 0 0146 WebDialog = 0 0147 0148 # Enum QWebEnginePage.FindFlag 0149 FindBackward = 0 0150 FindCaseSensitively = 0 0151 0152 # Enum QWebEnginePage.WebAction 0153 NoWebAction = 0 0154 Back = 0 0155 Forward = 0 0156 Stop = 0 0157 Reload = 0 0158 Cut = 0 0159 Copy = 0 0160 Paste = 0 0161 Undo = 0 0162 Redo = 0 0163 SelectAll = 0 0164 ReloadAndBypassCache = 0 0165 PasteAndMatchStyle = 0 0166 0167 def __init__(self, parent = None): 0168 '''void QWebEnginePage.__init__(QObject parent = None)''' 0169 def __init__(self, profile, parent = None): 0170 '''void QWebEnginePage.__init__(QWebEngineProfile profile, QObject parent = None)''' 0171 def acceptNavigationRequest(self, url, type, isMainFrame): 0172 '''bool QWebEnginePage.acceptNavigationRequest(QUrl url, QWebEnginePage.NavigationType type, bool isMainFrame)''' 0173 return bool() 0174 def setWebChannel(self): 0175 '''QWebChannel QWebEnginePage.setWebChannel()''' 0176 return QWebChannel() 0177 def webChannel(self): 0178 '''QWebChannel QWebEnginePage.webChannel()''' 0179 return QWebChannel() 0180 def scripts(self): 0181 '''QWebEngineScriptCollection QWebEnginePage.scripts()''' 0182 return QWebEngineScriptCollection() 0183 def profile(self): 0184 '''QWebEngineProfile QWebEnginePage.profile()''' 0185 return QWebEngineProfile() 0186 def certificateError(self, certificateError): 0187 '''bool QWebEnginePage.certificateError(QWebEngineCertificateError certificateError)''' 0188 return bool() 0189 def javaScriptConsoleMessage(self, level, message, lineNumber, sourceID): 0190 '''void QWebEnginePage.javaScriptConsoleMessage(QWebEnginePage.JavaScriptConsoleMessageLevel level, str message, int lineNumber, str sourceID)''' 0191 def javaScriptPrompt(self, securityOrigin, msg, defaultValue, result): 0192 '''bool QWebEnginePage.javaScriptPrompt(QUrl securityOrigin, str msg, str defaultValue, str result)''' 0193 return bool() 0194 def javaScriptConfirm(self, securityOrigin, msg): 0195 '''bool QWebEnginePage.javaScriptConfirm(QUrl securityOrigin, str msg)''' 0196 return bool() 0197 def javaScriptAlert(self, securityOrigin, msg): 0198 '''void QWebEnginePage.javaScriptAlert(QUrl securityOrigin, str msg)''' 0199 def chooseFiles(self, mode, oldFiles, acceptedMimeTypes): 0200 '''list-of-str QWebEnginePage.chooseFiles(QWebEnginePage.FileSelectionMode mode, list-of-str oldFiles, list-of-str acceptedMimeTypes)''' 0201 return [str()] 0202 def createWindow(self, type): 0203 '''QWebEnginePage QWebEnginePage.createWindow(QWebEnginePage.WebWindowType type)''' 0204 return QWebEnginePage() 0205 iconUrlChanged = pyqtSignal() # void iconUrlChanged(const QUrlamp;) - signal 0206 urlChanged = pyqtSignal() # void urlChanged(const QUrlamp;) - signal 0207 titleChanged = pyqtSignal() # void titleChanged(const QStringamp;) - signal 0208 proxyAuthenticationRequired = pyqtSignal() # void proxyAuthenticationRequired(const QUrlamp;,QAuthenticator*,const QStringamp;) - signal 0209 authenticationRequired = pyqtSignal() # void authenticationRequired(const QUrlamp;,QAuthenticator*) - signal 0210 featurePermissionRequestCanceled = pyqtSignal() # void featurePermissionRequestCanceled(const QUrlamp;,QWebEnginePage::Feature) - signal 0211 featurePermissionRequested = pyqtSignal() # void featurePermissionRequested(const QUrlamp;,QWebEnginePage::Feature) - signal 0212 windowCloseRequested = pyqtSignal() # void windowCloseRequested() - signal 0213 geometryChangeRequested = pyqtSignal() # void geometryChangeRequested(const QRectamp;) - signal 0214 selectionChanged = pyqtSignal() # void selectionChanged() - signal 0215 linkHovered = pyqtSignal() # void linkHovered(const QStringamp;) - signal 0216 loadFinished = pyqtSignal() # void loadFinished(bool) - signal 0217 loadProgress = pyqtSignal() # void loadProgress(int) - signal 0218 loadStarted = pyqtSignal() # void loadStarted() - signal 0219 def settings(self): 0220 '''QWebEngineSettings QWebEnginePage.settings()''' 0221 return QWebEngineSettings() 0222 def runJavaScript(self, scriptSource): 0223 '''void QWebEnginePage.runJavaScript(str scriptSource)''' 0224 def runJavaScript(self, scriptSource, resultCallback): 0225 '''void QWebEnginePage.runJavaScript(str scriptSource, callable resultCallback)''' 0226 def setZoomFactor(self, factor): 0227 '''void QWebEnginePage.setZoomFactor(float factor)''' 0228 def zoomFactor(self): 0229 '''float QWebEnginePage.zoomFactor()''' 0230 return float() 0231 def iconUrl(self): 0232 '''QUrl QWebEnginePage.iconUrl()''' 0233 return QUrl() 0234 def requestedUrl(self): 0235 '''QUrl QWebEnginePage.requestedUrl()''' 0236 return QUrl() 0237 def url(self): 0238 '''QUrl QWebEnginePage.url()''' 0239 return QUrl() 0240 def setUrl(self, url): 0241 '''void QWebEnginePage.setUrl(QUrl url)''' 0242 def title(self): 0243 '''str QWebEnginePage.title()''' 0244 return str() 0245 def toPlainText(self, resultCallback): 0246 '''void QWebEnginePage.toPlainText(callable resultCallback)''' 0247 def toHtml(self, resultCallback): 0248 '''void QWebEnginePage.toHtml(callable resultCallback)''' 0249 def setContent(self, data, mimeType = str(), baseUrl = QUrl()): 0250 '''void QWebEnginePage.setContent(QByteArray data, str mimeType = str(), QUrl baseUrl = QUrl())''' 0251 def setHtml(self, html, baseUrl = QUrl()): 0252 '''void QWebEnginePage.setHtml(str html, QUrl baseUrl = QUrl())''' 0253 def load(self, url): 0254 '''void QWebEnginePage.load(QUrl url)''' 0255 def setFeaturePermission(self, securityOrigin, feature, policy): 0256 '''void QWebEnginePage.setFeaturePermission(QUrl securityOrigin, QWebEnginePage.Feature feature, QWebEnginePage.PermissionPolicy policy)''' 0257 def createStandardContextMenu(self): 0258 '''QMenu QWebEnginePage.createStandardContextMenu()''' 0259 return QMenu() 0260 def findText(self, subString, options = 0, resultCallback = 0): 0261 '''void QWebEnginePage.findText(str subString, QWebEnginePage.FindFlags options = 0, callable resultCallback = 0)''' 0262 def event(self): 0263 '''QEvent QWebEnginePage.event()''' 0264 return QEvent() 0265 def triggerAction(self, action, checked = False): 0266 '''void QWebEnginePage.triggerAction(QWebEnginePage.WebAction action, bool checked = False)''' 0267 def action(self, action): 0268 '''QAction QWebEnginePage.action(QWebEnginePage.WebAction action)''' 0269 return QAction() 0270 def selectedText(self): 0271 '''str QWebEnginePage.selectedText()''' 0272 return str() 0273 def hasSelection(self): 0274 '''bool QWebEnginePage.hasSelection()''' 0275 return bool() 0276 def view(self): 0277 '''QWidget QWebEnginePage.view()''' 0278 return QWidget() 0279 def setView(self, view): 0280 '''void QWebEnginePage.setView(QWidget view)''' 0281 def history(self): 0282 '''QWebEngineHistory QWebEnginePage.history()''' 0283 return QWebEngineHistory() 0284 class FindFlags(): 0285 """""" 0286 def __init__(self): 0287 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__init__()''' 0288 return QWebEnginePage.FindFlags() 0289 def __init__(self): 0290 '''int QWebEnginePage.FindFlags.__init__()''' 0291 return int() 0292 def __init__(self): 0293 '''void QWebEnginePage.FindFlags.__init__()''' 0294 def __bool__(self): 0295 '''int QWebEnginePage.FindFlags.__bool__()''' 0296 return int() 0297 def __ne__(self, f): 0298 '''bool QWebEnginePage.FindFlags.__ne__(QWebEnginePage.FindFlags f)''' 0299 return bool() 0300 def __eq__(self, f): 0301 '''bool QWebEnginePage.FindFlags.__eq__(QWebEnginePage.FindFlags f)''' 0302 return bool() 0303 def __invert__(self): 0304 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__invert__()''' 0305 return QWebEnginePage.FindFlags() 0306 def __and__(self, mask): 0307 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__and__(int mask)''' 0308 return QWebEnginePage.FindFlags() 0309 def __xor__(self, f): 0310 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__xor__(QWebEnginePage.FindFlags f)''' 0311 return QWebEnginePage.FindFlags() 0312 def __xor__(self, f): 0313 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__xor__(int f)''' 0314 return QWebEnginePage.FindFlags() 0315 def __or__(self, f): 0316 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__or__(QWebEnginePage.FindFlags f)''' 0317 return QWebEnginePage.FindFlags() 0318 def __or__(self, f): 0319 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__or__(int f)''' 0320 return QWebEnginePage.FindFlags() 0321 def __int__(self): 0322 '''int QWebEnginePage.FindFlags.__int__()''' 0323 return int() 0324 def __ixor__(self, f): 0325 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__ixor__(QWebEnginePage.FindFlags f)''' 0326 return QWebEnginePage.FindFlags() 0327 def __ior__(self, f): 0328 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__ior__(QWebEnginePage.FindFlags f)''' 0329 return QWebEnginePage.FindFlags() 0330 def __iand__(self, mask): 0331 '''QWebEnginePage.FindFlags QWebEnginePage.FindFlags.__iand__(int mask)''' 0332 return QWebEnginePage.FindFlags() 0333 0334 0335 class QWebEngineSettings(): 0336 """""" 0337 # Enum QWebEngineSettings.FontSize 0338 MinimumFontSize = 0 0339 MinimumLogicalFontSize = 0 0340 DefaultFontSize = 0 0341 DefaultFixedFontSize = 0 0342 0343 # Enum QWebEngineSettings.WebAttribute 0344 AutoLoadImages = 0 0345 JavascriptEnabled = 0 0346 JavascriptCanOpenWindows = 0 0347 JavascriptCanAccessClipboard = 0 0348 LinksIncludedInFocusChain = 0 0349 LocalStorageEnabled = 0 0350 LocalContentCanAccessRemoteUrls = 0 0351 XSSAuditingEnabled = 0 0352 SpatialNavigationEnabled = 0 0353 LocalContentCanAccessFileUrls = 0 0354 HyperlinkAuditingEnabled = 0 0355 ScrollAnimatorEnabled = 0 0356 ErrorPageEnabled = 0 0357 0358 # Enum QWebEngineSettings.FontFamily 0359 StandardFont = 0 0360 FixedFont = 0 0361 SerifFont = 0 0362 SansSerifFont = 0 0363 CursiveFont = 0 0364 FantasyFont = 0 0365 0366 def defaultTextEncoding(self): 0367 '''str QWebEngineSettings.defaultTextEncoding()''' 0368 return str() 0369 def setDefaultTextEncoding(self, encoding): 0370 '''void QWebEngineSettings.setDefaultTextEncoding(str encoding)''' 0371 def resetAttribute(self, attr): 0372 '''void QWebEngineSettings.resetAttribute(QWebEngineSettings.WebAttribute attr)''' 0373 def testAttribute(self, attr): 0374 '''bool QWebEngineSettings.testAttribute(QWebEngineSettings.WebAttribute attr)''' 0375 return bool() 0376 def setAttribute(self, attr, on): 0377 '''void QWebEngineSettings.setAttribute(QWebEngineSettings.WebAttribute attr, bool on)''' 0378 def resetFontSize(self, type): 0379 '''void QWebEngineSettings.resetFontSize(QWebEngineSettings.FontSize type)''' 0380 def fontSize(self, type): 0381 '''int QWebEngineSettings.fontSize(QWebEngineSettings.FontSize type)''' 0382 return int() 0383 def setFontSize(self, type, size): 0384 '''void QWebEngineSettings.setFontSize(QWebEngineSettings.FontSize type, int size)''' 0385 def resetFontFamily(self, which): 0386 '''void QWebEngineSettings.resetFontFamily(QWebEngineSettings.FontFamily which)''' 0387 def fontFamily(self, which): 0388 '''str QWebEngineSettings.fontFamily(QWebEngineSettings.FontFamily which)''' 0389 return str() 0390 def setFontFamily(self, which, family): 0391 '''void QWebEngineSettings.setFontFamily(QWebEngineSettings.FontFamily which, str family)''' 0392 def globalSettings(self): 0393 '''static QWebEngineSettings QWebEngineSettings.globalSettings()''' 0394 return QWebEngineSettings() 0395 def defaultSettings(self): 0396 '''static QWebEngineSettings QWebEngineSettings.defaultSettings()''' 0397 return QWebEngineSettings() 0398 0399 0400 class QWebEngineView(QWidget): 0401 """""" 0402 def __init__(self, parent = None): 0403 '''void QWebEngineView.__init__(QWidget parent = None)''' 0404 def event(self): 0405 '''QEvent QWebEngineView.event()''' 0406 return QEvent() 0407 def contextMenuEvent(self): 0408 '''QContextMenuEvent QWebEngineView.contextMenuEvent()''' 0409 return QContextMenuEvent() 0410 def createWindow(self, type): 0411 '''QWebEngineView QWebEngineView.createWindow(QWebEnginePage.WebWindowType type)''' 0412 return QWebEngineView() 0413 iconUrlChanged = pyqtSignal() # void iconUrlChanged(const QUrlamp;) - signal 0414 urlChanged = pyqtSignal() # void urlChanged(const QUrlamp;) - signal 0415 selectionChanged = pyqtSignal() # void selectionChanged() - signal 0416 titleChanged = pyqtSignal() # void titleChanged(const QStringamp;) - signal 0417 loadFinished = pyqtSignal() # void loadFinished(bool) - signal 0418 loadProgress = pyqtSignal() # void loadProgress(int) - signal 0419 loadStarted = pyqtSignal() # void loadStarted() - signal 0420 def reload(self): 0421 '''void QWebEngineView.reload()''' 0422 def forward(self): 0423 '''void QWebEngineView.forward()''' 0424 def back(self): 0425 '''void QWebEngineView.back()''' 0426 def stop(self): 0427 '''void QWebEngineView.stop()''' 0428 def settings(self): 0429 '''QWebEngineSettings QWebEngineView.settings()''' 0430 return QWebEngineSettings() 0431 def sizeHint(self): 0432 '''QSize QWebEngineView.sizeHint()''' 0433 return QSize() 0434 def findText(self, subString, options = 0, resultCallback = 0): 0435 '''void QWebEngineView.findText(str subString, QWebEnginePage.FindFlags options = 0, callable resultCallback = 0)''' 0436 def setZoomFactor(self, factor): 0437 '''void QWebEngineView.setZoomFactor(float factor)''' 0438 def zoomFactor(self): 0439 '''float QWebEngineView.zoomFactor()''' 0440 return float() 0441 def triggerPageAction(self, action, checked = False): 0442 '''void QWebEngineView.triggerPageAction(QWebEnginePage.WebAction action, bool checked = False)''' 0443 def pageAction(self, action): 0444 '''QAction QWebEngineView.pageAction(QWebEnginePage.WebAction action)''' 0445 return QAction() 0446 def selectedText(self): 0447 '''str QWebEngineView.selectedText()''' 0448 return str() 0449 def hasSelection(self): 0450 '''bool QWebEngineView.hasSelection()''' 0451 return bool() 0452 def iconUrl(self): 0453 '''QUrl QWebEngineView.iconUrl()''' 0454 return QUrl() 0455 def url(self): 0456 '''QUrl QWebEngineView.url()''' 0457 return QUrl() 0458 def setUrl(self, url): 0459 '''void QWebEngineView.setUrl(QUrl url)''' 0460 def title(self): 0461 '''str QWebEngineView.title()''' 0462 return str() 0463 def history(self): 0464 '''QWebEngineHistory QWebEngineView.history()''' 0465 return QWebEngineHistory() 0466 def setContent(self, data, mimeType = str(), baseUrl = QUrl()): 0467 '''void QWebEngineView.setContent(QByteArray data, str mimeType = str(), QUrl baseUrl = QUrl())''' 0468 def setHtml(self, html, baseUrl = QUrl()): 0469 '''void QWebEngineView.setHtml(str html, QUrl baseUrl = QUrl())''' 0470 def load(self, url): 0471 '''void QWebEngineView.load(QUrl url)''' 0472 def setPage(self, page): 0473 '''void QWebEngineView.setPage(QWebEnginePage page)''' 0474 def page(self): 0475 '''QWebEnginePage QWebEngineView.page()''' 0476 return QWebEnginePage() 0477 0478 0479 class QWebEngineDownloadItem(QObject): 0480 """""" 0481 # Enum QWebEngineDownloadItem.DownloadState 0482 DownloadRequested = 0 0483 DownloadInProgress = 0 0484 DownloadCompleted = 0 0485 DownloadCancelled = 0 0486 DownloadInterrupted = 0 0487 0488 downloadProgress = pyqtSignal() # void downloadProgress(qint64,qint64) - signal 0489 stateChanged = pyqtSignal() # void stateChanged(QWebEngineDownloadItem::DownloadState) - signal 0490 finished = pyqtSignal() # void finished() - signal 0491 def cancel(self): 0492 '''void QWebEngineDownloadItem.cancel()''' 0493 def accept(self): 0494 '''void QWebEngineDownloadItem.accept()''' 0495 def isFinished(self): 0496 '''bool QWebEngineDownloadItem.isFinished()''' 0497 return bool() 0498 def setPath(self, path): 0499 '''void QWebEngineDownloadItem.setPath(str path)''' 0500 def path(self): 0501 '''str QWebEngineDownloadItem.path()''' 0502 return str() 0503 def url(self): 0504 '''QUrl QWebEngineDownloadItem.url()''' 0505 return QUrl() 0506 def receivedBytes(self): 0507 '''int QWebEngineDownloadItem.receivedBytes()''' 0508 return int() 0509 def totalBytes(self): 0510 '''int QWebEngineDownloadItem.totalBytes()''' 0511 return int() 0512 def state(self): 0513 '''QWebEngineDownloadItem.DownloadState QWebEngineDownloadItem.state()''' 0514 return QWebEngineDownloadItem.DownloadState() 0515 def id(self): 0516 '''int QWebEngineDownloadItem.id()''' 0517 return int() 0518 0519 0520 class QWebEngineProfile(QObject): 0521 """""" 0522 # Enum QWebEngineProfile.PersistentCookiesPolicy 0523 NoPersistentCookies = 0 0524 AllowPersistentCookies = 0 0525 ForcePersistentCookies = 0 0526 0527 # Enum QWebEngineProfile.HttpCacheType 0528 MemoryHttpCache = 0 0529 DiskHttpCache = 0 0530 0531 def __init__(self, parent = None): 0532 '''void QWebEngineProfile.__init__(QObject parent = None)''' 0533 def __init__(self, name, parent = None): 0534 '''void QWebEngineProfile.__init__(str name, QObject parent = None)''' 0535 downloadRequested = pyqtSignal() # void downloadRequested(QWebEngineDownloadItem*) - signal 0536 def defaultProfile(self): 0537 '''static QWebEngineProfile QWebEngineProfile.defaultProfile()''' 0538 return QWebEngineProfile() 0539 def scripts(self): 0540 '''QWebEngineScriptCollection QWebEngineProfile.scripts()''' 0541 return QWebEngineScriptCollection() 0542 def settings(self): 0543 '''QWebEngineSettings QWebEngineProfile.settings()''' 0544 return QWebEngineSettings() 0545 def visitedLinksContainsUrl(self, url): 0546 '''bool QWebEngineProfile.visitedLinksContainsUrl(QUrl url)''' 0547 return bool() 0548 def clearVisitedLinks(self, urls): 0549 '''void QWebEngineProfile.clearVisitedLinks(list-of-QUrl urls)''' 0550 def clearAllVisitedLinks(self): 0551 '''void QWebEngineProfile.clearAllVisitedLinks()''' 0552 def setHttpCacheMaximumSize(self, maxSize): 0553 '''void QWebEngineProfile.setHttpCacheMaximumSize(int maxSize)''' 0554 def httpCacheMaximumSize(self): 0555 '''int QWebEngineProfile.httpCacheMaximumSize()''' 0556 return int() 0557 def setPersistentCookiesPolicy(self): 0558 '''QWebEngineProfile.PersistentCookiesPolicy QWebEngineProfile.setPersistentCookiesPolicy()''' 0559 return QWebEngineProfile.PersistentCookiesPolicy() 0560 def persistentCookiesPolicy(self): 0561 '''QWebEngineProfile.PersistentCookiesPolicy QWebEngineProfile.persistentCookiesPolicy()''' 0562 return QWebEngineProfile.PersistentCookiesPolicy() 0563 def setHttpCacheType(self): 0564 '''QWebEngineProfile.HttpCacheType QWebEngineProfile.setHttpCacheType()''' 0565 return QWebEngineProfile.HttpCacheType() 0566 def httpCacheType(self): 0567 '''QWebEngineProfile.HttpCacheType QWebEngineProfile.httpCacheType()''' 0568 return QWebEngineProfile.HttpCacheType() 0569 def setHttpUserAgent(self, userAgent): 0570 '''void QWebEngineProfile.setHttpUserAgent(str userAgent)''' 0571 def httpUserAgent(self): 0572 '''str QWebEngineProfile.httpUserAgent()''' 0573 return str() 0574 def setCachePath(self, path): 0575 '''void QWebEngineProfile.setCachePath(str path)''' 0576 def cachePath(self): 0577 '''str QWebEngineProfile.cachePath()''' 0578 return str() 0579 def setPersistentStoragePath(self, path): 0580 '''void QWebEngineProfile.setPersistentStoragePath(str path)''' 0581 def persistentStoragePath(self): 0582 '''str QWebEngineProfile.persistentStoragePath()''' 0583 return str() 0584 def isOffTheRecord(self): 0585 '''bool QWebEngineProfile.isOffTheRecord()''' 0586 return bool() 0587 def storageName(self): 0588 '''str QWebEngineProfile.storageName()''' 0589 return str() 0590 0591 0592 class QWebEngineScript(): 0593 """""" 0594 # Enum QWebEngineScript.ScriptWorldId 0595 MainWorld = 0 0596 ApplicationWorld = 0 0597 UserWorld = 0 0598 0599 # Enum QWebEngineScript.InjectionPoint 0600 Deferred = 0 0601 DocumentReady = 0 0602 DocumentCreation = 0 0603 0604 def __init__(self): 0605 '''void QWebEngineScript.__init__()''' 0606 def __init__(self, other): 0607 '''void QWebEngineScript.__init__(QWebEngineScript other)''' 0608 def swap(self, other): 0609 '''void QWebEngineScript.swap(QWebEngineScript other)''' 0610 def __ne__(self, other): 0611 '''bool QWebEngineScript.__ne__(QWebEngineScript other)''' 0612 return bool() 0613 def __eq__(self, other): 0614 '''bool QWebEngineScript.__eq__(QWebEngineScript other)''' 0615 return bool() 0616 def setRunsOnSubFrames(self, on): 0617 '''void QWebEngineScript.setRunsOnSubFrames(bool on)''' 0618 def runsOnSubFrames(self): 0619 '''bool QWebEngineScript.runsOnSubFrames()''' 0620 return bool() 0621 def setWorldId(self): 0622 '''int QWebEngineScript.setWorldId()''' 0623 return int() 0624 def worldId(self): 0625 '''int QWebEngineScript.worldId()''' 0626 return int() 0627 def setInjectionPoint(self): 0628 '''QWebEngineScript.InjectionPoint QWebEngineScript.setInjectionPoint()''' 0629 return QWebEngineScript.InjectionPoint() 0630 def injectionPoint(self): 0631 '''QWebEngineScript.InjectionPoint QWebEngineScript.injectionPoint()''' 0632 return QWebEngineScript.InjectionPoint() 0633 def setSourceCode(self): 0634 '''str QWebEngineScript.setSourceCode()''' 0635 return str() 0636 def sourceCode(self): 0637 '''str QWebEngineScript.sourceCode()''' 0638 return str() 0639 def setName(self): 0640 '''str QWebEngineScript.setName()''' 0641 return str() 0642 def name(self): 0643 '''str QWebEngineScript.name()''' 0644 return str() 0645 def isNull(self): 0646 '''bool QWebEngineScript.isNull()''' 0647 return bool() 0648 0649 0650 class QWebEngineScriptCollection(): 0651 """""" 0652 def toList(self): 0653 '''list-of-QWebEngineScript QWebEngineScriptCollection.toList()''' 0654 return [QWebEngineScript()] 0655 def clear(self): 0656 '''void QWebEngineScriptCollection.clear()''' 0657 def remove(self): 0658 '''QWebEngineScript QWebEngineScriptCollection.remove()''' 0659 return QWebEngineScript() 0660 def insert(self): 0661 '''QWebEngineScript QWebEngineScriptCollection.insert()''' 0662 return QWebEngineScript() 0663 def insert(self, list): 0664 '''void QWebEngineScriptCollection.insert(list-of-QWebEngineScript list)''' 0665 def findScripts(self, name): 0666 '''list-of-QWebEngineScript QWebEngineScriptCollection.findScripts(str name)''' 0667 return [QWebEngineScript()] 0668 def findScript(self, name): 0669 '''QWebEngineScript QWebEngineScriptCollection.findScript(str name)''' 0670 return QWebEngineScript() 0671 def contains(self, value): 0672 '''bool QWebEngineScriptCollection.contains(QWebEngineScript value)''' 0673 return bool() 0674 def __len__(self): 0675 ''' QWebEngineScriptCollection.__len__()''' 0676 return () 0677 def count(self): 0678 '''int QWebEngineScriptCollection.count()''' 0679 return int() 0680 def isEmpty(self): 0681 '''bool QWebEngineScriptCollection.isEmpty()''' 0682 return bool() 0683 0684