Commit ae04a1a6 authored by Laurent Montel's avatar Laurent Montel 😁

Add QNetworkAccessManager class

parent 7d9182fd
......@@ -18,13 +18,14 @@
*/
#include "checkphishingurljob.h"
#include <QNetworkAccessManager>
using namespace MessageViewer;
CheckPhishingUrlJob::CheckPhishingUrlJob(QObject *parent)
: QObject(parent)
{
mNetworkAccessManager = new QNetworkAccessManager(this);
}
CheckPhishingUrlJob::~CheckPhishingUrlJob()
......
......@@ -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;
};
}
......
Markdown is supported
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