KCal::CalendarResources Class Reference
This class provides a calendar composed of several calendar resources. More...
#include <calendarresources.h>
Inheritance diagram for KCal::CalendarResources:

Signals | |
void | signalResourceAdded (ResourceCalendar *) |
void | signalResourceModified (ResourceCalendar *) |
void | signalResourceDeleted (ResourceCalendar *) |
void | signalErrorMessage (const QString &) |
Public Member Functions | |
CalendarResources () | |
CalendarResources (const QString &timeZoneId) | |
void | readConfig (KConfig *config=0) |
void | load () |
CalendarResourceManager * | resourceManager () const |
void | setStandardDestinationPolicy () |
void | setAskDestinationPolicy () |
void | close () |
Ticket * | requestSaveTicket (ResourceCalendar *) |
virtual bool | save (Ticket *) |
virtual void | releaseSaveTicket (Ticket *ticket) |
void | save () |
bool | isSaving () |
bool | addIncidence (Incidence *) |
bool | addEvent (Event *anEvent) |
bool | addEvent (Event *anEvent, ResourceCalendar *resource) |
void | deleteEvent (Event *) |
Event * | event (const QString &UniqueStr) |
Event::List | rawEvents () |
QString | getHolidayForDate (const QDate &qd) |
bool | addTodo (Todo *todo) |
bool | addTodo (Todo *todo, ResourceCalendar *resource) |
void | deleteTodo (Todo *) |
Todo * | todo (const QString &uid) |
Todo::List | rawTodos () |
Todo::List | rawTodosForDate (const QDate &date) |
bool | addJournal (Journal *) |
void | deleteJournal (Journal *) |
bool | addJournal (Journal *journal, ResourceCalendar *resource) |
Journal * | journal (const QDate &) |
Journal * | journal (const QString &UID) |
Journal::List | journals () |
Alarm::List | alarms (const QDateTime &from, const QDateTime &to) |
Alarm::List | alarmsTo (const QDateTime &to) |
ResourceCalendar * | resource (Incidence *) |
bool | beginChange (Incidence *) |
bool | endChange (Incidence *) |
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 Slots | |
void | slotLoadError (ResourceCalendar *r, const QString &err) |
void | slotSaveError (ResourceCalendar *r, const QString &err) |
Protected Member Functions | |
void | incidenceUpdated (IncidenceBase *) |
void | connectResource (ResourceCalendar *) |
void | resourceAdded (ResourceCalendar *resource) |
void | resourceModified (ResourceCalendar *resource) |
void | resourceDeleted (ResourceCalendar *resource) |
virtual void | doSetTimeZoneId (const QString &tzid) |
int | incrementChangeCount (ResourceCalendar *) |
int | decrementChangeCount (ResourceCalendar *) |
Detailed Description
This class provides a calendar composed of several calendar resources.Definition at line 41 of file calendarresources.h.
Constructor & Destructor Documentation
|
constructs a new calendar that uses the ResourceManager for "calendar" Definition at line 71 of file calendarresources.cpp. |
|
constructs a new calendar, with variables initialized to sane values. Definition at line 77 of file calendarresources.cpp. |
Member Function Documentation
|
Read the resources settings from a config file. You have to call this method before load().
|
|
Loads all events from the resources. You have to add the resources first or call readConfig() to load the system resources. Definition at line 114 of file calendarresources.cpp. References KCal::Calendar::timeZoneId(). |
|
Return ResourceManager used by this calendar. Definition at line 130 of file calendarresources.h. |
|
Set the destinatinpolicy to add incidences always to the standard resource. Definition at line 138 of file calendarresources.cpp. |
|
Set the destinatinpolicy to ask to which resource incidences are added. Definition at line 143 of file calendarresources.cpp. |
|
clears out the current calendar, freeing all used memory etc. etc. Implements KCal::Calendar. Definition at line 148 of file calendarresources.cpp. |
|
Request ticket for saving the calendar. If a ticket is returned the calendar is locked for write access until save() or releaseSaveTicket() is called. Definition at line 661 of file calendarresources.cpp. References KCal::ResourceCalendar::lock(). |
|
Save calendar. If save is successfull, the ticket is deleted. Otherwise the caller has to release the ticket with releaseSaveTicket() to abandon the save operation or to call save() to try to save again. Definition at line 671 of file calendarresources.cpp. References releaseSaveTicket(). |
|
Release the save ticket. The calendar is unlocked without saving. Definition at line 687 of file calendarresources.cpp. Referenced by save(). |
|
Sync changes in memory to persistant storage.
Implements KCal::Calendar. Definition at line 163 of file calendarresources.cpp. |
|
Add an incidence to calendar.
Reimplemented from KCal::Calendar. Definition at line 189 of file calendarresources.cpp. References KCal::ResourceCalendar::addIncidence(), and resource(). Referenced by addEvent(), addJournal(), and addTodo(). |
|
Add Event to calendar.
Implements KCal::Calendar. Definition at line 208 of file calendarresources.cpp. References addIncidence(). |
|
Add Event to a resource. Definition at line 213 of file calendarresources.cpp. References KCal::ResourceCalendar::addEvent(). |
|
deletes an event from this calendar.
Implements KCal::Calendar. Definition at line 230 of file calendarresources.cpp. |
|
Retrieves an event on the basis of the unique string ID.
Implements KCal::Calendar. Definition at line 248 of file calendarresources.cpp. References event(). Referenced by event(). |
|
Return unfiltered list of all events in calendar.
Implements KCal::Calendar. Definition at line 472 of file calendarresources.cpp. |
|
Add a todo to the todolist.
Implements KCal::Calendar. Definition at line 266 of file calendarresources.cpp. References addIncidence(). |
|
Add Todo to a resource. Definition at line 273 of file calendarresources.cpp. References KCal::ResourceCalendar::addTodo(). |
|
Remove a todo from the todolist.
Implements KCal::Calendar. Definition at line 290 of file calendarresources.cpp. |
|
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Implements KCal::Calendar. Definition at line 331 of file calendarresources.cpp. References todo(). Referenced by todo(). |
|
Return list of all todos.
Implements KCal::Calendar. Definition at line 309 of file calendarresources.cpp. |
|
Returns list of todos due on the specified date.
Implements KCal::Calendar. Definition at line 348 of file calendarresources.cpp. |
|
Add a Journal entry to calendar.
Implements KCal::Calendar. Definition at line 490 of file calendarresources.cpp. References addIncidence(), and KCal::IncidenceBase::dtStart(). |
|
Remove journal entry.
Implements KCal::Calendar. Definition at line 497 of file calendarresources.cpp. |
|
Add Event to a resource. Definition at line 514 of file calendarresources.cpp. References KCal::ResourceCalendar::addJournal(). |
|
Return Journal for given date.
Implements KCal::Calendar. Definition at line 531 of file calendarresources.cpp. References journal(). Referenced by journal(). |
|
Return Journal with given UID.
Implements KCal::Calendar. Definition at line 559 of file calendarresources.cpp. References journal(). |
|
Return list of all Journals stored in calendar.
Implements KCal::Calendar. Definition at line 576 of file calendarresources.cpp. |
|
Return all alarms, which ocur in the given time interval.
Implements KCal::Calendar. Definition at line 383 of file calendarresources.cpp. |
|
Return all alarms, which ocur before given date. Definition at line 368 of file calendarresources.cpp. |
|
Return Resource for given uid. Definition at line 614 of file calendarresources.cpp. Referenced by addIncidence(). |
|
The observer interface. So far not implemented. Definition at line 594 of file calendarresources.cpp. |
|
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 404 of file calendarresources.cpp. |
|
Get unfiltered events for date qdt.
Implements KCal::Calendar. Definition at line 454 of file calendarresources.cpp. |
|
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. Implements KCal::Calendar. Definition at line 436 of file calendarresources.cpp. |
|
let the subclasses of KCal::Calendar set the time zone
Reimplemented from KCal::Calendar. Definition at line 651 of file calendarresources.cpp. |
The documentation for this class was generated from the following files: