messagelist
#include <filter.h>
Signals | |
void | finished () |
Public Member Functions | |
Filter () | |
void | clear () |
bool | isEmpty () const |
bool | match (const MessageItem *item) const |
const QString & | searchString () const |
void | setCurrentFolder (const KUrl &url) |
void | setSearchString (const QString &search) |
void | setStatus (const Akonadi::MessageStatus &status) |
void | setTagId (const QString &tagId) |
Akonadi::MessageStatus | status () const |
const QString & | tagId () const |
Detailed Description
This class is responsable of matching messages that should be displayed in the View.
Constructor & Destructor Documentation
Filter::Filter | ( | ) |
Definition at line 38 of file filter.cpp.
Member Function Documentation
void Filter::clear | ( | ) |
Clears this filter (sets status to 0, search string and tag id to empty strings)
Definition at line 109 of file filter.cpp.
|
signal |
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 95 of file filter.cpp.
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 61 of file filter.cpp.
|
inline |
void Filter::setCurrentFolder | ( | const KUrl & | url | ) |
Sets the current folder of this filter.
Definition at line 119 of file filter.cpp.
void Filter::setSearchString | ( | const QString & | search | ) |
Sets the search string for this filter.
Definition at line 124 of file filter.cpp.
|
inline |
|
inline |
Sets the id of a MessageItem::Tag that the matching messages must contain.
|
inline |
|
inline |
Returns the currently set MessageItem::Tag id.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.