Класс QWebEngineRegisterProtocolHandlerRequest
Класс QWebEngineRegisterProtocolHandlerRequest позволяет принимать или отклонять запросы из API registerProtocolHandler. Подробнее...
| Заголовок: | #include <QWebEngineRegisterProtocolHandlerRequest> |
| С момента: | Qt 5.11 |
| Инициализируется: | RegisterProtocolHandlerRequest |
Этот класс был представлен в Qt 5.11.
Свойства
Открытые функции
| void | accept() |
| QUrl | origin() const |
| void | reject() |
| QString | scheme() const |
| bool | operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const |
| bool | operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const |
Подробное описание
См. также QWebEnginePage::registerProtocolHandlerRequested.
Документация по свойствам
origin : const QUrl
Это свойство содержит шаблон URL для обработчика протокола.
Это второй параметр из вызова registerProtocolHandler.
Функции доступа:
| QUrl | origin() const |
scheme : const QString
Это свойство содержит схему URL для обработчика протокола.
Это первый параметр из вызова registerProtocolHandler.
Функции доступа:
| QString | scheme() const |
Документация по функциям-членам
void QWebEngineRegisterProtocolHandlerRequest::accept()
Принимает запрос
Последующие вызовы accept() и reject() игнорируются.
Примечание: Эта функция может вызываться через систему метаобъектов и из QML. См. Q_INVOKABLE.
void QWebEngineRegisterProtocolHandlerRequest::reject()
Отклоняет запрос.
Последующие вызовы accept() и reject() игнорируются.
Примечание: Эта функция может вызываться через систему метаобъектов и из QML. См. Q_INVOKABLE.
bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
Возвращает true если that указывает на другой объект, чем этот запрос.
bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const
Возвращает true если that указывает на тот же объект, что и этот запрос.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qwebengineregisterprotocolhandlerrequest.html