QWebEngineRegisterProtocolHandlerPermissionRequest Class
The QWebEngineRegisterProtocolHandlerPermissionRequest class enables accepting or rejecting requests from the registerProtocolHandler API. More...
Header: | #include <QWebEngineRegisterProtocolHandlerPermissionRequest> |
Since: | Qt 5.11 |
Instantiated By: | RegisterProtocolHandlerPermissionRequest |
Properties
Public Functions
void | accept() |
QUrl | origin() const |
void | reject() |
QString | scheme() const |
bool | operator!=(const QWebEngineRegisterProtocolHandlerPermissionRequest &that) const |
bool | operator==(const QWebEngineRegisterProtocolHandlerPermissionRequest &that) const |
Detailed Description
The QWebEngineRegisterProtocolHandlerPermissionRequest class enables accepting or rejecting requests from the registerProtocolHandler API.
See also QWebEnginePage::registerProtocolHandlerPermissionRequested.
Property Documentation
origin : const QUrl
This property holds the URL template for the protocol handler.
This is the second parameter from the registerProtocolHandler call.
Access functions:
QUrl | origin() const |
scheme : const QString
This property holds the URL scheme for the protocol handler.
This is the first parameter from the registerProtocolHandler call.
Access functions:
QString | scheme() const |
Member Function Documentation
void QWebEngineRegisterProtocolHandlerPermissionRequest::accept()
Accepts the request
Subsequent calls to accept() and reject() are ignored.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
void QWebEngineRegisterProtocolHandlerPermissionRequest::reject()
Rejects the request.
Subsequent calls to accept() and reject() are ignored.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
bool QWebEngineRegisterProtocolHandlerPermissionRequest::operator!=(const QWebEngineRegisterProtocolHandlerPermissionRequest &that) const
Returns true
if that points to a different object than this protocol handler permission request.
bool QWebEngineRegisterProtocolHandlerPermissionRequest::operator==(const QWebEngineRegisterProtocolHandlerPermissionRequest &that) const
Returns true
if that points to the same object as this protocol handler permission request.