Mailcommon
searchpattern.h
This class is an abstraction of a search over messages.
Definition searchpattern.h:54
void writeConfig(KConfigGroup &config) const
Writes itself into config.
Definition searchpattern.cpp:194
SearchPattern()
Constructor which provides a pattern with minimal, but sufficient initialization.
Definition searchpattern.cpp:32
Operator
Boolean operators that connect the return values of the individual rules.
Definition searchpattern.h:62
bool matches(const Akonadi::Item &item, bool ignoreBody=false) const
The central function of this class.
Definition searchpattern.cpp:46
SearchRule::RequiredPart requiredPart() const
Returns the required part from the item that is needed for the search to operate.
Definition searchpattern.cpp:86
void setName(const QString &newName)
Sets the name of the search pattern.
Definition searchpattern.h:153
void readConfig(const KConfigGroup &config)
Reads a search pattern from a KConfigGroup.
Definition searchpattern.cpp:121
QString purify(bool removeAction=true)
Removes all empty rules from the list.
Definition searchpattern.cpp:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.