mailcommon
searchpattern.cpp
Go to the documentation of this file.
301 SearchPattern::SparqlQueryError SearchPattern::asAkonadiQuery( Akonadi::SearchQuery& query ) const
void clear()
bool matches(const Akonadi::Item &item, bool ignoreBody=false) const
The central function of this class.
Definition: searchpattern.cpp:83
SearchPattern()
Constructor which provides a pattern with minimal, but sufficient initialization. ...
Definition: searchpattern.cpp:67
void generateSieveScript(QStringList &requires, QString &code)
Definition: searchpattern.cpp:403
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
QByteArray serialize() const
Writes the pattern into a byte array for persistance purposes.
Definition: searchpattern.cpp:350
const SearchPattern & operator=(const SearchPattern &aPattern)
Overloaded assignment operator.
Definition: searchpattern.cpp:331
void readConfig(const KConfigGroup &config)
Reads a search pattern from a KConfigGroup.
Definition: searchpattern.cpp:161
iterator erase(iterator pos)
QDataStream & operator<<(QDataStream &s)
Definition: searchpattern.cpp:384
void append(const T &value)
virtual SearchRule::RequiredPart requiredPart() const =0
Returns the required part from the item that is needed for the search to operate. ...
static SearchRule::Ptr createInstanceFromConfig(const KConfigGroup &group, int index)
Creates a new search rule from a given config group.
Definition: searchrule.cpp:121
void deserialize(const QByteArray &)
Constructs the pattern from a byte array serialization.
Definition: searchpattern.cpp:358
bool isEmpty() const
bool isEmpty() const
void writeConfig(KConfigGroup &config) const
Writes itself into config.
Definition: searchpattern.cpp:241
This class is an abstraction of a search over messages.
Definition: searchpattern.h:79
bool atEnd() const
iterator end()
Definition: searchrule.h:80
QDataStream & operator>>(QDataStream &s) const
Definition: searchpattern.cpp:364
SparqlQueryError asAkonadiQuery(Akonadi::SearchQuery &) const
Returns the pattern as akonadi query.
Definition: searchpattern.cpp:301
T & last()
QString fromLatin1(const char *str, int size)
SearchRule::RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate. ...
Definition: searchpattern.cpp:123
QString purify(bool removeAction=true)
Removes all empty rules from the list.
Definition: searchpattern.cpp:136
static SearchRule::Ptr createInstance(const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
Creates a new search rule of a certain type by instantiating the appropriate subclass depending on th...
Definition: searchrule.cpp:91
const_iterator constEnd() const
const_iterator constBegin() const
void setName(const QString &newName)
Sets the name of the search pattern.
Definition: searchpattern.h:181
iterator begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.