KCal Library
KCal::ResourceLocalDir Class Reference
#include <resourcelocaldir.h>

Detailed Description
This class provides a calendar stored as a file per incidence in a directory.Definition at line 33 of file resourcelocaldir.h.
Public Member Functions | |
| ResourceLocalDir (const KConfigGroup &group) | |
| ResourceLocalDir (const QString &fileName) | |
| void | readConfig (const KConfigGroup &group) |
| void | writeConfig (KConfigGroup &group) |
| KABC::Lock * | lock () |
| bool | deleteEvent (Event *event) |
| void | deleteAllEvents () |
| bool | deleteTodo (Todo *todo) |
| void | deleteAllTodos () |
| bool | deleteJournal (Journal *journal) |
| void | deleteAllJournals () |
| void | dump () const |
Protected Slots | |
| void | reload (const QString &file) |
Protected Member Functions | |
| virtual bool | doLoad (bool syncCache) |
| virtual bool | doSave (bool syncCache) |
| bool | doSave (bool syncCache, Incidence *incidence) |
| virtual bool | doFileLoad (CalendarLocal &cal, const QString &fileName) |
Friends | |
| class | ResourceLocalDirConfig |
Member Function Documentation
| KABC::Lock * ResourceLocalDir::lock | ( | ) | [virtual] |
Return object for locking the resource.
Implements KCal::ResourceCalendar.
Definition at line 195 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::deleteEvent | ( | Event * | event | ) | [virtual] |
deletes an event from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 216 of file resourcelocaldir.cpp.
| void ResourceLocalDir::deleteAllEvents | ( | ) | [virtual] |
Removes all Events from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 226 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::deleteTodo | ( | Todo * | todo | ) | [virtual] |
Remove a todo from the todolist.
Reimplemented from KCal::ResourceCached.
Definition at line 231 of file resourcelocaldir.cpp.
| void ResourceLocalDir::deleteAllTodos | ( | ) | [virtual] |
Removes all todos from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 240 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::deleteJournal | ( | Journal * | journal | ) | [virtual] |
Remove a journal from the journallist.
Reimplemented from KCal::ResourceCached.
Definition at line 245 of file resourcelocaldir.cpp.
| void ResourceLocalDir::deleteAllJournals | ( | ) | [virtual] |
Removes all journals from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 254 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::doLoad | ( | bool | syncCache | ) | [protected, virtual] |
Do the actual loading of the resource data.
Called by load(CacheAction).
Implements KCal::ResourceCached.
Definition at line 109 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::doSave | ( | bool | syncCache | ) | [protected, virtual] |
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 166 of file resourcelocaldir.cpp.
| bool ResourceLocalDir::doSave | ( | bool | syncCache, | |
| Incidence * | incidence | |||
| ) | [protected, virtual] |
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 updated
Reimplemented from KCal::ResourceCached.
Definition at line 179 of file resourcelocaldir.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference