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

kabc

  • sources
  • kde-4.12
  • kdepimlibs
  • kabc
resourcecached.h
1 /*
2  This file is part of kabc.
3  Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_RESOURCECACHED_H
22 #define KABC_RESOURCECACHED_H
23 
24 #include <kabc/kabc_export.h>
25 #include <kabc/resource.h>
26 
27 #include <kresources/idmapper.h>
28 
29 namespace KABC {
30 
31 class KABC_DEPRECATED_EXPORT ResourceCached : public Resource
32 {
33  Q_OBJECT
34 
35  public:
36  ResourceCached();
37  ResourceCached( const KConfigGroup &group );
38  ~ResourceCached();
39 
45  virtual void writeConfig( KConfigGroup &group );
46 
52  virtual void insertAddressee( const Addressee &addr );
53 
59  virtual void removeAddressee( const Addressee &addr );
60 
69  bool loadFromCache();
70 
76  void saveToCache();
77 
83  void cleanUpCache( const KABC::Addressee::List &list );
84 
88  KRES::IdMapper &idMapper();
89 
93  bool hasChanges() const;
94 
98  void clearChanges();
99 
107  void clearChange( const KABC::Addressee &addr );
108 
117  void clearChange( const QString &uid );
118 
122  KABC::Addressee::List addedAddressees() const;
123 
127  KABC::Addressee::List changedAddressees() const;
128 
132  KABC::Addressee::List deletedAddressees() const;
133 
134  protected:
145  virtual QString cacheFile() const;
146 
155  virtual QString changesCacheFile( const QString &type ) const;
156 
167  void loadChangesCache();
168 
179  void saveChangesCache();
180 
187  void setIdMapperIdentifier();
188 
189  private:
190  class Private;
191  Private *const d;
192 };
193 
194 }
195 
196 #endif
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:288
KRES::IdMapper
KABC::Addressee
address book entry
Definition: addressee.h:74
idmapper.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • 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