9using namespace MessageViewer;
10DKIMRule::DKIMRule() =
default;
17void DKIMRule::setDomain(
const QString &domain)
24 return mSignedDomainIdentifier;
27void DKIMRule::setSignedDomainIdentifier(
const QStringList &signedDomainIdentifier)
29 mSignedDomainIdentifier = signedDomainIdentifier;
37void DKIMRule::setFrom(
const QString &from)
42bool DKIMRule::enabled()
const
47void DKIMRule::setEnabled(
bool enabled)
52bool DKIMRule::isValid()
const
54 return !mDomain.
isEmpty() && !mFrom.
isEmpty() && (mRuleType != DKIMRule::RuleType::Unknown);
57DKIMRule::RuleType DKIMRule::ruleType()
const
62void DKIMRule::setRuleType(RuleType ruleType)
72void DKIMRule::setListId(
const QString &listId)
77bool DKIMRule::operator==(
const DKIMRule &other)
const
79 if (other.domain() == mDomain && other.signedDomainIdentifier() == mSignedDomainIdentifier && other.from() == mFrom && other.listId() == mListId
80 && other.ruleType() == mRuleType && other.enabled() == mEnabled && other.priority() == mPriority) {
86bool DKIMRule::operator!=(
const DKIMRule &other)
const
88 return !operator==(other);
91int DKIMRule::priority()
const
96void DKIMRule::setPriority(
int priority)
103 d <<
" mDomain: " << t.domain();
104 d <<
" mSignedDomainIdentifier: " << t.signedDomainIdentifier();
105 d <<
" mFrom: " << t.from();
106 d <<
" mEnabled: " << t.enabled();
107 d <<
" mRuleType " << t.ruleType();
108 d <<
" mListId " << t.listId();
109 d <<
" mPriority " << t.priority();
113#include "moc_dkimrule.cpp"
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
bool isEmpty() const const
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.