mailcommon
searchruledate.cpp
Go to the documentation of this file.
102 void SearchRuleDate::addQueryTerms( Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError ) const
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchruledate.cpp:49
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
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchruledate.cpp:44
Akonadi::SearchTerm::Condition akonadiComparator() const
Converts the rule function into the corresponding Akonadi query operator.
Definition: searchrule.cpp:526
SearchRuleDate(const QByteArray &field=QByteArray(), Function function=FuncContains, const QString &contents=QString())
Creates new date search rule.
Definition: searchruledate.cpp:30
bool matchesInternal(const QDate &dateValue, const QDate &msgDate) const
A helper method for the main matches() method.
Definition: searchruledate.cpp:67
static FilterLog * instance()
Returns the single global instance of the filter log.
Definition: filterlog.cpp:107
QDate fromString(const QString &string, Qt::DateFormat format)
const QString asString() const
Returns the rule as string for debugging purpose.
Definition: searchrule.cpp:516
bool isValid() const
virtual void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchruledate.cpp:102
virtual RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchruledate.cpp:95
bool isNegated() const
Helper that returns whether the rule has a negated function.
Definition: searchrule.cpp:567
virtual QString informationAboutNotValidRules() const
Definition: searchruledate.cpp:38
Definition: searchrule.h:80
void add(const QString &entry, ContentType type)
Adds the given log entry under the given content type to the log.
Definition: filterlog.cpp:164
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.