KCal Library
resourcecalendar.h
virtual void deleteAllEvents()=0
Removes all Events from the calendar.
Exceptions base class along with the Calendar ErrorFormat class.
virtual Event::List rawEvents(const QDate &start, const QDate &end, const KDateTime::Spec &timeSpec=KDateTime::Spec(), bool inclusive=false)=0
Get unfiltered events in a range of dates.
virtual Alarm::List alarms(const KDateTime &from, const KDateTime &to)=0
Return all alarms which occur in the given time interval.
virtual Todo * todo(const QString &uid)=0
Searches todolist for an event with this unique id.
virtual void setTimeZoneId(const QString &timeZoneId)=0
Sets the time zone ID for the Calendar.
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)=0
Shifts the times of all incidences so that they appear at the same clock time as before but in a new ...
virtual void setTimeSpec(const KDateTime::Spec &timeSpec)=0
Sets the default and viewing time specification for the calendar.
void resourceSaved(ResourceCalendar *)
This signal is emitted when saving the data of the resource has been finished.
virtual Alarm::List alarmsTo(const KDateTime &to)=0
Return all alarms which occur before given date.
virtual QString timeZoneId() const =0
Returns the time zone ID used for creating or modifying incidences in the calendar.
virtual void deleteAllJournals()=0
Removes all Journals from the calendar.
virtual bool addJournal(Journal *)=0
Add a Journal entry to the resource.
void resourceChanged(ResourceCalendar *)
This signal is emitted when the data in the resource has changed.
virtual Todo::List rawTodosForDate(const QDate &date)=0
Returns list of todos due on the specified date.
virtual Event * event(const QString &uid)=0
Retrieves an event on the basis of the unique string ID.
virtual KDateTime::Spec timeSpec() const =0
Get the viewing time specification (time zone etc.) for the calendar.
void resourceLoadError(ResourceCalendar *, const QString &error)
This signal is emitted when an error occurs during loading.
virtual Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all todos.
virtual void addInfoText(QString &) const
Add info text for concrete resources.
Definition: resourcecalendar.h:506
virtual void deleteAllTodos()=0
Removes all To-dos from the calendar.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:70
void signalSubresourceRemoved(ResourceCalendar *, const QString &, const QString &)
This signal is emitted when a subresource is removed.
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 provides the interfaces for a calendar resource.
Definition: resourcecalendar.h:51
void resourceSaveError(ResourceCalendar *, const QString &error)
This signal is emitted when an error occurs during saving.
virtual Event::List rawEventsForDate(const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::Spec(), EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Builds and then returns a list of all events that match the date specified.
void signalSubresourceAdded(ResourceCalendar *, const QString &type, const QString &subresource, const QString &label)
This signal is emitted when a subresource is added.
virtual bool doLoad(bool syncCache)=0
Do the actual loading of the resource data.
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 bool deleteEvent(Event *)=0
Delete event from this resource.
virtual Event::List rawEventsForDate(const KDateTime &dt)=0
Get unfiltered events for date dt.
virtual Journal * journal(const QString &uid)=0
Return Journal with given unique id.
virtual Journal::List rawJournalsForDate(const QDate &date)=0
Returns list of journals for the given date.
virtual bool doSave(bool syncCache)=0
Do the actual saving of the resource data.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.