libkcal
KCal::ResourceLocalDir Class Reference
#include <resourcelocaldir.h>
Public Member Functions | |
bool | deleteEvent (Event *) |
bool | deleteJournal (Journal *) |
bool | deleteTodo (Todo *) |
void | dump () const |
KABC::Lock * | lock () |
void | readConfig (const KConfig *config) |
ResourceLocalDir (const QString &fileName) | |
ResourceLocalDir (const KConfig *) | |
void | writeConfig (KConfig *config) |
virtual | ~ResourceLocalDir () |
Protected Slots | |
void | reload (const QString &) |
Protected Member Functions | |
virtual bool | doFileLoad (CalendarLocal &, const QString &fileName) |
virtual bool | doLoad () |
virtual bool | doOpen () |
bool | doSave (Incidence *) |
virtual bool | doSave () |
Detailed Description
For internal use only.
This class provides a calendar stored as a file per incidence in a directory.
Definition at line 45 of file resourcelocaldir.h.
Constructor & Destructor Documentation
ResourceLocalDir::ResourceLocalDir | ( | const KConfig * | config | ) |
Definition at line 55 of file resourcelocaldir.cpp.
ResourceLocalDir::ResourceLocalDir | ( | const QString & | fileName | ) |
Definition at line 65 of file resourcelocaldir.cpp.
ResourceLocalDir::~ResourceLocalDir | ( | ) | [virtual] |
Definition at line 109 of file resourcelocaldir.cpp.
Member Function Documentation
bool ResourceLocalDir::deleteEvent | ( | Event * | event | ) | [virtual] |
deletes an event from this calendar.
Reimplemented from KCal::ResourceCached.
Definition at line 231 of file resourcelocaldir.cpp.
bool ResourceLocalDir::deleteJournal | ( | Journal * | journal | ) | [virtual] |
Remove a journal from the journallist.
Reimplemented from KCal::ResourceCached.
Definition at line 250 of file resourcelocaldir.cpp.
bool ResourceLocalDir::deleteTodo | ( | Todo * | todo | ) | [virtual] |
Remove a todo from the todolist.
Reimplemented from KCal::ResourceCached.
Definition at line 241 of file resourcelocaldir.cpp.
bool ResourceLocalDir::doFileLoad | ( | CalendarLocal & | cal, | |
const QString & | fileName | |||
) | [protected, virtual] |
Definition at line 166 of file resourcelocaldir.cpp.
bool ResourceLocalDir::doLoad | ( | ) | [protected, virtual] |
Do the actual loading of the resource data.
Called by load().
Implements KCal::ResourceCalendar.
Definition at line 123 of file resourcelocaldir.cpp.
bool ResourceLocalDir::doOpen | ( | ) | [protected, virtual] |
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 116 of file resourcelocaldir.cpp.
bool ResourceLocalDir::doSave | ( | Incidence * | ) | [protected, virtual] |
Do the actual saving of the resource data.
Called by save(). Save one Incidence. The default implementation calls doSave() to save everything
Reimplemented from KCal::ResourceCalendar.
Definition at line 194 of file resourcelocaldir.cpp.
bool ResourceLocalDir::doSave | ( | ) | [protected, virtual] |
Do the actual saving of the resource data.
Called by save().
Implements KCal::ResourceCalendar.
Definition at line 179 of file resourcelocaldir.cpp.
void ResourceLocalDir::dump | ( | ) | const |
Definition at line 259 of file resourcelocaldir.cpp.
KABC::Lock * ResourceLocalDir::lock | ( | ) | [virtual] |
Return object for locking the resource.
Implements KCal::ResourceCalendar.
Definition at line 210 of file resourcelocaldir.cpp.
void ResourceLocalDir::readConfig | ( | const KConfig * | config | ) |
void ResourceLocalDir::reload | ( | const QString & | file | ) | [protected, slot] |
Definition at line 215 of file resourcelocaldir.cpp.
void ResourceLocalDir::writeConfig | ( | KConfig * | config | ) | [virtual] |
The documentation for this class was generated from the following files: