MessageList::Core::Filter
#include <filter.h>
Signals | |
void | finished () |
Additional Inherited Members | |
Properties inherited from QObject | |
objectName | |
Public Attributes inherited from QObject | |
typedef | QObjectList |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
This class is responsible of matching messages that should be displayed in the View.
Constructor & Destructor Documentation
◆ Filter()
Definition at line 19 of file filter.cpp.
Member Function Documentation
◆ clear()
void Filter::clear | ( | ) |
Clears this filter (sets status to 0, search string and tag id to empty strings)
Definition at line 137 of file filter.cpp.
◆ currentOptions()
QuickSearchLine::SearchOptions Filter::currentOptions | ( | ) | const |
Definition at line 156 of file filter.cpp.
◆ filterName()
Definition at line 55 of file filter.cpp.
◆ generateRandomIdentifier()
void Filter::generateRandomIdentifier | ( | ) |
Definition at line 292 of file filter.cpp.
◆ iconName()
Definition at line 40 of file filter.cpp.
◆ identifier()
QString Filter::identifier | ( | ) | const |
Definition at line 297 of file filter.cpp.
◆ isEmpty()
bool Filter::isEmpty | ( | ) | const |
Returns true if this filter is empty (0 status mask, empty search string and empty tag) and it's useless to call match() that will always return true.
Definition at line 120 of file filter.cpp.
◆ load()
Definition at line 186 of file filter.cpp.
◆ loadFromConfigGroup()
|
static |
Definition at line 197 of file filter.cpp.
◆ match()
bool Filter::match | ( | const MessageItem * | item | ) | const |
Returns true if the specified parameters match this filter and false otherwise.
The msg pointer must not be null.
Definition at line 70 of file filter.cpp.
◆ save()
void Filter::save | ( | const KSharedConfig::Ptr & | config, |
const QString & | filtername, | ||
const QString & | iconName, | ||
int | numFilter = -1 ) |
Definition at line 161 of file filter.cpp.
◆ searchString()
Returns the currently set search string.
Definition at line 151 of file filter.cpp.
◆ setCurrentFolder()
void Filter::setCurrentFolder | ( | const Akonadi::Collection & | collection | ) |
Sets the current folder of this filter.
Definition at line 146 of file filter.cpp.
◆ setFilterName()
Definition at line 60 of file filter.cpp.
◆ setIconName()
Definition at line 45 of file filter.cpp.
◆ setIdentifier()
Definition at line 65 of file filter.cpp.
◆ setOptions()
void Filter::setOptions | ( | QuickSearchLine::SearchOptions | newOptions | ) |
Definition at line 50 of file filter.cpp.
◆ setSearchString()
void Filter::setSearchString | ( | const QString & | search, |
QuickSearchLine::SearchOptions | options ) |
Sets the search string for this filter.
Definition at line 218 of file filter.cpp.
◆ setStatus()
void Filter::setStatus | ( | const QList< Akonadi::MessageStatus > & | lstStatus | ) |
Sets the status mask for this filter.
Definition at line 115 of file filter.cpp.
◆ setTagId()
Sets the id of a MessageItem::Tag that the matching messages must contain.
Definition at line 287 of file filter.cpp.
◆ status()
QList< Akonadi::MessageStatus > Filter::status | ( | ) | const |
Returns the currently set status mask.
Definition at line 110 of file filter.cpp.
◆ tagId()
Returns the currently set MessageItem::Tag id.
Definition at line 282 of file filter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.