KCal Library
#include <resourcelocaldir.h>

Public Member Functions | |
ResourceLocalDir (const KConfigGroup &group) | |
ResourceLocalDir (const QString &fileName) | |
void | deleteAllEvents () |
void | deleteAllJournals () |
void | deleteAllTodos () |
bool | deleteEvent (Event *event) |
bool | deleteJournal (Journal *journal) |
bool | deleteTodo (Todo *todo) |
void | dump () const |
KABC::Lock * | lock () |
void | readConfig (const KConfigGroup &group) |
void | writeConfig (KConfigGroup &group) |
![]() | |
ResourceCached (const KConfigGroup &group) | |
Incidence::List | addedIncidences () const |
bool | addEvent (Event *event) |
virtual KCAL_DEPRECATED bool | addJournal (Journal *journal) |
bool | addTodo (Todo *todo) |
Alarm::List | alarms (const KDateTime &from, const KDateTime &to) |
Alarm::List | alarmsTo (const KDateTime &to) |
Incidence::List | allChanges () const |
Incidence::List | changedIncidences () const |
void | cleanUpEventCache (const KCal::Event::List &eventList) |
void | cleanUpTodoCache (const KCal::Todo::List &todoList) |
void | clearCache () |
void | clearChange (Incidence *incidence) |
void | clearChange (const QString &uid) |
void | clearChanges () |
bool | defaultReloadInhibited () const |
Incidence::List | deletedIncidences () const |
void | disableChangeNotification () |
void | enableChangeNotification () |
Event * | event (const QString &UniqueStr) |
Event::List | events () |
bool | hasChanges () const |
KRES::IdMapper & | idMapper () |
bool | inhibitDefaultReload (bool inhibit) |
virtual Journal * | journal (const QString &uid) |
KDateTime | lastLoad () const |
KDateTime | lastSave () const |
bool | load (CacheAction action) |
virtual bool | load () |
bool | loadFromCache () |
Person | owner () const |
Event::List | rawEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) |
Event::List | rawEvents (const QDate &start, const QDate &end, const KDateTime::Spec &timeSpec=KDateTime::Spec(), bool inclusive=false) |
Event::List | rawEventsForDate (const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::Spec(), EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) |
Event::List | rawEventsForDate (const KDateTime &dt) |
Journal::List | rawJournals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) |
Journal::List | rawJournalsForDate (const QDate &date) |
Todo::List | rawTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) |
Todo::List | rawTodosForDate (const QDate &date) |
void | readConfig (const KConfigGroup &group) |
bool | reloaded () const |
int | reloadInterval () const |
int | reloadPolicy () const |
bool | save (CacheAction action, Incidence *incidence=0) |
virtual bool | save (Incidence *incidence=0) |
int | saveInterval () const |
int | savePolicy () const |
void | saveToCache () |
void | setOwner (const Person &owner) |
void | setReloadInterval (int minutes) |
void | setReloadPolicy (int policy) |
void | setSaveInterval (int minutes) |
void | setSavePolicy (int policy) |
void | setTimeSpec (const KDateTime::Spec &timeSpec) |
void | setTimeZoneId (const QString &timeZoneId) |
virtual void | shiftTimes (const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec) |
KDateTime::Spec | timeSpec () const |
QString | timeZoneId () const |
Todo * | todo (const QString &uid) |
![]() | |
ResourceCalendar (const KConfigGroup &group) | |
virtual bool | addIncidence (Incidence *) |
virtual bool | canHaveSubresources () const |
virtual bool | deleteIncidence (Incidence *) |
Incidence * | incidence (const QString &uid) |
virtual QString | infoText () const |
bool | isResolveConflictSet () const |
virtual bool | isSaving () |
virtual QString | labelForSubresource (const QString &resource) const |
Incidence::List | rawIncidences () |
bool | save (Incidence *incidence=0) |
bool | save (QString &err, Incidence *incidence=0) |
bool | saveInhibited () const |
void | setInhibitSave (bool inhibit) |
void | setResolveConflict (bool b) |
virtual bool | setValue (const QString &key, const QString &value) |
virtual bool | subresourceActive (const QString &resource) const |
virtual QString | subresourceIdentifier (Incidence *incidence) |
virtual QStringList | subresources () const |
![]() | |
Resource (const KConfigGroup &group) | |
void | close () |
QString | identifier () const |
bool | isActive () const |
bool | isOpen () const |
bool | open () |
virtual bool | readOnly () const |
virtual QString | resourceName () const |
void | setActive (bool active) |
void | setIdentifier (const QString &identifier) |
virtual void | setReadOnly (bool value) |
virtual void | setResourceName (const QString &name) |
void | setType (const QString &type) |
QString | type () const |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
![]() | |
virtual | ~CalendarObserver () |
virtual void | calendarModified (bool modified, Calendar *calendar) |
Protected Slots | |
void | reload (const QString &file) |
![]() | |
void | setIdMapperIdentifier () |
void | slotReload () |
void | slotSave () |
Protected Member Functions | |
virtual bool | doFileLoad (CalendarLocal &cal, const QString &fileName) |
virtual bool | doLoad (bool syncCache) |
bool | doOpen () |
virtual bool | doSave (bool syncCache) |
bool | doSave (bool syncCache, Incidence *incidence) |
![]() | |
void | addInfoText (QString &) const |
virtual QString | cacheFile () const |
CalendarLocal * | calendar () const |
void | calendarIncidenceAdded (KCal::Incidence *incidence) |
void | calendarIncidenceChanged (KCal::Incidence *incidence) |
void | calendarIncidenceDeleted (KCal::Incidence *incidence) |
virtual QString | changesCacheFile (const QString &type) const |
void | checkForAutomaticSave () |
bool | checkForReload () |
bool | checkForSave () |
virtual void | doClose () |
void | loadChangesCache (QMap< Incidence *, bool > &map, const QString &type) |
void | loadChangesCache () |
void | saveChangesCache (const QMap< Incidence *, bool > &map, const QString &type) |
void | saveChangesCache () |
void | setReloaded (bool done) |
void | setupReloadTimer () |
void | setupSaveTimer () |
![]() | |
void | loadError (const QString &errorMessage=QString()) |
bool | noReadOnlyOnLoad () const |
bool | receivedLoadError () const |
bool | receivedSaveError () const |
void | saveError (const QString &errorMessage=QString()) |
void | setNoReadOnlyOnLoad (bool noReadOnly) |
void | setReceivedLoadError (bool b) |
void | setReceivedSaveError (bool b) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
![]() | |
enum | { ReloadNever, ReloadOnStartup, ReloadInterval } |
enum | { SaveNever, SaveOnExit, SaveInterval, SaveDelayed, SaveAlways } |
enum | CacheAction { DefaultCache, NoSyncCache, SyncCache } |
![]() | |
virtual bool | addSubresource (const QString &resource, const QString &parent) |
virtual bool | removeSubresource (const QString &resource) |
virtual void | setSubresourceActive (const QString &resource, bool active) |
virtual QString | subresourceType (const QString &resource) |
![]() | |
void | resourceChanged (ResourceCalendar *) |
void | resourceLoaded (ResourceCalendar *) |
void | resourceLoadError (ResourceCalendar *, const QString &error) |
void | resourceSaved (ResourceCalendar *) |
void | resourceSaveError (ResourceCalendar *, const QString &error) |
void | signalSubresourceAdded (ResourceCalendar *, const QString &type, const QString &subresource, const QString &label) |
void | signalSubresourceRemoved (ResourceCalendar *, const QString &, const QString &) |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Detailed Description
This class provides a calendar stored as a file per incidence in a directory.
Definition at line 33 of file resourcelocaldir.h.
Member Function Documentation
|
virtual |
Removes all Events from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 240 of file resourcelocaldir.cpp.
|
virtual |
Removes all journals from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 278 of file resourcelocaldir.cpp.
|
virtual |
Removes all todos from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 259 of file resourcelocaldir.cpp.
|
virtual |
deletes an event from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 225 of file resourcelocaldir.cpp.
|
virtual |
Remove a journal from the journallist.
Reimplemented from KCal::ResourceCached.
Definition at line 264 of file resourcelocaldir.cpp.
|
virtual |
Remove a todo from the todolist.
Reimplemented from KCal::ResourceCached.
Definition at line 245 of file resourcelocaldir.cpp.
|
protectedvirtual |
Do the actual loading of the resource data.
Called by load(CacheAction).
Implements KCal::ResourceCached.
Definition at line 126 of file resourcelocaldir.cpp.
|
protectedvirtual |
Opens the resource.
Dummy implementation, so child classes don't have to reimplement this method. By default, this does not do anything, but can be reimplemented in child classes
Reimplemented from KCal::ResourceCached.
Definition at line 119 of file resourcelocaldir.cpp.
|
protectedvirtual |
Do the actual saving of the resource data.
Called by save(CacheAction). Saves the resource data to the cache and optionally uploads (if a remote resource).
- Parameters
-
syncCache if true, the cache will be uploaded to the remote resource. If false, only the cache will be updated.
Implements KCal::ResourceCached.
Definition at line 176 of file resourcelocaldir.cpp.
|
protectedvirtual |
Do the actual saving of the resource data.
Called by save(CacheAction). Save one Incidence. The default implementation calls doSave(bool) to save everything.
- Parameters
-
syncCache if true
, the cache will be uploaded to the remote resource. Iffalse
, only the cache will be updatedincidence The incidence to be saved.
Reimplemented from KCal::ResourceCached.
Definition at line 194 of file resourcelocaldir.cpp.
|
virtual |
Return object for locking the resource.
Implements KCal::ResourceCalendar.
Definition at line 215 of file resourcelocaldir.cpp.
The documentation for this class was generated from the following files:
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.