KCal::CalendarLocal Class Reference
This class provides a calendar stored as a local file. More...
#include <calendarlocal.h>
Inherits KCal::Calendar.
Public Member Functions
- CalendarLocal ()
- CalendarLocal (const QString &timeZoneId)
- bool load (const QString &fileName)
- bool save (const QString &fileName, CalFormat *format=0)
- void close ()
- void save ()
- bool addEvent (Event *event)
- void deleteEvent (Event *event)
- void deleteAllEvents ()
- Event * event (const QString &uid)
- Event::List rawEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
- bool addTodo (Todo *todo)
- void deleteTodo (Todo *)
- void deleteAllTodos ()
- Todo * todo (const QString &uid)
- Todo::List rawTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
- Todo::List rawTodosForDate (const QDate &date)
- bool addJournal (Journal *)
- void deleteJournal (Journal *)
- void deleteAllJournals ()
- Journal * journal (const QString &uid)
- Journal::List rawJournals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
- Journal::List rawJournalsForDate (const QDate &date)
- Alarm::List alarms (const QDateTime &from, const QDateTime &to)
- Alarm::List alarmsTo (const QDateTime &to)
- Event::List rawEventsForDate (const QDate &date, bool sorted=false)
- Event::List rawEventsForDate (const QDateTime &qdt)
- Event::List rawEvents (const QDate &start, const QDate &end, bool inclusive=false)
Protected Member Functions
- void insertEvent (Event *event)
- void appendAlarms (Alarm::List &alarms, Incidence *incidence, const QDateTime &from, const QDateTime &to)
- void appendRecurringAlarms (Alarm::List &alarms, Incidence *incidence, const QDateTime &from, const QDateTime &to)
Detailed Description
This class provides a calendar stored as a local file.
Constructor & Destructor Documentation
|
Constructs a new calendar, with variables initialized to sane values.
|
|
Constructs a new calendar, with variables initialized to sane values.
|
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().
|
|
Writes out the calendar to disk in the specified format. CalendarLocal takes ownership of the CalFormat object.
|
|
Clears out the current calendar, freeing all used memory etc. etc. Implements KCal::Calendar. |
|
Sync changes in memory to persistant storage.
Implements KCal::Calendar. |
|
Add Event to calendar.
Implements KCal::Calendar. |
|
Deletes an event from this calendar.
Implements KCal::Calendar. |
|
Deletes all events from this calendar.
|
|
Retrieves an event on the basis of the unique string ID.
Implements KCal::Calendar. |
|
Return unfiltered list of all events in calendar.
Implements KCal::Calendar. |
|
Add a todo to the todolist.
Implements KCal::Calendar. |
|
Remove a todo from the todolist.
Implements KCal::Calendar. |
|
Deletes all todos from this calendar.
|
|
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Implements KCal::Calendar. |
|
Return list of all todos.
Implements KCal::Calendar. |
|
Returns list of todos due on the specified date.
Implements KCal::Calendar. |
|
Add a Journal entry to calendar.
Implements KCal::Calendar. |
|
Remove a Journal from the calendar.
Implements KCal::Calendar. |
|
Deletes all journals from this calendar.
|
|
Return Journal with given UID.
Implements KCal::Calendar. |
|
Return list of all journals.
Implements KCal::Calendar. |
|
Get unfiltered journals for a given date.
Implements KCal::Calendar. |
|
Return all alarms, which ocur in the given time interval.
Implements KCal::Calendar. |
|
Return all alarms, which ocur before given date.
|
|
Builds and then returns a list of all events that match for the date specified. useful for dayView, etc. etc. Implements KCal::Calendar. |
|
Get unfiltered events for date qdt.
Implements KCal::Calendar. |
|
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. |
|
inserts an event into its "proper place" in the calendar.
|
|
Append alarms of incidence in interval to list of alarms.
|
|
Append alarms of recurring events in interval to list of alarms.
|
The documentation for this class was generated from the following files:
- calendarlocal.h
- calendarlocal.cpp