libkcal

KCal::CalFilter Class Reference

Filter for calendar objects. More...

#include <calfilter.h>

List of all members.


Public Types

enum  {
  HideRecurring = 1, HideCompleted = 2, ShowCategories = 4, HideInactiveTodos = 8,
  HideTodosWithoutAttendeeInEmailList = 16
}

Public Member Functions

void apply (Journal::List *journallist) const
void apply (Todo::List *todolist) const
void apply (Event::List *eventlist) const
 CalFilter (const QString &name)
 CalFilter ()
QStringList categoryList () const
int completedTimeSpan () const
int criteria () const
QStringList emailList () const
bool filterIncidence (Incidence *) const
bool isEnabled () const
QString name () const
void setCategoryList (const QStringList &)
void setCompletedTimeSpan (int timespan)
void setCriteria (int)
void setEmailList (const QStringList &)
void setEnabled (bool)
void setName (const QString &name)
 ~CalFilter ()

Detailed Description

Filter for calendar objects.

Definition at line 38 of file calfilter.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
HideRecurring 
HideCompleted 
ShowCategories 
HideInactiveTodos 
HideTodosWithoutAttendeeInEmailList 

Definition at line 117 of file calfilter.h.


Constructor & Destructor Documentation

CalFilter::CalFilter (  ) 

Construct filter.

Definition at line 30 of file calfilter.cpp.

CalFilter::CalFilter ( const QString name  ) 

Construct filter with name.

Definition at line 37 of file calfilter.cpp.

CalFilter::~CalFilter (  ) 

Destruct filter.

Definition at line 45 of file calfilter.cpp.


Member Function Documentation

void CalFilter::apply ( Journal::List journallist  )  const

Apply filter to todolist, all todos not matching filter criterias are removed from the list.

Definition at line 86 of file calfilter.cpp.

void CalFilter::apply ( Todo::List todolist  )  const

Apply filter to todolist, all todos not matching filter criterias are removed from the list.

Definition at line 68 of file calfilter.cpp.

void CalFilter::apply ( Event::List eventlist  )  const

Apply filter to eventlist, all events not matching filter criterias are removed from the list.

Definition at line 49 of file calfilter.cpp.

QStringList CalFilter::categoryList (  )  const

Return category list, used for showing/hiding categories of events.

See related functions.

Definition at line 203 of file calfilter.cpp.

int CalFilter::completedTimeSpan (  )  const

Return the number of days for "Hide completed todos", after which todos are not shown any more.

Definition at line 223 of file calfilter.cpp.

int CalFilter::criteria (  )  const

Get inclusive filter criteria.

Definition at line 193 of file calfilter.cpp.

QStringList CalFilter::emailList (  )  const

Return list of email addresses which are to be considered when finding incidences which the current user is not a participant of.

This is normally the list used by KOPrefs::thatIsMe() as well. See related functions.

Definition at line 213 of file calfilter.cpp.

bool CalFilter::filterIncidence ( Incidence incidence  )  const

Apply filter criteria on the specified incidence.

Return true, if event passes criteria, otherwise return false.

Definition at line 100 of file calfilter.cpp.

bool CalFilter::isEnabled (  )  const

Return wheter the filter is enabled or not.

Definition at line 183 of file calfilter.cpp.

QString KCal::CalFilter::name (  )  const [inline]

Return name of filter.

Definition at line 55 of file calfilter.h.

void CalFilter::setCategoryList ( const QStringList categoryList  ) 

Set list of categories, which is used for showing/hiding categories of events.

See related functions.

Definition at line 198 of file calfilter.cpp.

void CalFilter::setCompletedTimeSpan ( int  timespan  ) 

Set the number of days for "Hide completed todos", after which todos are not shown any more.

If nothing is set explicitly, all finished todos will be hidden if the "hide completed todos" option is selected.

Definition at line 218 of file calfilter.cpp.

void CalFilter::setCriteria ( int  criteria  ) 

Set criteria, which have to be fulfilled by events passing the filter.

Definition at line 188 of file calfilter.cpp.

void CalFilter::setEmailList ( const QStringList emailList  ) 

Set list of email addresses which are to be considered when finding incidences which the current user is not a participant of.

This is normally the list used by KOPrefs::thatIsMe() as well.

Definition at line 208 of file calfilter.cpp.

void CalFilter::setEnabled ( bool  enabled  ) 

Enable or disable filter.

Definition at line 178 of file calfilter.cpp.

void KCal::CalFilter::setName ( const QString name  )  [inline]

Set name of filter.

Definition at line 51 of file calfilter.h.


The documentation for this class was generated from the following files: