KCal Library
resourcecalendar.cpp
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:1207
static Factory * self(const QString &resourceFamily)
virtual void writeConfig(KConfigGroup &group)
virtual QString subresourceType(const QString &resource)
Returns the type of the subresource: "event", "todo", or "journal", QString if unknown/mixed.
Definition: resourcecalendar.cpp:149
virtual QString subresourceIdentifier(Incidence *incidence)
Get the identifier of the subresource associated with a specified incidence.
Definition: resourcecalendar.cpp:292
void loadError(const QString &errorMessage=QString())
A resource should call this function if a load error happens.
Definition: resourcecalendar.cpp:188
Incidence::List rawIncidences()
Returns a list of all incideces.
Definition: resourcecalendar.cpp:127
virtual Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all todos.
virtual Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return list of all journals.
bool open()
void resourceSaveError(ResourceCalendar *, const QString &error)
This signal is emitted when an error occurs during saving.
virtual void addInfoText(QString &) const
Add info text for concrete resources.
Definition: resourcecalendar.h:506
virtual bool doLoad(bool syncCache)=0
Do the actual loading of the resource data.
Incidence * incidence(const QString &uid)
Return incidence with given unique id.
Definition: resourcecalendar.cpp:99
virtual bool deleteIncidence(Incidence *)
Delete incidence from resource.
Definition: resourcecalendar.cpp:121
bool noReadOnlyOnLoad() const
Return whether individual incidences are inhibited from being set read-only when a read-only resource...
Definition: resourcecalendar.cpp:330
virtual void setSubresourceActive(const QString &resource, bool active)
(De-)activate a subresource.
Definition: resourcecalendar.cpp:132
void setNoReadOnlyOnLoad(bool noReadOnly)
Specify whether individual incidences should be set read-only when a read-only resource is loaded...
Definition: resourcecalendar.cpp:325
virtual bool removeSubresource(const QString &resource)
Remove a subresource with the id.
Definition: resourcecalendar.cpp:136
virtual bool addSubresource(const QString &resource, const QString &parent)
Add a subresource with the id.
Definition: resourcecalendar.cpp:142
virtual bool addIncidence(Incidence *)
Add incidence to resource.
Definition: resourcecalendar.cpp:115
QString type() const
bool isEmpty() const
virtual Journal * journal(const QString &uid)=0
Return Journal with given unique id.
void setInhibitSave(bool inhibit)
Inhibit or allow saves, overriding the save policy set by setSavePolicy().
Definition: resourcecalendar.cpp:308
void saveError(const QString &errorMessage=QString())
A resource should call this function if a save error happens.
Definition: resourcecalendar.cpp:257
virtual QStringList subresources() const
If this resource has subresources, return a QStringList of them.
Definition: resourcecalendar.cpp:270
typedef Iterator
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
virtual Todo * todo(const QString &uid)=0
Searches todolist for an event with this unique id.
iterator end()
virtual bool readOnly() const
void resourceLoadError(ResourceCalendar *, const QString &error)
This signal is emitted when an error occurs during loading.
virtual QString labelForSubresource(const QString &resource) const
What is the label for this subresource?
Definition: resourcecalendar.cpp:286
virtual bool subresourceActive(const QString &resource) const
Is this subresource active or not?
Definition: resourcecalendar.cpp:280
virtual QString infoText() const
Return rich text with info about the resource.
Definition: resourcecalendar.cpp:78
virtual bool isSaving()
Return true if a save operation is still in progress, otherwise return false.
Definition: resourcecalendar.cpp:246
QString typeName(const QString &type) const
virtual QString resourceName() const
virtual Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return unfiltered list of all events in calendar.
bool isOpen() const
virtual bool doSave(bool syncCache)=0
Do the actual saving of the resource data.
virtual bool canHaveSubresources() const
Is this resource capable of having subresources or not?
Definition: resourcecalendar.cpp:275
bool saveInhibited() const
Return whether saves have been inhibited by setInhibitSave().
Definition: resourcecalendar.cpp:313
virtual bool setValue(const QString &key, const QString &value)
Sets a particular value of the resource's configuration.
Definition: resourcecalendar.cpp:318
iterator begin()
virtual Event * event(const QString &uid)=0
Retrieves an event on the basis of the unique string ID.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.