mailcommon
searchrulestatus.cpp
Go to the documentation of this file.
139 void SearchRuleStatus::addQueryTerms( Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError ) const
145 EmailSearchTerm term(EmailSearchTerm::MessageStatus, mStatus.statusFlags().toList().first(), akonadiComparator());
152 EmailSearchTerm term(EmailSearchTerm::MessageStatus, status.statusFlags().toList().first(), akonadiComparator());
QString englishNameForStatus(const Akonadi::MessageStatus &status)
Definition: searchrulestatus.cpp:55
static QString recode(const QString &plain)
Returns an escaped version of the log which can be used in a HTML document.
Definition: filterlog.cpp:228
static Akonadi::MessageStatus statusFromEnglishName(const QString &)
Definition: searchrulestatus.cpp:80
QByteArray trimmed() const
Akonadi::SearchTerm::Condition akonadiComparator() const
Converts the rule function into the corresponding Akonadi query operator.
Definition: searchrule.cpp:526
bool isEmpty() const
virtual void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchrulestatus.cpp:139
static FilterLog * instance()
Returns the single global instance of the filter log.
Definition: filterlog.cpp:107
virtual RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchrulestatus.cpp:134
bool isLogging() const
Returns whether the filter log is currently active.
Definition: filterlog.cpp:116
const QString asString() const
Returns the rule as string for debugging purpose.
Definition: searchrule.cpp:516
bool isEmpty() const
SearchRuleStatus(const QByteArray &field=QByteArray(), Function function=FuncContains, const QString &contents=QString())
Definition: searchrulestatus.cpp:65
virtual QString informationAboutNotValidRules() const
Definition: searchrulestatus.cpp:91
QByteArray field() const
Returns the message header field name (without the trailing ':').
Definition: searchrule.cpp:501
bool isNegated() const
Helper that returns whether the rule has a negated function.
Definition: searchrule.cpp:567
Definition: searchrule.h:80
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchrulestatus.cpp:103
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchrulestatus.cpp:98
void add(const QString &entry, ContentType type)
Adds the given log entry under the given content type to the log.
Definition: filterlog.cpp:164
int compare(const QString &other) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.