resourcecalendar.cpp
Provides the main "calendar" object class.
static Incidence::List mergeIncidenceList(const Event::List &events, const Todo::List &todos, const Journal::List &journals)
Create a merged list of Events, Todos, and Journals.
Definition: calendar.cpp:1028
This class implements a visitor for adding an Incidence to a resource plus subresource supporting add...
Definition: incidence.h:74
This class implements a visitor for adding an Incidence to a resource supporting addEvent(),...
Definition: incidence.h:56
This class implements a visitor for deleting an Incidence from a resource supporting deleteEvent(),...
Definition: incidence.h:104
This class provides the base class common to all calendar components.
Definition: incidence.h:48
virtual Todo * todo(const TQString &uid)=0
Searches todolist for an event with this unique id.
void setException(ErrorFormat *error)
Set exception for this object.
Definition: resourcecalendar.cpp:52
virtual Event * event(const TQString &uid)=0
Retrieves an event on the basis of the unique string ID.
virtual bool setValue(const TQString &key, const TQString &value)
Sets a particular value of the resource's configuration.
Definition: resourcecalendar.cpp:219
virtual void setSubresourceActive(const TQString &, bool active)
(De-)activate a subresource.
Definition: resourcecalendar.cpp:124
virtual bool subresourceWritable(const TQString &) const
Is this subresource writable or not?
Definition: resourcecalendar.cpp:232
virtual TQString subresourceType(const TQString &resource)
Returns the type of the subresource: "event", "todo" or "journal", TQString() if unknown/mixed.
Definition: resourcecalendar.cpp:226
virtual Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return unfiltered list of all events in calendar.
virtual TDE_DEPRECATED bool addIncidence(Incidence *)
Add incidence to resource.
Definition: resourcecalendar.cpp:101
virtual bool removeSubresource(const TQString &resource)
Remove a subresource with the id.
Definition: resourcecalendar.cpp:133
ErrorFormat * exception()
Returns an exception, if there is any, containing information about the last error that occurred.
Definition: resourcecalendar.cpp:58
virtual Journal * journal(const TQString &uid)=0
Return Journal with given unique id.
virtual Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all todos.
virtual TQString infoText() const
Return rich text with info about the resource.
Definition: resourcecalendar.cpp:68
void resourceSaveError(ResourceCalendar *, const TQString &error)
This signal is emitted when an error occurs during saving.
virtual Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all journals.
void saveError(const TQString &errorMessage=TQString())
A resource should call this function if a save error happens.
Definition: resourcecalendar.cpp:206
virtual bool deleteIncidence(Incidence *)
Delete incidence from resource.
Definition: resourcecalendar.cpp:113
virtual bool addSubresource(const TQString &resource, const TQString &parent)
Add a subresource with the name.
Definition: resourcecalendar.cpp:128
Incidence * incidence(const TQString &uid)
Return incidence with given unique id.
Definition: resourcecalendar.cpp:91
void resourceLoadError(ResourceCalendar *, const TQString &error)
This signal is emitted when an error occurs during loading.
virtual void addInfoText(TQString &) const
Add info text for concrete resources.
Definition: resourcecalendar.h:439
void loadError(const TQString &errorMessage=TQString())
A resource should call this function if a load error happens.
Definition: resourcecalendar.cpp:169
virtual void endAddingIncidences()
Called when we finish adding a batch of incidences.
Definition: resourcecalendar.cpp:245
virtual void beginAddingIncidences()
Called when we starting adding a batch of incidences.
Definition: resourcecalendar.cpp:241
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38