7#include "dkimgeneraterulejob.h"
8#include "dkimmanagerrules.h"
9#include "messageviewer_debug.h"
10using namespace MessageViewer;
12DKIMGenerateRuleJob::DKIMGenerateRuleJob(
QObject *parent)
17DKIMGenerateRuleJob::~DKIMGenerateRuleJob() =
default;
19bool DKIMGenerateRuleJob::canStart()
const
21 if (!mResult.isValid()) {
22 qCWarning(MESSAGEVIEWER_LOG) <<
"Rule is not valid";
28bool DKIMGenerateRuleJob::start()
32 qCWarning(MESSAGEVIEWER_LOG) <<
"Impossible to start DKIMGenerateRuleJob";
35 verifyAndGenerateRule();
39void DKIMGenerateRuleJob::verifyAndGenerateRule()
42 rule.setEnabled(
true);
43 rule.setFrom(mResult.fromEmail);
45 rule.setSignedDomainIdentifier(
QStringList() << mResult.sdid);
46 rule.setRuleType(DKIMRule::RuleType::MustBeSigned);
50DKIMCheckSignatureJob::CheckSignatureResult DKIMGenerateRuleJob::result()
const
55void DKIMGenerateRuleJob::setResult(
const DKIMCheckSignatureJob::CheckSignatureResult &checkResult)
57 mResult = checkResult;
60#include "moc_dkimgeneraterulejob.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.