• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kcal
resourcelocal.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcal library.
3 
4  Copyright (c) 1998 Preston Brown <pbrown@kde.org>
5  Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
31 #ifndef KCAL_RESOURCELOCAL_H
32 #define KCAL_RESOURCELOCAL_H
33 
34 #include <QtCore/QString>
35 
36 #include <kdatetime.h>
37 
38 #include "kcal_export.h"
39 #include "resourcecached.h"
40 
41 namespace KCal {
42 
46 class KCAL_DEPRECATED_EXPORT ResourceLocal : public ResourceCached
47 {
48  Q_OBJECT
49 
50  friend class ResourceLocalConfig;
51 
52  public:
53 
57  ResourceLocal();
58 
65  explicit ResourceLocal( const KConfigGroup &group );
66 
72  explicit ResourceLocal( const QString &fileName );
73 
77  virtual ~ResourceLocal();
78 
82  virtual void writeConfig( KConfigGroup &group );
83 
87  KABC::Lock *lock();
88 
94  QString fileName() const;
95 
104  bool setFileName( const QString &fileName );
105 
112  bool setValue( const QString &key, const QString &value );
113 
117  void dump() const;
118 
119  protected Q_SLOTS:
120 
124  void reload();
125 
126  protected:
127 
131  virtual bool doLoad( bool syncCache );
132 
136  virtual bool doSave( bool syncCache );
137 
142  virtual bool doSave( bool syncCache, Incidence *incidence );
143 
151  virtual bool doReload();
152 
158  KDateTime readLastModified();
159 
166  bool operator==( const ResourceLocal &other );
167 
171  ResourceLocal &operator=( const ResourceLocal &other );
172 
173  private:
174  // Inherited virtual methods which should not be used by derived classes.
175  using ResourceCalendar::doLoad;
176  using ResourceCalendar::doSave;
177 
178  void init();
179  //@cond PRIVATE
180  class Private;
181  Private *const d;
182  //@endcond
183 };
184 
185 }
186 
187 #endif
KCal::ResourceCalendar::doLoad
virtual bool doLoad(bool syncCache)=0
Do the actual loading of the resource data.
KCal::Incidence
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
KCal::ResourceLocal
Provides a calendar resource stored as a local file.
Definition: resourcelocal.h:46
KCal::ResourceCached
This class provides a calendar resource using a local CalendarLocal object to cache the calendar data...
Definition: resourcecached.h:43
KCal::ResourceLocalConfig
Configuration widget for local file resource.
Definition: resourcelocalconfig.h:41
KCal::ResourceCalendar::doSave
virtual bool doSave(bool syncCache)=0
Do the actual saving of the resource data.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal