Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Add canStart() method

parent 130ed799
......@@ -18,6 +18,7 @@
*/
#include "dkimcheckauthenticationstatusjob.h"
#include "messageviewer_debug.h"
using namespace MessageViewer;
DKIMCheckAuthenticationStatusJob::DKIMCheckAuthenticationStatusJob(QObject *parent)
......@@ -33,5 +34,15 @@ DKIMCheckAuthenticationStatusJob::~DKIMCheckAuthenticationStatusJob()
void DKIMCheckAuthenticationStatusJob::start()
{
if (!canStart()) {
qCWarning(MESSAGEVIEWER_LOG) << "Impossible to start job";
deleteLater();
return;
}
}
bool DKIMCheckAuthenticationStatusJob::canStart() const
{
//TODO
return false;
}
......@@ -31,6 +31,8 @@ public:
~DKIMCheckAuthenticationStatusJob();
void start();
bool canStart() const;
};
}
......
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