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

KCal Library

resourcelocaldir.h

00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 #ifndef KCAL_RESOURCELOCALDIRDIR_H
00022 #define KCAL_RESOURCELOCALDIRDIR_H
00023 
00024 #include "kcal_export.h"
00025 #include "resourcecached.h"
00026 
00027 namespace KCal {
00028 
00033 class KCAL_EXPORT ResourceLocalDir : public ResourceCached
00034 {
00035   Q_OBJECT
00036   friend class ResourceLocalDirConfig;
00037 
00038   public:
00039     ResourceLocalDir();
00040     explicit ResourceLocalDir( const KConfigGroup &group );
00041     explicit ResourceLocalDir( const QString &fileName );
00042     virtual ~ResourceLocalDir();
00043 
00044     void readConfig( const KConfigGroup &group );
00045     void writeConfig( KConfigGroup &group );
00046 
00047     KABC::Lock *lock();
00048 
00050     bool deleteEvent( Event *event );
00051 
00053     void deleteAllEvents();
00054 
00058     bool deleteTodo( Todo *todo );
00059 
00063     void deleteAllTodos();
00064 
00068     bool deleteJournal( Journal *journal );
00069 
00073     void deleteAllJournals();
00074 
00075     void dump() const;
00076 
00077   protected Q_SLOTS:
00078     void reload( const QString &file );
00079 
00080   protected:
00081     bool doOpen();
00082     virtual bool doLoad( bool syncCache );
00083     virtual bool doSave( bool syncCache );
00084     bool doSave( bool syncCache, Incidence *incidence );
00085     virtual bool doFileLoad( CalendarLocal &cal, const QString &fileName );
00086 
00087   private:
00088     // Inherited virtual methods which should not be used by derived classes.
00089     using ResourceCalendar::doLoad;
00090     using ResourceCalendar::doSave;
00091 
00092     //@cond PRIVATE
00093     Q_DISABLE_COPY( ResourceLocalDir )
00094     class Private;
00095     Private *const d;
00096     //@endcond
00097 };
00098 
00099 }
00100 
00101 #endif

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
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
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