KCal::CalendarLocal Class Reference
This class provides a calendar stored as a local file. More...
#include <calendarlocal.h>
Inheritance diagram for KCal::CalendarLocal:


Detailed Description
This class provides a calendar stored as a local file.
Definition at line 35 of file calendarlocal.h.
Constructor & Destructor Documentation
|
Constructs a new calendar, with variables initialized to sane values.
Definition at line 41 of file calendarlocal.cpp. |
|
Constructs a new calendar, with variables initialized to sane values.
Definition at line 47 of file calendarlocal.cpp. |
Member Function Documentation
|
Loads a calendar on disk in vCalendar or iCalendar format into the current calendar. Incidences already present are preserved. If an event of the file to be loaded has the same unique id as an incidence already present the new incidence is ignored. To load a CalendarLocal object from a file without preserving existing incidences call close() before load().
Definition at line 64 of file calendarlocal.cpp. References KCal::FileStorage::load(). |
|
Writes out the calendar to disk in the specified format. CalendarLocal takes ownership of the CalFormat object.
Definition at line 70 of file calendarlocal.cpp. References KCal::FileStorage::save(). |
|
Clears out the current calendar, freeing all used memory etc. etc. Implements KCal::Calendar. Definition at line 76 of file calendarlocal.cpp. References deleteAllEvents(), deleteAllJournals(), and deleteAllTodos(). Referenced by KCal::ResourceKABC::doLoad(). |
|
Sync changes in memory to persistant storage.
Implements KCal::Calendar. Definition at line 76 of file calendarlocal.h. |
|
Add Event to calendar.
Implements KCal::Calendar. Definition at line 91 of file calendarlocal.cpp. References insertEvent(), and KCal::IncidenceBase::registerObserver(). Referenced by KCal::ResourceCached::addEvent(), and KCal::ResourceKABC::doLoad(). |
|
Deletes an event from this calendar.
Implements KCal::Calendar. Definition at line 104 of file calendarlocal.cpp. References KCal::IncidenceBase::uid(). Referenced by KCal::ResourceCached::deleteEvent(). |
|
Deletes all events from this calendar.
Definition at line 117 of file calendarlocal.cpp. Referenced by close(). |
|
Retrieves an event on the basis of the unique string ID.
Implements KCal::Calendar. Definition at line 131 of file calendarlocal.cpp. Referenced by KCal::ResourceKABC::event(), KCal::ResourceCached::event(), rawEvents(), and rawEventsForDate(). |
|
Return unfiltered list of all events in calendar.
Implements KCal::Calendar. Definition at line 455 of file calendarlocal.cpp. Referenced by KCal::ResourceKABC::rawEvents(), and KCal::ResourceCached::rawEvents(). |
|
Add a todo to the todolist.
Implements KCal::Calendar. Definition at line 137 of file calendarlocal.cpp. References KCal::IncidenceBase::registerObserver(), and KCal::Calendar::setupRelations(). Referenced by KCal::ResourceCached::addTodo(). |
|
Remove a todo from the todolist.
Implements KCal::Calendar. Definition at line 153 of file calendarlocal.cpp. References KCal::ListBase< T >::removeRef(), and KCal::Calendar::removeRelations(). Referenced by KCal::ResourceCached::deleteTodo(). |
|
Deletes all todos from this calendar.
Definition at line 165 of file calendarlocal.cpp. References KCal::ListBase< T >::setAutoDelete(). Referenced by close(). |
|
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Implements KCal::Calendar. Definition at line 183 of file calendarlocal.cpp. Referenced by rawTodosForDate(), KCal::ResourceKABC::todo(), and KCal::ResourceCached::todo(). |
|
Return list of all todos.
Implements KCal::Calendar. Definition at line 178 of file calendarlocal.cpp. Referenced by KCal::ResourceKABC::rawTodos(), and KCal::ResourceCached::rawTodos(). |
|
Returns list of todos due on the specified date.
Implements KCal::Calendar. Definition at line 193 of file calendarlocal.cpp. References KCal::Todo::dtDue(), KCal::Todo::hasDueDate(), and todo(). Referenced by KCal::ResourceKABC::rawTodosForDate(), and KCal::ResourceCached::rawTodosForDate(). |
|
Add a Journal entry to calendar.
Implements KCal::Calendar. Definition at line 477 of file calendarlocal.cpp. References KCal::IncidenceBase::dtStart(), and KCal::IncidenceBase::registerObserver(). Referenced by KCal::ResourceCached::addJournal(). |
|
Remove a Journal from the calendar.
Implements KCal::Calendar. Definition at line 495 of file calendarlocal.cpp. References KCal::ListBase< T >::removeRef(). Referenced by KCal::ResourceCached::deleteJournal(). |
|
Deletes all journals from this calendar.
Definition at line 504 of file calendarlocal.cpp. References KCal::ListBase< T >::setAutoDelete(). Referenced by close(). |
|
Return Journal for given date.
Implements KCal::Calendar. Definition at line 516 of file calendarlocal.cpp. Referenced by KCal::ResourceKABC::journal(), and KCal::ResourceCached::journal(). |
|
Return Journal with given UID.
Implements KCal::Calendar. Definition at line 528 of file calendarlocal.cpp. |
|
Return list of all Journals stored in calendar.
Implements KCal::Calendar. Definition at line 538 of file calendarlocal.cpp. Referenced by KCal::ICalFormat::fromString(), KCal::ResourceKABC::journals(), and KCal::ResourceCached::journals(). |
|
Return all alarms, which ocur in the given time interval.
Implements KCal::Calendar. Definition at line 213 of file calendarlocal.cpp. References appendAlarms(), appendRecurringAlarms(), and KCal::Incidence::doesRecur(). Referenced by KCal::ResourceKABC::alarms(), KCal::ResourceCached::alarms(), and alarmsTo(). |
|
Return all alarms, which ocur before given date.
Definition at line 208 of file calendarlocal.cpp. References alarms(). Referenced by KCal::ResourceKABC::alarmsTo(), and KCal::ResourceCached::alarmsTo(). |
|
Builds and then returns a list of all events that match for the date specified. useful for dayView, etc. etc. Implements KCal::Calendar. Definition at line 332 of file calendarlocal.cpp. References KCal::Incidence::doesRecur(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), event(), KCal::Event::isMultiDay(), and KCal::Incidence::recursOn(). Referenced by KCal::ResourceKABC::rawEventsForDate(), KCal::ResourceCached::rawEventsForDate(), and rawEventsForDate(). |
|
Get unfiltered events for date qdt.
Implements KCal::Calendar. Definition at line 447 of file calendarlocal.cpp. References rawEventsForDate(). |
|
Get unfiltered events in a range of dates. If inclusive is set to true, only events are returned, which are completely included in the range. If inclusive is set to false, all events which overlap the range are returned. An event's entire time span is considered in evaluating whether it should be returned. For a non-recurring event, its span is from its start to its end date. For a recurring event, its time span is from its first to its last recurrence. Implements KCal::Calendar. Definition at line 382 of file calendarlocal.cpp. References KCal::Incidence::doesRecur(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Recurrence::duration(), KCal::Recurrence::endDate(), event(), and KCal::Incidence::recurrence(). |
|
Notification function of IncidenceBase::Observer.
Definition at line 304 of file calendarlocal.cpp. References KCal::IncidenceBase::setLastModified(), and KCal::IncidenceBase::setSyncStatus(). |
|
inserts an event into its "proper place" in the calendar.
Definition at line 318 of file calendarlocal.cpp. References KCal::IncidenceBase::uid(). Referenced by addEvent(). |
|
Append alarms of incidence in interval to list of alarms.
Definition at line 235 of file calendarlocal.cpp. References KCal::Incidence::alarms(). Referenced by alarms(). |
|
Append alarms of recurring events in interval to list of alarms.
Definition at line 254 of file calendarlocal.cpp. References KCal::Incidence::alarms(), KCal::Duration::asSeconds(), KCal::Incidence::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Alarm::endOffset(), KCal::Recurrence::getNextDateTime(), KCal::Alarm::hasEndOffset(), KCal::Alarm::hasStartOffset(), KCal::Alarm::hasTime(), KCal::Incidence::isException(), KCal::Incidence::recurrence(), KCal::Alarm::startOffset(), KCal::Incidence::summary(), and KCal::Alarm::time(). Referenced by alarms(). |
The documentation for this class was generated from the following files: