resourcecalendar.h
186 virtual Event::List rawEvents( EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0;
192 virtual Event::List rawEventsForDate( const TQDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0;
289 virtual Todo::List rawTodos( TodoSortField sortField = TodoSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0;
315 virtual Journal::List rawJournals( JournalSortField sortField = JournalSortUnsorted, SortDirection sortDirection = SortDirectionAscending ) = 0;
Provides the main "calendar" object class.
This class provides the base class common to all calendar components.
Definition: incidence.h:48
This class provides the interfaces for a calendar resource.
Definition: resourcecalendar.h:58
virtual Todo * todo(const TQString &uid)=0
Searches todolist for an event with this unique id.
virtual Alarm::List alarmsTo(const TQDateTime &to)=0
Return all alarms which occur before given date.
virtual Event * event(const TQString &uid)=0
Retrieves an event on the basis of the unique string ID.
void signalSubresourceRemoved(ResourceCalendar *, const TQString &, const TQString &)
This signal is emitted when a subresource is removed.
virtual TQString subresourceIdentifier(Incidence *incidence)
Get the identifier of the subresource associated with a specified incidence.
Definition: resourcecalendar.h:378
virtual TQStringList subresources() const
If this resource has subresources, return a TQStringList of them.
Definition: resourcecalendar.h:346
virtual bool isSaving()
Return true if a save operation is still in progress, otherwise return false.
Definition: resourcecalendar.h:136
void signalSubresourceAdded(ResourceCalendar *, const TQString &type, const TQString &subresource, const TQString &label)
This signal is emitted when a subresource is added.
virtual Event::List rawEvents(const TQDate &start, const TQDate &end, bool inclusive=false)=0
Get unfiltered events in a range of dates.
void resourceLoaded(ResourceCalendar *)
This signal is emitted when loading data into the resource has been finished.
virtual bool deleteJournal(Journal *)=0
Remove a Journal entry from calendar.
virtual Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return unfiltered list of all events in calendar.
virtual TDE_DEPRECATED bool addTodo(Todo *todo)=0
Add a todo to the todolist.
virtual bool deleteEvent(Event *)=0
Delete event from this resource.
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.
void resourceSaved(ResourceCalendar *)
This signal is emitted when saving the data of the resource has been finished.
virtual bool subresourceActive(const TQString &) const
Is this subresource active or not?
Definition: resourcecalendar.h:356
void resourceChanged(ResourceCalendar *)
This signal is emitted when the data in the resource has changed.
virtual Event::List rawEventsForDate(const TQDateTime &qdt)=0
Get unfiltered events for date qdt.
virtual Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)=0
Return all alarms which occur in the given time interval.
virtual Event::List rawEventsForDate(const TQDate &date, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Builds and then returns a list of all events that match the date specified.
virtual bool canHaveSubresources() const
Is this subresource capable of having subresources or not?
Definition: resourcecalendar.h:351
void resourceSaveError(ResourceCalendar *, const TQString &error)
This signal is emitted when an error occurs during saving.
virtual TDE_DEPRECATED bool addJournal(Journal *)=0
Add a Journal entry to the resource.
virtual Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all journals.
virtual Todo::List rawTodosForDate(const TQDate &date)=0
Returns list of todos due on the specified date.
virtual Journal::List rawJournalsForDate(const TQDate &date)=0
Returns list of journals for the given date.
virtual const TQString labelForSubresource(const TQString &resource) const
What is the label for this subresource?
Definition: resourcecalendar.h:366
virtual TDE_DEPRECATED bool addEvent(Event *event)=0
Add event to resource.
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
virtual void setTimeZoneId(const TQString &timeZoneId)=0
Set time zone id used by this resource, e.g.
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38