mailcommon
#include <searchrulestatus.h>
Static Public Member Functions | |
static Akonadi::MessageStatus | statusFromEnglishName (const QString &) |
Static Public Member Functions inherited from MailCommon::SearchRule | |
static SearchRule::Ptr | createInstance (const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString()) |
static SearchRule::Ptr | createInstance (const QByteArray &field, const char *function, const QString &contents) |
static SearchRule::Ptr | createInstance (const SearchRule &other) |
static SearchRule::Ptr | createInstance (QDataStream &stream) |
static SearchRule::Ptr | createInstanceFromConfig (const KConfigGroup &group, int index) |
Additional Inherited Members | |
Public Types inherited from MailCommon::SearchRule | |
enum | Function { FuncNone = -1, FuncContains = 0, FuncContainsNot, FuncEquals, FuncNotEqual, FuncRegExp, FuncNotRegExp, FuncIsGreater, FuncIsLessOrEqual, FuncIsLess, FuncIsGreaterOrEqual, FuncIsInAddressbook, FuncIsNotInAddressbook, FuncIsInCategory, FuncIsNotInCategory, FuncHasAttachment, FuncHasNoAttachment, FuncStartWith, FuncNotStartWith, FuncEndWith, FuncNotEndWith } |
typedef boost::shared_ptr < SearchRule > | Ptr |
enum | RequiredPart { Envelope = 0, Header, CompleteMessage } |
Protected Member Functions inherited from MailCommon::SearchRule | |
Akonadi::SearchTerm::Condition | akonadiComparator () const |
bool | isNegated () const |
QString | quote (const QString &content) const |
Detailed Description
This class represents a search to be performed against the status of a messsage.
The status is represented by a bitfield.
This class represents a search pattern rule operating on message status.
Definition at line 85 of file searchrulestatus.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 65 of file searchrulestatus.cpp.
|
explicit |
Definition at line 74 of file searchrulestatus.cpp.
Member Function Documentation
|
virtual |
Adds query terms to the given term group.
Reimplemented from MailCommon::SearchRule.
Definition at line 139 of file searchrulestatus.cpp.
|
virtual |
Reimplemented from MailCommon::SearchRule.
Definition at line 91 of file searchrulestatus.cpp.
|
virtual |
Determines whether the rule is worth considering.
It isn't if either the field is not set or the contents is empty. The calling code should make sure that it's rule list contains only non-empty rules, as matches doesn't check this.
Implements MailCommon::SearchRule.
Definition at line 98 of file searchrulestatus.cpp.
|
virtual |
Tries to match the rule against the KMime::Message in the given item
.
- Returns
- true if the rule matched, false otherwise.
- Note
- Must be implemented by subclasses.
Implements MailCommon::SearchRule.
Definition at line 103 of file searchrulestatus.cpp.
|
virtual |
Returns the required part from the item that is needed for the search to operate.
See RequiredPart
Implements MailCommon::SearchRule.
Definition at line 134 of file searchrulestatus.cpp.
|
static |
Definition at line 80 of file searchrulestatus.cpp.
The documentation for this class was generated from the following files:
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.