Mailcommon
searchrulenumerical.h
29 explicit SearchRuleNumerical(const QByteArray &field = QByteArray(), Function function = FuncContains, const QString &contents = QString());
54 bool matchesInternal(long numericalValue, long numericalContents, const QString &contents) const;
This class represents a search pattern rule operating on numerical values.
Definition: searchrulenumerical.h:19
virtual bool matches(const Akonadi::Item &item) const =0
Tries to match the rule against the KMime::Message in the given item.
void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const override
Adds query terms to the given term group.
Definition: searchrulenumerical.cpp:118
RequiredPart requiredPart() const override
Returns the required part from the item that is needed for the search to operate.
Definition: searchrulenumerical.cpp:68
bool matchesInternal(long numericalValue, long numericalContents, const QString &contents) const
A helper method for the main matches() method.
Definition: searchrulenumerical.cpp:73
bool matches(const Akonadi::Item &item) const override
Tries to match the rule against the KMime::Message in the given item.
Definition: searchrulenumerical.cpp:34
bool isEmpty() const override
Determines whether the rule is worth considering.
Definition: searchrulenumerical.cpp:26
SearchRuleNumerical(const QByteArray &field=QByteArray(), Function function=FuncContains, const QString &contents=QString())
Creates new numerical search rule.
Definition: searchrulenumerical.cpp:21
QByteArray field() const
Returns the message header field name (without the trailing ':').
Definition: searchrule.cpp:498
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:00:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:00:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.