KCal::CalendarNull Class Reference
This is a null calendar object which does nothing. More...
#include <calendarnull.h>
Inheritance diagram for KCal::CalendarNull:

Public Methods | |
CalendarNull () | |
~CalendarNull () | |
void | incidenceUpdated (IncidenceBase *) |
void | close () |
void | save () |
bool | addEvent (Event *) |
void | deleteEvent (Event *) |
Event * | event (const QString &) |
Event::List | rawEvents () |
bool | addTodo (Todo *) |
void | deleteTodo (Todo *) |
Todo * | todo (const QString &) |
Todo::List | todos (const QDate &) |
Todo::List | rawTodos () |
bool | addJournal (Journal *) |
void | deleteJournal (Journal *) |
Journal * | journal (const QDate &) |
Journal * | journal (const QString &) |
Journal::List | journals () |
Alarm::List | alarms (const QDateTime &, const QDateTime &) |
Static Public Methods | |
CalendarNull * | self () |
Protected Methods | |
Event::List | rawEventsForDate (const QDateTime &) |
Event::List | rawEventsForDate (const QDate &, bool) |
Event::List | rawEvents (const QDate &, const QDate &, bool) |
Detailed Description
This is a null calendar object which does nothing.It can be passed to functions which need a calendar object when there actually isn't a real calendar yet. CalendarNull can be used to implement the null object design pattern. Instead of passing a 0 pointer and checking for 0 with each access a CalendarNull object can be passed.
Definition at line 37 of file calendarnull.h.
Member Function Documentation
|
Clears out the current calendar, freeing all used memory etc.
Implements KCal::Calendar. Definition at line 47 of file calendarnull.h. |
|
Sync changes in memory to persistant storage.
Implements KCal::Calendar. Definition at line 48 of file calendarnull.h. |
|
Adds a Event to this calendar object.
Implements KCal::Calendar. Definition at line 50 of file calendarnull.h. |
|
Delete event from calendar.
Implements KCal::Calendar. Definition at line 51 of file calendarnull.h. |
|
Retrieves an event on the basis of the unique string ID.
Implements KCal::Calendar. Definition at line 52 of file calendarnull.h. |
|
Return unfiltered list of all events in calendar.
Implements KCal::Calendar. Definition at line 53 of file calendarnull.h. |
|
Add a todo to the todolist.
Implements KCal::Calendar. Definition at line 55 of file calendarnull.h. |
|
Remove a todo from the todolist.
Implements KCal::Calendar. Definition at line 56 of file calendarnull.h. |
|
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Implements KCal::Calendar. Definition at line 57 of file calendarnull.h. |
|
Returns list of todos due on the specified date.
Implements KCal::Calendar. Definition at line 58 of file calendarnull.h. |
|
Return unfiltered list of todos.
Implements KCal::Calendar. Definition at line 59 of file calendarnull.h. |
|
Add a Journal entry to calendar.
Implements KCal::Calendar. Definition at line 61 of file calendarnull.h. |
|
Remove a journal entry from the calendar.
Implements KCal::Calendar. Definition at line 62 of file calendarnull.h. |
|
Return Journal for given date.
Implements KCal::Calendar. Definition at line 63 of file calendarnull.h. |
|
Return Journal with given UID.
Implements KCal::Calendar. Definition at line 64 of file calendarnull.h. |
|
Return list of all Journal entries.
Implements KCal::Calendar. Definition at line 65 of file calendarnull.h. |
|
Return all alarms, which ocur in the given time interval.
Implements KCal::Calendar. Definition at line 67 of file calendarnull.h. |
|
Get unfiltered events, which occur on the given date.
Implements KCal::Calendar. Definition at line 73 of file calendarnull.h. |
|
Get unfiltered events, which occur on the given date.
Implements KCal::Calendar. Definition at line 77 of file calendarnull.h. |
|
Get events in a range of dates. If inclusive is set to true, only events are returned, which are completely included in the range. Implements KCal::Calendar. Definition at line 81 of file calendarnull.h. |
The documentation for this class was generated from the following files: