summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-09 12:52:12 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-09 12:52:12 (GMT)
commitf23078a0c3bfccf517116b398102d3a43e1f3097 (patch)
tree4275f4c8a51fab7595ddfd3c61c596c2d19c5178
parent538fc991a0e4c0a01669389bd132745156f16a6c (diff)
Clean up
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
index 542ba8e..c0d3f73 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -20,7 +20,6 @@
#include "checkphishingurljob.h"
#include <QNetworkAccessManager>
#include <QNetworkConfigurationManager>
-#include <QNetworkReply>
#include <PimCommon/NetworkManager>
#include <QJsonDocument>
#include <webengineviewer_debug.h>
@@ -76,7 +75,6 @@ void CheckPhishingUrlJob::parse(const QByteArray &replyStr)
} else {
qWarning() << " CheckPhishingUrlJob::parse threatTypeStr : " << threatTypeStr;
}
-
}
Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown, mUrl);
}
@@ -97,24 +95,6 @@ void CheckPhishingUrlJob::setUrl(const QUrl &url)
QByteArray CheckPhishingUrlJob::jsonRequest() const
{
-#if 0
- {
- "client": {
- "clientId": "yourcompanyname",
- "clientVersion": "1.5.2"
- },
- "threatInfo": {
- "threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"],
- "platformTypes": ["WINDOWS"],
- "threatEntryTypes": ["URL"],
- "threatEntries": [
- {"url": "http://www.urltocheck1.org/"},
- {"url": "http://www.urltocheck2.org/"},
- {"url": "http://www.urltocheck3.com/"}
- ]
- }
- }
-#endif
QVariantMap clientMap;
QVariantMap map;
@@ -175,9 +155,8 @@ void CheckPhishingUrlJob::start()
void CheckPhishingUrlJob::slotError(QNetworkReply::NetworkError error)
{
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
- qDebug() << " error " << error << " error string : " << reply->errorString();
+ qWarning() << " error " << error << " error string : " << reply->errorString();
reply->deleteLater();
- //Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown, mUrl);
deleteLater();
}