mailcommon
searchrulenumerical.cpp
Go to the documentation of this file.
146 void SearchRuleNumerical::addQueryTerms( Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError ) const
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 RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchrulenumerical.cpp:87
int daysTo(const QDateTime &other) const
Akonadi::SearchTerm::Condition akonadiComparator() const
Converts the rule function into the corresponding Akonadi query operator.
Definition: searchrule.cpp:526
int size() const
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchrulenumerical.cpp:48
static FilterLog * instance()
Returns the single global instance of the filter log.
Definition: filterlog.cpp:107
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString number(int n, int base)
virtual QString informationAboutNotValidRules() const
Definition: searchrulenumerical.cpp:163
const QString asString() const
Returns the rule as string for debugging purpose.
Definition: searchrule.cpp:516
int toInt(bool *ok, int base) const
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchrulenumerical.cpp:56
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
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Definition: searchrule.h:80
QDateTime currentDateTime()
QDate date() const
SearchRuleNumerical(const QByteArray &field=QByteArray(), Function function=FuncContains, const QString &contents=QString())
Creates new numerical search rule.
Definition: searchrulenumerical.cpp:41
QDate currentDate()
void add(const QString &entry, ContentType type)
Adds the given log entry under the given content type to the log.
Definition: filterlog.cpp:164
QDate addDays(int ndays) const
virtual void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchrulenumerical.cpp:146
bool matchesInternal(long numericalValue, long numericalContents, const QString &contents) const
A helper method for the main matches() method.
Definition: searchrulenumerical.cpp:93
qlonglong toLongLong(bool *ok, int base) 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.