WebEngineViewer::HashCacheManager Class

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

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

Public Functions

virtual ~HashCacheManager() override
void addHashStatus(const QByteArray &hash, WebEngineViewer::HashCacheManager::UrlStatus status, uint cacheDuration)
void clearCache()
WebEngineViewer::HashCacheManager::UrlStatus hashStatus(const QByteArray &hash)

Static Public Members

WebEngineViewer::HashCacheManager *self()

Detailed Description

Member Function Documentation

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

Destroys the HashCacheManager object.

void HashCacheManager::addHashStatus(const QByteArray &hash, WebEngineViewer::HashCacheManager::UrlStatus status, uint cacheDuration)

Adds a hash status to the cache.

void HashCacheManager::clearCache()

Clears the cache.

WebEngineViewer::HashCacheManager::UrlStatus HashCacheManager::hashStatus(const QByteArray &hash)

Returns the status of a hash.

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

Returns the singleton instance.