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

Add method to create postrequest

parent 72b0752a
......@@ -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
}
......@@ -42,6 +42,7 @@ public:
void start();
bool canStart() const;
QString createPostRequest();
Q_SIGNALS:
void result(MessageViewer::CheckPhishingUrlJob::UrlStatus status);
......
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