summaryrefslogtreecommitdiffabout
path: root/kabc/addressbook.h
Unidiff
Diffstat (limited to 'kabc/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressbook.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/kabc/addressbook.h b/kabc/addressbook.h
index 3383fc0..3a8e028 100644
--- a/kabc/addressbook.h
+++ b/kabc/addressbook.h
@@ -4,70 +4,64 @@
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 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 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20 20
21/* 21/*
22Enhanced Version of the file for platform independent KDE tools. 22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk 23Copyright (c) 2004 Ulf Schenk
24 24
25$Id$ 25$Id$
26*/ 26*/
27 27
28#ifndef KABC_ADDRESSBOOK_H 28#ifndef KABC_ADDRESSBOOK_H
29#define KABC_ADDRESSBOOK_H 29#define KABC_ADDRESSBOOK_H
30 30
31#include <qobject.h> 31#include <qobject.h>
32 32
33#include <kresources/manager.h> 33#include <kresources/manager.h>
34#include <qptrlist.h> 34#include <qptrlist.h>
35 35
36#ifndef KAB_EMBEDDED
37
38#else //KAB_EMBEDDED
39#endif //KAB_EMBEDDED
40
41
42#include "addressee.h" 36#include "addressee.h"
43#include "field.h" 37#include "field.h"
44 38
45namespace KABC { 39namespace KABC {
46 40
47class ErrorHandler; 41class ErrorHandler;
48class Resource; 42class Resource;
49class Ticket; 43class Ticket;
50 44
51/** 45/**
52 @short Address Book 46 @short Address Book
53 47
54 This class provides access to a collection of address book entries. 48 This class provides access to a collection of address book entries.
55*/ 49*/
56class AddressBook : public QObject 50class AddressBook : public QObject
57{ 51{
58 Q_OBJECT 52 Q_OBJECT
59 53
60 friend QDataStream &operator<<( QDataStream &, const AddressBook & ); 54 friend QDataStream &operator<<( QDataStream &, const AddressBook & );
61 friend QDataStream &operator>>( QDataStream &, AddressBook & ); 55 friend QDataStream &operator>>( QDataStream &, AddressBook & );
62 friend class StdAddressBook; 56 friend class StdAddressBook;
63 57
64 public: 58 public:
65 /** 59 /**
66 @short Address Book Iterator 60 @short Address Book Iterator
67 61
68 This class provides an iterator for address book entries. 62 This class provides an iterator for address book entries.
69 */ 63 */
70 class Iterator 64 class Iterator
71 { 65 {
72 public: 66 public:
73 Iterator(); 67 Iterator();
@@ -286,52 +280,48 @@ class AddressBook : public QObject
286 Shows gui independend error messages. 280 Shows gui independend error messages.
287 */ 281 */
288 void error( const QString& ); 282 void error( const QString& );
289 283
290 /** 284 /**
291 Query all resources to clean up their lock files 285 Query all resources to clean up their lock files
292 */ 286 */
293 void cleanUp(); 287 void cleanUp();
294 288
295 signals: 289 signals:
296 /** 290 /**
297 Emitted, when the address book has changed on disk. 291 Emitted, when the address book has changed on disk.
298 */ 292 */
299 void addressBookChanged( AddressBook * ); 293 void addressBookChanged( AddressBook * );
300 294
301 /** 295 /**
302 Emitted, when the address book has been locked for writing. 296 Emitted, when the address book has been locked for writing.
303 */ 297 */
304 void addressBookLocked( AddressBook * ); 298 void addressBookLocked( AddressBook * );
305 299
306 /** 300 /**
307 Emitted, when the address book has been unlocked. 301 Emitted, when the address book has been unlocked.
308 */ 302 */
309 void addressBookUnlocked( AddressBook * ); 303 void addressBookUnlocked( AddressBook * );
310 304
311 protected: 305 protected:
312 void deleteRemovedAddressees(); 306 void deleteRemovedAddressees();
313 void setStandardResource( Resource * ); 307 void setStandardResource( Resource * );
314 Resource *standardResource(); 308 Resource *standardResource();
315 KRES::Manager<Resource> *resourceManager(); 309 KRES::Manager<Resource> *resourceManager();
316 310
317 private: 311 private:
318#ifndef KAB_EMBEDDED 312//US QPtrList<Resource> mDummy; // Remove in KDE 4
319 QPtrList<Resource> mDummy; // Remove in KDE 4
320#endif //KAB_EMBEDDED
321 313
322#ifdef KAB_EMBEDDED
323//US optimization 314//US optimization
324 void init(const QString &config); 315 void init(const QString &config);
325#endif //KAB_EMBEDDED
326 316
327 317
328 struct AddressBookData; 318 struct AddressBookData;
329 AddressBookData *d; 319 AddressBookData *d;
330}; 320};
331 321
332QDataStream &operator<<( QDataStream &, const AddressBook & ); 322QDataStream &operator<<( QDataStream &, const AddressBook & );
333QDataStream &operator>>( QDataStream &, AddressBook & ); 323QDataStream &operator>>( QDataStream &, AddressBook & );
334 324
335} 325}
336 326
337#endif 327#endif