author | ulf69 <ulf69> | 2004-06-29 06:43:11 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-29 06:43:11 (UTC) |
commit | 627489ea2669d3997676bc3cee0f5d0d0c16c4d4 (patch) (unidiff) | |
tree | 022c32ccbb485458dc3c8887388aa4c5aa1eae59 /kabc | |
parent | 2d5b376ae1329d82d1ce1947b972b30866abff9b (diff) | |
download | kdepimpi-627489ea2669d3997676bc3cee0f5d0d0c16c4d4.zip kdepimpi-627489ea2669d3997676bc3cee0f5d0d0c16c4d4.tar.gz kdepimpi-627489ea2669d3997676bc3cee0f5d0d0c16c4d4.tar.bz2 |
*** empty log message ***
-rw-r--r-- | kabc/formatfactory.cpp | 2 | ||||
-rw-r--r-- | kabc/formatplugin.h | 5 | ||||
-rw-r--r-- | kabc/kabcE.pro | 2 | ||||
-rw-r--r-- | kabc/stdaddressbook.cpp | 6 |
4 files changed, 9 insertions, 6 deletions
diff --git a/kabc/formatfactory.cpp b/kabc/formatfactory.cpp index f107ebf..f2f03c6 100644 --- a/kabc/formatfactory.cpp +++ b/kabc/formatfactory.cpp | |||
@@ -33,18 +33,16 @@ | |||
33 | 33 | ||
34 | using namespace KABC; | 34 | using namespace KABC; |
35 | 35 | ||
36 | FormatFactory *FormatFactory::mSelf = 0; | 36 | FormatFactory *FormatFactory::mSelf = 0; |
37 | static KStaticDeleter<FormatFactory> factoryDeleter; | 37 | static KStaticDeleter<FormatFactory> factoryDeleter; |
38 | 38 | ||
39 | FormatFactory *FormatFactory::self() | 39 | FormatFactory *FormatFactory::self() |
40 | { | 40 | { |
41 | kdDebug(5700) << "FormatFactory::self()" << endl; | ||
42 | |||
43 | if ( !mSelf ) { | 41 | if ( !mSelf ) { |
44 | //US factoryDeleter.setObject( mSelf, new FormatFactory ); | 42 | //US factoryDeleter.setObject( mSelf, new FormatFactory ); |
45 | mSelf = factoryDeleter.setObject( new FormatFactory ); | 43 | mSelf = factoryDeleter.setObject( new FormatFactory ); |
46 | } | 44 | } |
47 | return mSelf; | 45 | return mSelf; |
48 | } | 46 | } |
49 | 47 | ||
50 | FormatFactory::FormatFactory() | 48 | FormatFactory::FormatFactory() |
diff --git a/kabc/formatplugin.h b/kabc/formatplugin.h index d784daf..40a6922 100644 --- a/kabc/formatplugin.h +++ b/kabc/formatplugin.h | |||
@@ -25,34 +25,33 @@ Copyright (c) 2004 Ulf Schenk | |||
25 | $Id$ | 25 | $Id$ |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef KABC_FORMATPLUGIN_H | 28 | #ifndef KABC_FORMATPLUGIN_H |
29 | #define KABC_FORMATPLUGIN_H | 29 | #define KABC_FORMATPLUGIN_H |
30 | 30 | ||
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | 32 | ||
33 | //US #include "plugin.h" | 33 | #include "plugin.h" |
34 | #include "resource.h" | 34 | #include "resource.h" |
35 | 35 | ||
36 | namespace KABC { | 36 | namespace KABC { |
37 | 37 | ||
38 | class AddressBook; | 38 | class AddressBook; |
39 | class Addressee; | 39 | class Addressee; |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * @short Base class for address book formats. | 42 | * @short Base class for address book formats. |
43 | * | 43 | * |
44 | * This class provides an abstract interface for ResourceFile and | 44 | * This class provides an abstract interface for ResourceFile and |
45 | * ResourceDir formats. | 45 | * ResourceDir formats. |
46 | * | 46 | * |
47 | * @internal | 47 | * @internal |
48 | */ | 48 | */ |
49 | //US class FormatPlugin : public Plugin | 49 | class FormatPlugin : public Plugin |
50 | class FormatPlugin | ||
51 | { | 50 | { |
52 | public: | 51 | public: |
53 | 52 | ||
54 | /** | 53 | /** |
55 | * Load single addressee from file. | 54 | * Load single addressee from file. |
56 | */ | 55 | */ |
57 | virtual bool load( Addressee &, QFile *file ) = 0; | 56 | virtual bool load( Addressee &, QFile *file ) = 0; |
58 | 57 | ||
diff --git a/kabc/kabcE.pro b/kabc/kabcE.pro index 6a3bbf1..840afb9 100644 --- a/kabc/kabcE.pro +++ b/kabc/kabcE.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | TARGET = microkabc | 3 | TARGET = microkabc |
4 | 4 | ||
5 | 5 | ||
6 | INCLUDEPATH += . ./vcard/include ./vcard/include/generated ../microkde ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../qtcompat | 6 | INCLUDEPATH += . ./vcard/include ./vcard/include/generated ../microkde ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../qtcompat $(QPEDIR)/include |
7 | OBJECTS_DIR = obj/$(PLATFORM) | 7 | OBJECTS_DIR = obj/$(PLATFORM) |
8 | MOC_DIR = moc/$(PLATFORM) | 8 | MOC_DIR = moc/$(PLATFORM) |
9 | DESTDIR = $(QPEDIR)/lib | 9 | DESTDIR = $(QPEDIR)/lib |
10 | LIBS += -lmicrokde | 10 | LIBS += -lmicrokde |
11 | #LIBS += -lldap | 11 | #LIBS += -lldap |
12 | LIBS += -L$(QPEDIR)/lib | 12 | LIBS += -L$(QPEDIR)/lib |
13 | DEFINES += KAB_EMBEDDED | 13 | DEFINES += KAB_EMBEDDED |
14 | 14 | ||
diff --git a/kabc/stdaddressbook.cpp b/kabc/stdaddressbook.cpp index 8faaaef..144a9dc 100644 --- a/kabc/stdaddressbook.cpp +++ b/kabc/stdaddressbook.cpp | |||
@@ -28,16 +28,22 @@ $Id$ | |||
28 | /*US | 28 | /*US |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | 30 | ||
31 | #include <kapplication.h> | 31 | #include <kapplication.h> |
32 | #include <kcrash.h> | 32 | #include <kcrash.h> |
33 | #include <ksimpleconfig.h> | 33 | #include <ksimpleconfig.h> |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #ifndef DESKTOP_VERSION | ||
37 | #include <qpe/global.h> | ||
38 | #else | ||
39 | #include <qdir.h> | ||
40 | #endif | ||
41 | |||
36 | #include "resource.h" | 42 | #include "resource.h" |
37 | #include <kresources/manager.h> | 43 | #include <kresources/manager.h> |
38 | #include <kdebug.h> | 44 | #include <kdebug.h> |
39 | #include <klocale.h> | 45 | #include <klocale.h> |
40 | #include <kstaticdeleter.h> | 46 | #include <kstaticdeleter.h> |
41 | #include <kstandarddirs.h> | 47 | #include <kstandarddirs.h> |
42 | 48 | ||
43 | #include "stdaddressbook.h" | 49 | #include "stdaddressbook.h" |