KCal::CalendarResources Class Reference
This class provides a calendar composed of several calendar resources. More...
#include <calendarresources.h>
Inherits KCal::Calendar, and ManagerObserver.
Signals
- void signalResourceAdded (ResourceCalendar *)
- void signalResourceModified (ResourceCalendar *)
- void signalResourceDeleted (ResourceCalendar *)
- void signalErrorMessage (const QString &)
Public Member Functions
- CalendarResources (const QString &timeZoneId=QString::fromLatin1("UTC"), const QString &family=QString::fromLatin1("calendar"))
- void readConfig (KConfig *config=0)
- void load ()
- CalendarResourceManager * resourceManager () const
- void setStandardDestinationPolicy ()
- void setAskDestinationPolicy ()
- void close ()
- Ticket * requestSaveTicket (ResourceCalendar *)
- virtual bool save (Ticket *, Incidence *incidence=0)
- virtual void releaseSaveTicket (Ticket *ticket)
- void save ()
- bool isSaving ()
- bool addIncidence (Incidence *)
- bool addIncidence (Incidence *incidence, ResourceCalendar *resource)
- bool addEvent (Event *anEvent) KDE_DEPRECATED
- bool addEvent (Event *anEvent, ResourceCalendar *resource) KDE_DEPRECATED
- void deleteEvent (Event *) KDE_DEPRECATED
- Event * event (const QString &UniqueStr)
- Event::List rawEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
- QString getHolidayForDate (const QDate &qd)
- bool addTodo (Todo *todo) KDE_DEPRECATED
- bool addTodo (Todo *todo, ResourceCalendar *resource) KDE_DEPRECATED
- void deleteTodo (Todo *) KDE_DEPRECATED
- Todo * todo (const QString &uid)
- Todo::List rawTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
- Todo::List rawTodosForDate (const QDate &date)
- bool addJournal (Journal *) KDE_DEPRECATED
- void deleteJournal (Journal *) KDE_DEPRECATED
- bool addJournal (Journal *journal, ResourceCalendar *resource) KDE_DEPRECATED
- 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)
- 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)
- void resourceAdded (ResourceCalendar *resource)
Protected Slots
- void slotLoadError (ResourceCalendar *r, const QString &err)
- void slotSaveError (ResourceCalendar *r, const QString &err)
Protected Member Functions
- void connectResource (ResourceCalendar *)
- 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.
Constructor & Destructor Documentation
|
constructs a new calendar, with variables initialized to sane values.
|
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. |
|
Return ResourceManager used by this calendar.
|
|
Set the destinatinpolicy to add incidences always to the standard resource.
|
|
Set the destinatinpolicy to ask to which resource incidences are added.
|
|
clears out the current calendar, freeing all used memory etc. etc. Implements KCal::Calendar. |
|
Request ticket for saving the calendar. If a ticket is returned the calendar is locked for write access until save() or releaseSaveTicket() is called. |
|
Save calendar if incidence == 0, else save only this incidence. 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. |
|
Release the save ticket. The calendar is unlocked without saving. |
|
Sync changes in memory to persistant storage.
Implements KCal::Calendar. |
|
Add an incidence to calendar.
Reimplemented from KCal::Calendar. |
|
Add Event to calendar.
Implements KCal::Calendar. |
|
Add Event to a resource.
|
|
deletes an event from this calendar.
Implements KCal::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. |
|
Add Todo to a resource.
|
|
Remove a todo from the todolist.
Implements KCal::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 journal entry.
Implements KCal::Calendar. |
|
Add Journal to a resource.
|
|
Return Journal with given UID.
Implements KCal::Calendar. |
|
Return list of all journals.
Implements KCal::Calendar. |
|
Returns list of journals for the 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.
|
|
Return Resource for given uid.
|
|
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. Implements KCal::Calendar. |
|
let the subclasses of KCal::Calendar set the time zone
Reimplemented from KCal::Calendar. |
The documentation for this class was generated from the following files:
- calendarresources.h
- calendarresources.cpp