resourcecalendar.cpp
virtual Event * event(const TQString &uid)=0
Retrieves an event on the basis of the unique string ID.
This class implements a visitor for adding an Incidence to a resource supporting addEvent(),...
Definition: incidence.h:55
virtual bool setValue(const TQString &key, const TQString &value)
Sets a particular value of the resource's configuration.
Definition: resourcecalendar.cpp:219
virtual void beginAddingIncidences()
Called when we starting adding a batch of incidences.
Definition: resourcecalendar.cpp:241
virtual void setSubresourceActive(const TQString &, bool active)
(De-)activate a subresource.
Definition: resourcecalendar.cpp:124
virtual Todo * todo(const TQString &uid)=0
Searches todolist for an event with this unique id.
virtual void endAddingIncidences()
Called when we finish adding a batch of incidences.
Definition: resourcecalendar.cpp:245
virtual Journal * journal(const TQString &uid)=0
Return Journal with given unique id.
Incidence * incidence(const TQString &uid)
Return incidence with given unique id.
Definition: resourcecalendar.cpp:91
Definition: alarm.h:38
void setException(ErrorFormat *error)
Set exception for this object.
Definition: resourcecalendar.cpp:52
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
virtual bool subresourceWritable(const TQString &) const
Is this subresource writable or not?
Definition: resourcecalendar.cpp:232
This class implements a visitor for adding an Incidence to a resource plus subresource supporting add...
Definition: incidence.h:73
void saveError(const TQString &errorMessage=TQString())
A resource should call this function if a save error happens.
Definition: resourcecalendar.cpp:206
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 bool removeSubresource(const TQString &resource)
Remove a subresource with the id.
Definition: resourcecalendar.cpp:133
This class provides the base class common to all calendar components.
Definition: incidence.h:47
ErrorFormat * exception()
Returns an exception, if there is any, containing information about the last error that occurred.
Definition: resourcecalendar.cpp:58
void resourceLoadError(ResourceCalendar *, const TQString &error)
This signal is emitted when an error occurs during loading.
virtual Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return unfiltered list of all events in calendar.
virtual Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all journals.
This class implements a visitor for deleting an Incidence from a resource supporting deleteEvent(),...
Definition: incidence.h:103
void loadError(const TQString &errorMessage=TQString())
A resource should call this function if a load error happens.
Definition: resourcecalendar.cpp:169
virtual void addInfoText(TQString &) const
Add info text for concrete resources.
Definition: resourcecalendar.h:439
virtual bool deleteIncidence(Incidence *)
Delete incidence from resource.
Definition: resourcecalendar.cpp:113
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 bool addSubresource(const TQString &resource, const TQString &parent)
Add a subresource with the name.
Definition: resourcecalendar.cpp:128
virtual TDE_DEPRECATED bool addIncidence(Incidence *)
Add incidence to resource.
Definition: resourcecalendar.cpp:101