WebEngineViewer::NetworkPluginUrlInterceptorInterface Class

The NetworkPluginUrlInterceptorInterface class Author: Laurent Montel <montel@kde.org>. More...

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

WebEngineViewer::BlockTrackingUrlInterceptor and WebEngineViewer::LoadExternalReferencesUrlInterceptor

Public Functions

NetworkPluginUrlInterceptorInterface(QObject *parent = nullptr)
virtual ~NetworkPluginUrlInterceptorInterface() override
virtual void createActions(KActionCollection *ac)
virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) = 0
virtual QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const

Detailed Description

Member Function Documentation

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

Constructs a NetworkPluginUrlInterceptorInterface with the given parent.

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

Destroys the NetworkPluginUrlInterceptorInterface object.

[virtual] void NetworkPluginUrlInterceptorInterface::createActions(KActionCollection *ac)

Creates actions for the interceptor using the given action collection.

[pure virtual] bool NetworkPluginUrlInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &info)

Intercepts the URL request.

[virtual] QList<QAction *> NetworkPluginUrlInterceptorInterface::interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const

Returns the list of interceptor actions for the given hit test result.