WebEngineViewer::BlockTrackingUrlInterceptor Class

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

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

Public Functions

virtual ~BlockTrackingUrlInterceptor() override
bool enabledMailTrackingInterceptor() const
bool interceptRequest(const QUrl &url)
void setEnabledMailTrackingInterceptor(bool enabledMailTrackingInterceptor)

Reimplemented Public Functions

virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) override

Signals

void trackingFound(const WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList &)

Detailed Description

Member Function Documentation

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

Destroys the BlockTrackingUrlInterceptor object.

bool BlockTrackingUrlInterceptor::enabledMailTrackingInterceptor() const

Returns whether mail tracking interception is enabled.

See also setEnabledMailTrackingInterceptor().

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

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

Intercepts URL requests.

bool BlockTrackingUrlInterceptor::interceptRequest(const QUrl &url)

Intercepts a request for the given URL. Used by autotest only.

void BlockTrackingUrlInterceptor::setEnabledMailTrackingInterceptor(bool enabledMailTrackingInterceptor)

Sets whether to enable mail tracking interception.

See also enabledMailTrackingInterceptor().

[signal] void BlockTrackingUrlInterceptor::trackingFound(const WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList &)

Emitted when tracking is detected.