KCal Library
resourcecached.cpp
330 Journal::List ResourceCached::rawJournals( JournalSortField sortField, SortDirection sortDirection )
370 void ResourceCached::shiftTimes( const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec )
virtual QString changesCacheFile(const QString &type) const
Functions for keeping the changes persistent.
Definition: resourcecached.cpp:605
This file is part of the API for handling calendar data and defines the Exception and ErrorFormat cla...
KDateTime::Spec timeSpec() const
Get the viewing time specification (time zone etc.) for the calendar.
Definition: resourcecached.cpp:355
virtual bool doSave(bool syncCache)=0
Do the actual saving of the resource data.
bool checkForSave()
Check if save required according to save policy.
Definition: resourcecached.cpp:845
Todo::List rawTodosForDate(const QDate &date)
Returns list of todos due on the specified date.
Definition: resourcecached.cpp:315
void calendarIncidenceAdded(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been inserted.
Definition: resourcecached.cpp:664
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all todos.
Definition: resourcecached.cpp:305
bool save(CacheAction action, Incidence *incidence=0)
Save the resource data to cache, and optionally upload the cache file afterwards.
Definition: resourcecached.cpp:456
bool reloaded() const
Return whether the resource cache has been reloaded since startup.
Definition: resourcecached.cpp:119
void calendarIncidenceDeleted(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been removed.
Definition: resourcecached.cpp:691
This class provides a calendar resource using a local CalendarLocal object to cache the calendar data...
Definition: resourcecached.h:45
virtual Journal * journal(const QString &uid)
Return Journal with given unique id.
Definition: resourcecached.cpp:325
This class provides a calendar stored as a local file.
Definition: calendarlocal.h:44
void setTimeZoneId(const QString &timeZoneId)
Set id of timezone, e.g.
Definition: resourcecached.cpp:360
void addInfoText(QString &) const
Add info text for concrete resources.
Definition: resourcecached.cpp:853
virtual bool deleteJournal(Journal *)
Remove a Journal from the calendar.
Definition: resourcecached.cpp:295
Alarm::List alarmsTo(const KDateTime &to)
Return all alarms, which occur before given date.
Definition: resourcecached.cpp:340
virtual KCAL_DEPRECATED bool addJournal(Journal *journal)
Add a Journal entry to calendar.
Definition: resourcecached.cpp:320
CacheAction
Whether to update the cache file when loading a resource, or whether to upload the cache file after s...
Definition: resourcecached.h:75
This file is part of the API for handling calendar data and defines the Event class.
Event::List rawEventsForDate(const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::Spec(), EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Builds and then returns a list of all events that match for the date specified.
Definition: resourcecached.cpp:255
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:70
Todo * todo(const QString &uid)
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Definition: resourcecached.cpp:310
Alarm::List alarms(const KDateTime &from, const KDateTime &to)
Return all alarms, which occur in the given time interval.
Definition: resourcecached.cpp:345
virtual void deleteAllJournals()
Removes all Journals from this calendar.
Definition: resourcecached.cpp:300
void setSaveInterval(int minutes)
Set save interval in minutes which is used when save policy is SaveInterval.
Definition: resourcecached.cpp:172
void setTimeSpec(const KDateTime::Spec &timeSpec)
Set the time specification (time zone, etc.).
Definition: resourcecached.cpp:350
Journal::List rawJournalsForDate(const QDate &date)
Return list of journals for the given date.
Definition: resourcecached.cpp:335
This file is part of the API for handling calendar data and defines the Incidence class.
This class provides the interfaces for a calendar resource.
Definition: resourcecalendar.h:51
virtual void doClose()
Virtual method from KRES::Resource, called when the last instace of the resource is closed.
Definition: resourcecached.cpp:867
void calendarIncidenceChanged(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been modified.
Definition: resourcecached.cpp:677
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all journals.
Definition: resourcecached.cpp:330
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: resourcecached.cpp:370
QString timeZoneId() const
Returns the viewing time zone ID for the resource.
Definition: resourcecached.cpp:365
This file is part of the API for handling calendar data and defines the Journal class.
This file is part of the API for handling calendar data and defines the CalendarLocal class.
bool inhibitDefaultReload(bool inhibit)
Inhibit or allow cache reloads when using load(DefaultCache).
Definition: resourcecached.cpp:151
This file is part of the API for handling calendar data and defines the Todo class.
void setReloadInterval(int minutes)
Set reload interval in minutes which is used when reload policy is ReloadInterval.
Definition: resourcecached.cpp:141
virtual QString cacheFile() const
This method is used by loadFromCache() and saveToCache(), reimplement it to change the location of th...
Definition: resourcecached.cpp:600
bool deleteEvent(Event *event)
Deletes an event from this calendar.
Definition: resourcecached.cpp:238
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return unfiltered list of all events in calendar.
Definition: resourcecached.cpp:275
Event * event(const QString &UniqueStr)
Retrieves an event on the basis of the unique string ID.
Definition: resourcecached.cpp:250
bool checkForReload()
Check if reload required according to reload policy.
Definition: resourcecached.cpp:834
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 06:51:21 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 06:51:21 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.