author | ulf69 <ulf69> | 2004-06-29 05:31:09 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-29 05:31:09 (UTC) |
commit | 32ccd8d1cd509afdccea7ce62406ad260a2e6f8f (patch) (unidiff) | |
tree | 16bd3a22045aa4bc88df481207c57d69a0292eef | |
parent | a027e7c5a476dbc101431ab8bf7987ba5d44d969 (diff) | |
download | kdepimpi-32ccd8d1cd509afdccea7ce62406ad260a2e6f8f.zip kdepimpi-32ccd8d1cd509afdccea7ce62406ad260a2e6f8f.tar.gz kdepimpi-32ccd8d1cd509afdccea7ce62406ad260a2e6f8f.tar.bz2 |
removed references to KAB_EMBEDDED macro
-rw-r--r-- | kabc/addressbook.h | 12 |
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 | |||
@@ -1,89 +1,83 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
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 | /* |
22 | Enhanced Version of the file for platform independent KDE tools. | 22 | Enhanced Version of the file for platform independent KDE tools. |
23 | Copyright (c) 2004 Ulf Schenk | 23 | Copyright (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 | ||
45 | namespace KABC { | 39 | namespace KABC { |
46 | 40 | ||
47 | class ErrorHandler; | 41 | class ErrorHandler; |
48 | class Resource; | 42 | class Resource; |
49 | class Ticket; | 43 | class 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 | */ |
56 | class AddressBook : public QObject | 50 | class 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(); |
74 | Iterator( const Iterator & ); | 68 | Iterator( const Iterator & ); |
75 | ~Iterator(); | 69 | ~Iterator(); |
76 | 70 | ||
77 | Iterator &operator=( const Iterator & ); | 71 | Iterator &operator=( const Iterator & ); |
78 | const Addressee &operator*() const; | 72 | const Addressee &operator*() const; |
79 | Addressee &operator*(); | 73 | Addressee &operator*(); |
80 | Addressee* operator->(); | 74 | Addressee* operator->(); |
81 | Iterator &operator++(); | 75 | Iterator &operator++(); |
82 | Iterator &operator++(int); | 76 | Iterator &operator++(int); |
83 | Iterator &operator--(); | 77 | Iterator &operator--(); |
84 | Iterator &operator--(int); | 78 | Iterator &operator--(int); |
85 | bool operator==( const Iterator &it ); | 79 | bool operator==( const Iterator &it ); |
86 | bool operator!=( const Iterator &it ); | 80 | bool operator!=( const Iterator &it ); |
87 | 81 | ||
88 | struct IteratorData; | 82 | struct IteratorData; |
89 | IteratorData *d; | 83 | IteratorData *d; |
@@ -270,68 +264,64 @@ class AddressBook : public QObject | |||
270 | Remove address book resource. | 264 | Remove address book resource. |
271 | */ | 265 | */ |
272 | bool removeResource( Resource * ); | 266 | bool removeResource( Resource * ); |
273 | 267 | ||
274 | /** | 268 | /** |
275 | Return pointer list of all resources. | 269 | Return pointer list of all resources. |
276 | */ | 270 | */ |
277 | QPtrList<Resource> resources(); | 271 | QPtrList<Resource> resources(); |
278 | 272 | ||
279 | /** | 273 | /** |
280 | Set the @p ErrorHandler, that is used by @ref error() to | 274 | Set the @p ErrorHandler, that is used by @ref error() to |
281 | provide gui-independend error messages. | 275 | provide gui-independend error messages. |
282 | */ | 276 | */ |
283 | void setErrorHandler( ErrorHandler * ); | 277 | void setErrorHandler( ErrorHandler * ); |
284 | 278 | ||
285 | /** | 279 | /** |
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 | ||
332 | QDataStream &operator<<( QDataStream &, const AddressBook & ); | 322 | QDataStream &operator<<( QDataStream &, const AddressBook & ); |
333 | QDataStream &operator>>( QDataStream &, AddressBook & ); | 323 | QDataStream &operator>>( QDataStream &, AddressBook & ); |
334 | 324 | ||
335 | } | 325 | } |
336 | 326 | ||
337 | #endif | 327 | #endif |