summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-27 19:02:11 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-27 19:02:11 (GMT)
commitae04a1a6cff7e600672d3d9a3acb38fe519b7f57 (patch)
treeccb6268a951f076d5e83343084d8e6b0022b7796
parent7d9182fd1e02976d861317bed43fc979d6bb1e8b (diff)
Add QNetworkAccessManager class
-rw-r--r--messageviewer/src/checkphishingurl/checkphishingurljob.cpp3
-rw-r--r--messageviewer/src/checkphishingurl/checkphishingurljob.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/messageviewer/src/checkphishingurl/checkphishingurljob.cpp b/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
index cb5022b..0a31dee 100644
--- a/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -18,13 +18,14 @@
*/
#include "checkphishingurljob.h"
+#include <QNetworkAccessManager>
using namespace MessageViewer;
CheckPhishingUrlJob::CheckPhishingUrlJob(QObject *parent)
: QObject(parent)
{
-
+ mNetworkAccessManager = new QNetworkAccessManager(this);
}
CheckPhishingUrlJob::~CheckPhishingUrlJob()
diff --git a/messageviewer/src/checkphishingurl/checkphishingurljob.h b/messageviewer/src/checkphishingurl/checkphishingurljob.h
index 16feab2..4b43d91 100644
--- a/messageviewer/src/checkphishingurl/checkphishingurljob.h
+++ b/messageviewer/src/checkphishingurl/checkphishingurljob.h
@@ -23,7 +23,7 @@
#include <QObject>
#include <QUrl>
#include "messageviewer_export.h"
-
+class QNetworkAccessManager;
namespace MessageViewer {
class MESSAGEVIEWER_EXPORT CheckPhishingUrlJob : public QObject
{
@@ -48,6 +48,7 @@ Q_SIGNALS:
private:
QUrl mUrl;
+ QNetworkAccessManager *mNetworkAccessManager;
};
}