WebEngineViewer::SearchFullHashJob Class
The SearchFullHashJob class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <WebEngineViewer/SearchFullHashJob> |
| CMake: | find_package(KPim6WebEngineViewer REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer) |
| Inherits: | QObject |
Public Functions
| SearchFullHashJob(QObject *parent = nullptr) | |
| virtual | ~SearchFullHashJob() override |
| bool | canStart() const |
| QByteArray | jsonRequest() const |
| void | parse(const QByteArray &replyStr) |
| void | setDatabaseState(const QStringList &hash) |
| void | setSearchFullHashForUrl(const QUrl &url) |
| void | setSearchHashs(const QHash<QByteArray, QByteArray> &hash) |
| void | start() |
Signals
| void | debugJson(const QByteArray &ba) |
| void | result(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus status, const QUrl &url) |
Detailed Description
Member Function Documentation
[explicit] SearchFullHashJob::SearchFullHashJob(QObject *parent = nullptr)
Constructs a SearchFullHashJob object.
[override virtual noexcept] SearchFullHashJob::~SearchFullHashJob()
Destroys the SearchFullHashJob object.
bool SearchFullHashJob::canStart() const
Returns whether the job can be started.
[signal] void SearchFullHashJob::debugJson(const QByteArray &ba)
Emitted for debugging JSON messages.
QByteArray SearchFullHashJob::jsonRequest() const
Returns the JSON request payload.
void SearchFullHashJob::parse(const QByteArray &replyStr)
Parses the reply from the server.
[signal] void SearchFullHashJob::result(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus status, const QUrl &url)
Emitted when the search result is available.
void SearchFullHashJob::setDatabaseState(const QStringList &hash)
Sets the database state.
void SearchFullHashJob::setSearchFullHashForUrl(const QUrl &url)
Sets the URL for which to search the full hash.
void SearchFullHashJob::setSearchHashs(const QHash<QByteArray, QByteArray> &hash)
Sets the search hashes.
void SearchFullHashJob::start()
Starts the search job.