mailcommon
searchpattern.h
Go to the documentation of this file.
81 FuncNone = -1,
82 FuncContains = 0,
101 FuncNotEndWith
105 Envelope = 0,
107 CompleteMessage
271 virtual void addQueryTerms( Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError ) const = 0;
370 virtual void addQueryTerms( Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError ) const;
430 virtual void addQueryTerms( Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError ) const;
477 virtual void addQueryTerms( Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError ) const;
561 virtual void addQueryTerms( Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError ) const;
608 OpAll
613 NoError = 0,
617 NotEnoughCharacters
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchpattern.cpp:1295
virtual void addQueryTerms(Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchpattern.cpp:1257
bool matchesInternal(const QString &contents) const
A helper method for the main matches() method.
Definition: searchpattern.cpp:998
virtual RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchpattern.cpp:1197
SearchRuleNumerical(const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
Creates new numerical search rule.
Definition: searchpattern.cpp:1153
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchpattern.cpp:1290
This class represents a search pattern rule operating on numerical values.
Definition: searchpattern.h:387
Definition: searchpattern.h:521
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchpattern.cpp:1160
static const int StatusValueCountWithoutHidden
Definition: searchpattern.h:534
boost::shared_ptr< SearchRule > Ptr
Defines a pointer to a search rule.
Definition: searchpattern.h:69
Definition: searchpattern.h:514
bool matchesInternal(const QDate &dateValue, const QDate &msgDate) const
A helper method for the main matches() method.
Definition: searchpattern.cpp:1313
Definition: searchpattern.h:515
Definition: searchpattern.h:520
Definition: searchpattern.h:522
Definition: searchpattern.h:518
virtual bool matches(const Akonadi::Item &item) const =0
Tries to match the rule against the KMime::Message in the given item.
Operator
Boolean operators that connect the return values of the individual rules.
Definition: searchpattern.h:605
virtual bool isEmpty() const
Determines whether the rule is worth considering.
Definition: searchpattern.cpp:686
SearchRuleString(const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
Creates new new string search rule.
Definition: searchpattern.cpp:657
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchpattern.cpp:1168
virtual RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchpattern.cpp:1341
This class is an abstraction of a search over messages.
Definition: searchpattern.h:595
QByteArray field() const
Returns the message header field name (without the trailing ':').
Definition: searchpattern.cpp:550
This class represents a search to be performed against the status of a messsage.
Definition: searchpattern.h:543
Definition: searchpattern.h:517
virtual RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchpattern.cpp:691
Definition: searchpattern.h:519
virtual void addQueryTerms(Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchpattern.cpp:868
MAILCOMMON_EXPORT QDataStream & operator>>(QDataStream &stream, MailFilter &filter)
Definition: mailfilter.cpp:662
This class represents a search pattern rule operating on a string.
Definition: searchpattern.h:317
const SearchRuleString & operator=(const SearchRuleString &other)
Initializes this rule with an other rule.
Definition: searchpattern.cpp:669
Definition: searchpattern.h:435
virtual bool matches(const Akonadi::Item &item) const
Tries to match the rule against the KMime::Message in the given item.
Definition: searchpattern.cpp:710
MAILCOMMON_EXPORT QDataStream & operator<<(QDataStream &stream, const MailFilter &filter)
Definition: mailfilter.cpp:631
Definition: searchpattern.h:523
Definition: searchpattern.h:516
static const MessageStatusInfo StatusValues[]
Definition: searchpattern.h:493
Definition: searchpattern.h:487
bool matchesInternal(long numericalValue, long numericalContents, const QString &contents) const
A helper method for the main matches() method.
Definition: searchpattern.cpp:1203
virtual void addQueryTerms(Nepomuk2::Query::GroupTerm &groupTerm, bool &emptyIsNotAnError) const
Adds query terms to the given term group.
Definition: searchpattern.cpp:1348
Definition: searchpattern.h:524
void setName(const QString &newName)
Sets the name of the search pattern.
Definition: searchpattern.h:697
SearchRuleDate(const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
Creates new date search rule.
Definition: searchpattern.cpp:1283
Definition: searchpattern.h:525
Definition: searchpattern.h:513
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.