summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-18 12:28:57 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-18 12:28:57 (GMT)
commit3271688d4f3e35a74ebd5fb8de4f517395a3c8ca (patch)
treed1b6f2c7317a3227dab29d1c6800c0a0b6581834
parent02a8e79b474caacf55af24317249d9101a63a5b4 (diff)
Use qCDebug
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurlutil.cpp4
-rw-r--r--webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp26
-rw-r--r--webengineviewer/src/checkphishingurl/localdatabasemanager.cpp4
3 files changed, 18 insertions, 16 deletions
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurlutil.cpp b/webengineviewer/src/checkphishingurl/checkphishingurlutil.cpp
index fba583c..c5be4bd 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurlutil.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurlutil.cpp
@@ -18,8 +18,8 @@
*/
#include "checkphishingurlutil.h"
-
-QString WebEngineViewer::CheckPhishingUrlUtil::apiKey()
+using namespace WebEngineViewer;
+QString CheckPhishingUrlUtil::apiKey()
{
return QStringLiteral("AIzaSyBS62pXATjabbH2RM_jO2EzDg1mTMHlnyo");
}
diff --git a/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp
index 12c30b5..5191b00 100644
--- a/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp
+++ b/webengineviewer/src/checkphishingurl/createphishingurldatabasejob.cpp
@@ -350,16 +350,16 @@ bool UpdateDataBaseInfo::operator==(const UpdateDataBaseInfo &other) const
(newClientState == other.newClientState) &&
(sha256 == other.sha256);
if (!val) {
- qDebug() << " sha256 " << sha256 << " other.sha256 " << other.sha256;
- qDebug() << " minimumWaitDuration " << minimumWaitDuration << " other.minimumWaitDuration " << other.minimumWaitDuration;
- qDebug() << " threatType " << threatType << " other.threatType " << other.threatType;
- qDebug() << " threatEntryType " << threatEntryType << " other.threatEntryType " << other.threatEntryType;
- qDebug() << " responseType " << responseType << " other.responseType " << other.responseType;
- qDebug() << " platformType " << platformType << " other.platformType " << other.platformType;
- qDebug() << " newClientState " << newClientState << " other.newClientState " << other.newClientState;
- qDebug() << " threatType " << threatType << " other.threatType " << other.threatType;
- qDebug() << " removalList" << removalList.count() << " other.removalList " << other.removalList.count();
- qDebug() << " additionList" << additionList.count() << " other.additionList " << other.additionList.count();
+ qCDebug(WEBENGINEVIEWER_LOG) << " sha256 " << sha256 << " other.sha256 " << other.sha256;
+ qCDebug(WEBENGINEVIEWER_LOG) << " minimumWaitDuration " << minimumWaitDuration << " other.minimumWaitDuration " << other.minimumWaitDuration;
+ qCDebug(WEBENGINEVIEWER_LOG) << " threatType " << threatType << " other.threatType " << other.threatType;
+ qCDebug(WEBENGINEVIEWER_LOG) << " threatEntryType " << threatEntryType << " other.threatEntryType " << other.threatEntryType;
+ qCDebug(WEBENGINEVIEWER_LOG) << " responseType " << responseType << " other.responseType " << other.responseType;
+ qCDebug(WEBENGINEVIEWER_LOG) << " platformType " << platformType << " other.platformType " << other.platformType;
+ qCDebug(WEBENGINEVIEWER_LOG) << " newClientState " << newClientState << " other.newClientState " << other.newClientState;
+ qCDebug(WEBENGINEVIEWER_LOG) << " threatType " << threatType << " other.threatType " << other.threatType;
+ qCDebug(WEBENGINEVIEWER_LOG) << " removalList" << removalList.count() << " other.removalList " << other.removalList.count();
+ qCDebug(WEBENGINEVIEWER_LOG) << " additionList" << additionList.count() << " other.additionList " << other.additionList.count();
}
return val;
}
@@ -368,7 +368,7 @@ bool Removal::operator==(const Removal &other) const
{
bool value = (indexes == other.indexes);
if (!value) {
- qDebug() << " indexes " << indexes << " other.indexes " << other.indexes;
+ qCDebug(WEBENGINEVIEWER_LOG) << " indexes " << indexes << " other.indexes " << other.indexes;
}
return value;
}
@@ -394,8 +394,8 @@ bool Addition::operator==(const Addition &other) const
bool value = (hashString == other.hashString) &&
(prefixSize == other.prefixSize);
if (!value) {
- qDebug() << "hashString " << hashString << " other.hashString " << other.hashString;
- qDebug() << "prefixSize " << prefixSize << " other.prefixSize " << other.prefixSize;
+ qCDebug(WEBENGINEVIEWER_LOG) << "hashString " << hashString << " other.hashString " << other.hashString;
+ qCDebug(WEBENGINEVIEWER_LOG) << "prefixSize " << prefixSize << " other.prefixSize " << other.prefixSize;
}
return value;
}
diff --git a/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp b/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp
index b518d19..36ab645 100644
--- a/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp
+++ b/webengineviewer/src/checkphishingurl/localdatabasemanager.cpp
@@ -199,7 +199,9 @@ void LocalDataBaseManager::slotDownloadDataBaseFinished(const WebEngineViewer::U
void LocalDataBaseManager::removeElementFromDataBase(const QVector<Removal> &removalList)
{
Q_FOREACH(const Removal &removeItem, removalList) {
- //TODO
+ Q_FOREACH (int id, removeItem.indexes) {
+ //TODO
+ }
}
}