Generic permission request More...
Header: | #include <oxideqpermissionrequest.h> |
Instantiated By: | PermissionRequest |
Inherits: | QObject |
Inherited By: | OxideQGeolocationPermissionRequest and OxideQMediaAccessPermissionRequest |
~OxideQPermissionRequest() | |
QUrl | embedder() const |
bool | isCancelled() const |
QUrl | origin() const |
void | cancelled() |
Generic permission request
OxideQPermissionRequest represents a request for permission to access a specific resource. The permission request does not indicate the type of resource that the request is for, but instead, this is indicated by the source of the request.
It is assumed that the application will display a UI to request permission from the user.
The origin of the site that this request originates from can be accessed using origin.
The application can respond to this request by calling allow (which will permit access to the resource) or deny (which will deny access to the resource).
If the request instance is deleted before the application has called allow or deny, the request will be automatically declined.
The origin of the top-level page that hosts the page requesting access to the resource.
If the request originates from the main frame, this will be equal to origin.
Access functions:
QUrl | embedder() const |
The permission request has been cancelled. This could be because the originating frame navigated to another page or was deleted.
If the application is displaying a permission request UI to the user, it should hide it when this property indicates that the request has been cancelled.
Access functions:
bool | isCancelled() const |
Notifier signal:
void | cancelled() |
The origin of the page requesting access to the resource.
Access functions:
QUrl | origin() const |
Destroy this permission request. If the application has not yet responded by calling allow or deny, access to the resource will be automatically declined.
[slot]
void OxideQPermissionRequest::allow()Permit access to the resource for which this permission request requests access, for the specified origin / embedder combination.
[slot]
void OxideQPermissionRequest::deny()Decline access to the resource for which this permission request requests access.