Commit c97f4b28 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reactivate some code

parent 92d07b3d
......@@ -87,7 +87,6 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
"negativeCacheDuration": "300.000s"
}
*/
/*
QJsonDocument document = QJsonDocument::fromJson(replyStr);
if (document.isNull()) {
Q_EMIT result(WebEngineViewer::SearchFullHashJob::Unknown, mHash);
......@@ -104,10 +103,12 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
if (threatTypeStr == QStringLiteral("MALWARE")) {
const QVariantMap urlMap = map[QStringLiteral("threat")].toMap();
if (urlMap.count() == 1) {
/*
if (urlMap[QStringLiteral("url")].toString() == mHash.toString()) {
Q_EMIT result(WebEngineViewer::SearchFullHashJob::MalWare, mHash);
return;
}
*/
}
} else {
qWarning() << " SearchFullHashJob::parse threatTypeStr : " << threatTypeStr;
......@@ -116,7 +117,6 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
Q_EMIT result(WebEngineViewer::SearchFullHashJob::Unknown, mHash);
}
}
*/
}
void SearchFullHashJob::slotCheckUrlFinished(QNetworkReply *reply)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment