Messagelib
9 using namespace MessageViewer;
10 DKIMRule::DKIMRule() =
default;
12 QString DKIMRule::domain()
const
17 void DKIMRule::setDomain(
const QString &domain)
22 QStringList DKIMRule::signedDomainIdentifier()
const
24 return mSignedDomainIdentifier;
27 void DKIMRule::setSignedDomainIdentifier(
const QStringList &signedDomainIdentifier)
29 mSignedDomainIdentifier = signedDomainIdentifier;
37 void DKIMRule::setFrom(
const QString &from)
42 bool DKIMRule::enabled()
const
47 void DKIMRule::setEnabled(
bool enabled)
52 bool DKIMRule::isValid()
const
54 return !mDomain.
isEmpty() && !mFrom.
isEmpty() && (mRuleType != DKIMRule::RuleType::Unknown);
57 DKIMRule::RuleType DKIMRule::ruleType()
const
62 void DKIMRule::setRuleType(RuleType ruleType)
67 QString DKIMRule::listId()
const
72 void DKIMRule::setListId(
const QString &listId)
77 bool 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) {
86 bool DKIMRule::operator!=(
const DKIMRule &other)
const
88 return !operator==(other);
91 int DKIMRule::priority()
const
96 void 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"
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 03:56:10 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.