author | ulf69 <ulf69> | 2004-06-29 05:32:00 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-29 05:32:00 (UTC) |
commit | ed68714fca68286417778f0f5378b9f65d4acaa3 (patch) (unidiff) | |
tree | eced04ffbb16d2dcd19dfe07e5d83dd9794c4f4d /kabc/addressbook.cpp | |
parent | 32ccd8d1cd509afdccea7ce62406ad260a2e6f8f (diff) | |
download | kdepimpi-ed68714fca68286417778f0f5378b9f65d4acaa3.zip kdepimpi-ed68714fca68286417778f0f5378b9f65d4acaa3.tar.gz kdepimpi-ed68714fca68286417778f0f5378b9f65d4acaa3.tar.bz2 |
removed references to macro KAB_EMBEDDED
-rw-r--r-- | kabc/addressbook.cpp | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 203efc2..97bd3ef 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp | |||
@@ -26,5 +26,5 @@ $Id$ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef KAB_EMBEDDED | 28 | /*US |
29 | 29 | ||
30 | #include <qfile.h> | 30 | #include <qfile.h> |
@@ -37,8 +37,6 @@ $Id$ | |||
37 | 37 | ||
38 | #include "errorhandler.h" | 38 | #include "errorhandler.h" |
39 | 39 | */ | |
40 | #else //KAB_EMBEDDED | ||
41 | #include <qptrlist.h> | 40 | #include <qptrlist.h> |
42 | #endif //KAB_EMBEDDED | ||
43 | 41 | ||
44 | #include <kglobal.h> | 42 | #include <kglobal.h> |
@@ -48,7 +46,5 @@ $Id$ | |||
48 | #include "resource.h" | 46 | #include "resource.h" |
49 | 47 | ||
50 | #ifndef KAB_EMBEDDED | 48 | //US #include "addressbook.moc" |
51 | #include "addressbook.moc" | ||
52 | #endif //KAB_EMBEDDED | ||
53 | 49 | ||
54 | using namespace KABC; | 50 | using namespace KABC; |
@@ -61,7 +57,5 @@ struct AddressBook::AddressBookData | |||
61 | KConfig *mConfig; | 57 | KConfig *mConfig; |
62 | KRES::Manager<Resource> *mManager; | 58 | KRES::Manager<Resource> *mManager; |
63 | #ifndef KAB_EMBEDDED | 59 | //US ErrorHandler *mErrorHandler; |
64 | ErrorHandler *mErrorHandler; | ||
65 | #endif //KAB_EMBEDDED | ||
66 | }; | 60 | }; |
67 | 61 | ||
@@ -243,7 +237,5 @@ void AddressBook::init(const QString &config) | |||
243 | } | 237 | } |
244 | 238 | ||
245 | #ifndef KAB_EMBEDDED | 239 | //US d->mErrorHandler = 0; |
246 | d->mErrorHandler = 0; | ||
247 | #endif //KAB_EMBEDDED | ||
248 | d->mManager = new KRES::Manager<Resource>( "contact" ); | 240 | d->mManager = new KRES::Manager<Resource>( "contact" ); |
249 | d->mManager->readConfig( d->mConfig ); | 241 | d->mManager->readConfig( d->mConfig ); |
@@ -254,7 +246,5 @@ AddressBook::~AddressBook() | |||
254 | delete d->mConfig; d->mConfig = 0; | 246 | delete d->mConfig; d->mConfig = 0; |
255 | delete d->mManager; d->mManager = 0; | 247 | delete d->mManager; d->mManager = 0; |
256 | #ifndef KAB_EMBEDDED | 248 | //US delete d->mErrorHandler; d->mErrorHandler = 0; |
257 | delete d->mErrorHandler; d->mErrorHandler = 0; | ||
258 | #endif //KAB_EMBEDDED | ||
259 | delete d; d = 0; | 249 | delete d; d = 0; |
260 | } | 250 | } |
@@ -520,9 +510,6 @@ bool AddressBook::addCustomField( const QString &label, int category, | |||
520 | d->mAllFields = Field::allFields(); | 510 | d->mAllFields = Field::allFields(); |
521 | } | 511 | } |
522 | #ifndef KAB_EMBEDDED | 512 | //US QString a = app.isNull() ? KGlobal::instance()->instanceName() : app; |
523 | QString a = app.isNull() ? KGlobal::instance()->instanceName() : app; | ||
524 | #else //KAB_EMBEDDED | ||
525 | QString a = app.isNull() ? KGlobal::getAppName() : app; | 513 | QString a = app.isNull() ? KGlobal::getAppName() : app; |
526 | #endif //KAB_EMBEDDED | ||
527 | 514 | ||
528 | QString k = key.isNull() ? label : key; | 515 | QString k = key.isNull() ? label : key; |
@@ -594,5 +581,5 @@ QPtrList<Resource> AddressBook::resources() | |||
594 | } | 581 | } |
595 | 582 | ||
596 | #ifndef KAB_EMBEDDED | 583 | /*US |
597 | void AddressBook::setErrorHandler( ErrorHandler *handler ) | 584 | void AddressBook::setErrorHandler( ErrorHandler *handler ) |
598 | { | 585 | { |
@@ -600,9 +587,9 @@ void AddressBook::setErrorHandler( ErrorHandler *handler ) | |||
600 | d->mErrorHandler = handler; | 587 | d->mErrorHandler = handler; |
601 | } | 588 | } |
602 | #endif //KAB_EMBEDDED | 589 | */ |
603 | 590 | ||
604 | void AddressBook::error( const QString& msg ) | 591 | void AddressBook::error( const QString& msg ) |
605 | { | 592 | { |
606 | #ifndef KAB_EMBEDDED | 593 | /*US |
607 | if ( !d->mErrorHandler ) // create default error handler | 594 | if ( !d->mErrorHandler ) // create default error handler |
608 | d->mErrorHandler = new ConsoleErrorHandler; | 595 | d->mErrorHandler = new ConsoleErrorHandler; |
@@ -612,8 +599,7 @@ void AddressBook::error( const QString& msg ) | |||
612 | else | 599 | else |
613 | kdError(5700) << "no error handler defined" << endl; | 600 | kdError(5700) << "no error handler defined" << endl; |
614 | #else //KAB_EMBEDDED | 601 | */ |
615 | kdDebug(5700) << "msg" << endl; | 602 | kdDebug(5700) << "msg" << endl; |
616 | qDebug(msg); | 603 | qDebug(msg); |
617 | #endif //KAB_EMBEDDED | ||
618 | } | 604 | } |
619 | 605 | ||