KCal::CalFilter Class Reference
Filter for calendar objects. More...
#include <calfilter.h>
Public Types | |
enum | { HideRecurring = 1, HideCompleted = 2, ShowCategories = 4 } |
Public Member Functions | |
CalFilter () | |
CalFilter (const QString &name) | |
~CalFilter () | |
void | setName (const QString &name) |
QString | name () const |
void | apply (Event::List *eventlist) |
void | apply (Todo::List *todolist) |
void | apply (Journal::List *journallist) |
bool | filterIncidence (Incidence *) |
void | setEnabled (bool) |
bool | isEnabled () |
void | setCategoryList (const QStringList &) |
QStringList | categoryList () |
void | setCriteria (int) |
int | criteria () |
Detailed Description
Filter for calendar objects.Definition at line 36 of file calfilter.h.
Constructor & Destructor Documentation
|
Construct filter. Definition at line 27 of file calfilter.cpp. |
|
Construct filter with name. Definition at line 33 of file calfilter.cpp. |
|
Destruct filter. Definition at line 38 of file calfilter.cpp. |
Member Function Documentation
|
Set name of filter. Definition at line 49 of file calfilter.h. |
|
Return name of filter. Definition at line 53 of file calfilter.h. |
|
Apply filter to eventlist, all events not matching filter criterias are removed from the list. Definition at line 42 of file calfilter.cpp. References filterIncidence(). Referenced by KCal::Calendar::events(), and KCal::Calendar::todos(). |
|
Apply filter to todolist, all todos not matching filter criterias are removed from the list. Definition at line 61 of file calfilter.cpp. References filterIncidence(). |
|
Apply filter to todolist, all todos not matching filter criterias are removed from the list. Definition at line 79 of file calfilter.cpp. References filterIncidence(). |
|
Apply filter criteria on the specified incidence. Return true, if event passes criteria, otherwise return false. Definition at line 93 of file calfilter.cpp. References KCal::Incidence::categories(), KCal::Incidence::doesRecur(), and KCal::IncidenceBase::type(). Referenced by apply(). |
|
Enable or disable filter. Definition at line 139 of file calfilter.cpp. |
|
Return wheter the filter is enabled or not. Definition at line 144 of file calfilter.cpp. |
|
Set list of categories, which is used for showing/hiding categories of events. See related functions. Definition at line 159 of file calfilter.cpp. |
|
Return category list, used for showing/hiding categories of events. See related functions. Definition at line 164 of file calfilter.cpp. |
|
Set criteria, which have to be fulfilled by events passing the filter. Definition at line 149 of file calfilter.cpp. |
|
Get inclusive filter criteria. Definition at line 154 of file calfilter.cpp. |
The documentation for this class was generated from the following files: