WebEngineViewer::LoadExternalReferencesUrlInterceptor Class

The LoadExternalReferencesUrlInterceptor class. More...

Header: #include <WebEngineViewer/LoadExternalReferencesUrlInterceptor>
CMake: find_package(KPim6WebEngineViewer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer)
Inherits: WebEngineViewer::NetworkPluginUrlInterceptorInterface

Public Functions

Reimplemented Public Functions

virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) override

Signals

void urlBlocked(const QUrl &url)

Protected Functions

virtual bool urlIsAuthorized(const QUrl &requestedUrl)
virtual bool urlIsBlocked(const QUrl &requestedUrl)

Detailed Description

Member Function Documentation

[explicit] LoadExternalReferencesUrlInterceptor::LoadExternalReferencesUrlInterceptor(QObject *parent = nullptr)

Constructs a LoadExternalReferencesUrlInterceptor with the given parent.

[override virtual noexcept] LoadExternalReferencesUrlInterceptor::~LoadExternalReferencesUrlInterceptor()

Destroys the LoadExternalReferencesUrlInterceptor object.

bool LoadExternalReferencesUrlInterceptor::allowExternalContent() const

Returns whether external content loading is allowed.

See also setAllowExternalContent().

[override virtual] bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)

Reimplements: NetworkPluginUrlInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &info).

Intercepts the URL request.

void LoadExternalReferencesUrlInterceptor::setAllowExternalContent(bool b)

Sets whether external content loading is allowed.

See also allowExternalContent().

[signal] void LoadExternalReferencesUrlInterceptor::urlBlocked(const QUrl &url)

Emitted when a URL is blocked.

[virtual protected] bool LoadExternalReferencesUrlInterceptor::urlIsAuthorized(const QUrl &requestedUrl)

Returns whether the requested URL is authorized.

[virtual protected] bool LoadExternalReferencesUrlInterceptor::urlIsBlocked(const QUrl &requestedUrl)

Returns whether the URL is blocked.