Mailcommon
searchrulestatus.h
26 explicit SearchRuleStatus(const QByteArray &field = QByteArray(), Function function = FuncContains, const QString &contents = QString());
bool matches(const Akonadi::Item &item) const override
Tries to match the rule against the KMime::Message in the given item.
Definition searchrulestatus.cpp:80
RequiredPart requiredPart() const override
Returns the required part from the item that is needed for the search to operate.
Definition searchrulestatus.cpp:111
void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const override
Adds query terms to the given term group.
Definition searchrulestatus.cpp:116
bool isEmpty() const override
Determines whether the rule is worth considering.
Definition searchrulestatus.cpp:75
QByteArray field() const
Returns the message header field name (without the trailing ':').
Definition searchrule.cpp:518
SearchRule(const QByteArray &field=QByteArray(), Function function=FuncContains, const QString &contents=QString())
Creates new new search rule.
Definition searchrule.cpp:55
virtual bool matches(const Akonadi::Item &item) const =0
Tries to match the rule against the KMime::Message in the given item.
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.