summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-29 13:14:46 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-29 13:14:46 (GMT)
commitd7fba5bbdcf80a7bb1ba083cc2b5af26df62e69d (patch)
treef2cba50103b338bef9df6036ff92d839c523cc11
parent72b0752ac7ba01a202f9a2cb8c0e586bb985e3c5 (diff)
Add method to create postrequest
-rw-r--r--messageviewer/src/checkphishingurl/checkphishingurljob.cpp10
-rw-r--r--messageviewer/src/checkphishingurl/checkphishingurljob.h1
2 files changed, 9 insertions, 2 deletions
diff --git a/messageviewer/src/checkphishingurl/checkphishingurljob.cpp b/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
index 0a31dee..72865dd 100644
--- a/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/messageviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -41,14 +41,20 @@ void CheckPhishingUrlJob::setUrl(const QUrl &url)
void CheckPhishingUrlJob::start()
{
if (canStart()) {
-
+ const QString postRequest = createPostRequest();
} else {
Q_EMIT result(MessageViewer::CheckPhishingUrlJob::Unknown);
deleteLater();
}
}
-bool MessageViewer::CheckPhishingUrlJob::canStart() const
+bool CheckPhishingUrlJob::canStart() const
{
return mUrl.isValid();
}
+
+QString CheckPhishingUrlJob::createPostRequest()
+{
+ return {};
+ //TODO
+}
diff --git a/messageviewer/src/checkphishingurl/checkphishingurljob.h b/messageviewer/src/checkphishingurl/checkphishingurljob.h
index 4b43d91..27be62d 100644
--- a/messageviewer/src/checkphishingurl/checkphishingurljob.h
+++ b/messageviewer/src/checkphishingurl/checkphishingurljob.h
@@ -42,6 +42,7 @@ public:
void start();
bool canStart() const;
+ QString createPostRequest();
Q_SIGNALS:
void result(MessageViewer::CheckPhishingUrlJob::UrlStatus status);