WebEngineViewer::CheckPhishingUrlCache Class

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

Header: #include <checkphishingurlcache.h>
CMake: find_package(KPim6WebEngineViewer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer)
Inherits: QObject

Public Functions

CheckPhishingUrlCache(QObject *parent = nullptr)
void addCheckingUrlResult(const QUrl &url, bool correctUrl, uint cacheDuration = 0)
void clearCache()
WebEngineViewer::CheckPhishingUrlCache::UrlStatus urlStatus(const QUrl &url)

Static Public Members

WebEngineViewer::CheckPhishingUrlCache *self()

Detailed Description

Member Function Documentation

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

Constructs a CheckPhishingUrlCache object.

void CheckPhishingUrlCache::addCheckingUrlResult(const QUrl &url, bool correctUrl, uint cacheDuration = 0)

Adds a URL checking result to the cache. If correctUrl is true it stores as UrlOk, otherwise MalWare.

void CheckPhishingUrlCache::clearCache()

Clears the cache and saves result in the configuration file.

[static] WebEngineViewer::CheckPhishingUrlCache *CheckPhishingUrlCache::self()

Returns the singleton instance.

WebEngineViewer::CheckPhishingUrlCache::UrlStatus CheckPhishingUrlCache::urlStatus(const QUrl &url)

Returns the status of the cached URL. When the URL is not stored, it returns Unknown.