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

kabc

  • 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
29namespace KABC {
30
31class 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:289
KABC::Addressee
address book entry
Definition: addressee.h:79
KRES::IdMapper
idmapper.h
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition: address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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