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

KCal Library

resourcelocal.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the kcal library.
00003 
00004     Copyright (c) 1998 Preston Brown <pbrown@kde.org>
00005     Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00031 #ifndef KCAL_RESOURCELOCAL_H
00032 #define KCAL_RESOURCELOCAL_H
00033 
00034 #include <QtCore/QString>
00035 
00036 #include <kdatetime.h>
00037 
00038 #include "kcal_export.h"
00039 #include "resourcecached.h"
00040 
00041 namespace KCal {
00042 
00046 class KCAL_EXPORT ResourceLocal : public ResourceCached
00047 {
00048     Q_OBJECT
00049 
00050     friend class ResourceLocalConfig;
00051 
00052   public:
00053 
00057     ResourceLocal();
00058 
00065     explicit ResourceLocal( const KConfigGroup &group );
00066 
00072     explicit ResourceLocal( const QString &fileName );
00073 
00077     virtual ~ResourceLocal();
00078 
00082     virtual void writeConfig( KConfigGroup &group );
00083 
00087     KABC::Lock *lock();
00088 
00094     QString fileName() const;
00095 
00104     bool setFileName( const QString &fileName );
00105 
00112     bool setValue( const QString &key, const QString &value );
00113 
00117     void dump() const;
00118 
00119   protected Q_SLOTS:
00120 
00124     void reload();
00125 
00126   protected:
00127 
00131     virtual bool doLoad( bool syncCache );
00132 
00136     virtual bool doSave( bool syncCache );
00137 
00142     virtual bool doSave( bool syncCache, Incidence * );
00143 
00151     virtual bool doReload();
00152 
00158     KDateTime readLastModified();
00159 
00166     bool operator==( const ResourceLocal &other );
00167 
00171     ResourceLocal &operator=( const ResourceLocal &other );
00172 
00173   private:
00174     // Inherited virtual methods which should not be used by derived classes.
00175     using ResourceCalendar::doLoad;
00176     using ResourceCalendar::doSave;
00177 
00178     void init();
00179     //@cond PRIVATE
00180     class Private;
00181     Private *const d;
00182     //@endcond
00183 };
00184 
00185 }
00186 
00187 #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.6
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