• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

KCal::ResourceLocalDir

KCal::ResourceLocalDir Class Reference

This class provides a calendar stored as a file per incidence in a directory. More...

#include <resourcelocaldir.h>

Inheritance diagram for KCal::ResourceLocalDir:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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)
 ResourceLocalDir (const QString &fileName)
 ResourceLocalDir (const KConfigGroup &group)
void writeConfig (KConfigGroup &group)

Protected Slots

void reload (const QString &file)

Protected Member Functions

virtual bool doFileLoad (CalendarLocal &cal, const QString &fileName)
virtual bool doLoad (bool syncCache)
bool doOpen ()
bool doSave (bool syncCache, Incidence *incidence)
virtual bool doSave (bool syncCache)

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

void ResourceLocalDir::deleteAllEvents (  )  [virtual]

Removes all Events from this calendar.

Reimplemented from KCal::ResourceCached.

Definition at line 240 of file resourcelocaldir.cpp.

void ResourceLocalDir::deleteAllJournals (  )  [virtual]

Removes all journals from this calendar.

Reimplemented from KCal::ResourceCached.

Definition at line 278 of file resourcelocaldir.cpp.

void ResourceLocalDir::deleteAllTodos (  )  [virtual]

Removes all todos from this calendar.

Reimplemented from KCal::ResourceCached.

Definition at line 259 of file resourcelocaldir.cpp.

bool ResourceLocalDir::deleteEvent ( Event *  event  )  [virtual]

deletes an event from this calendar.

Reimplemented from KCal::ResourceCached.

Definition at line 225 of file resourcelocaldir.cpp.

bool ResourceLocalDir::deleteJournal ( Journal *  journal  )  [virtual]

Remove a journal from the journallist.

Reimplemented from KCal::ResourceCached.

Definition at line 264 of file resourcelocaldir.cpp.

bool ResourceLocalDir::deleteTodo ( Todo *  todo  )  [virtual]

Remove a todo from the todolist.

Reimplemented from KCal::ResourceCached.

Definition at line 245 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 126 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 119 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. If false, only the cache will be updated
incidence The incidence to be saved.

Reimplemented from KCal::ResourceCached.

Definition at line 194 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 176 of file resourcelocaldir.cpp.

KABC::Lock * ResourceLocalDir::lock (  )  [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:
  • resourcelocaldir.h
  • resourcelocaldir.cpp

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal