summaryrefslogtreecommitdiffabout
path: root/kabc
authorulf69 <ulf69>2004-07-17 00:38:43 (UTC)
committer ulf69 <ulf69>2004-07-17 00:38:43 (UTC)
commit01570860c92be8977a1ba558ae7c5f15d4635851 (patch) (unidiff)
tree2f3fead3ad0d2b0185d032fb3982c32c4fa15904 /kabc
parent2439711b1ac7ee38269baff704293eb37a27f6c9 (diff)
downloadkdepimpi-01570860c92be8977a1ba558ae7c5f15d4635851.zip
kdepimpi-01570860c92be8977a1ba558ae7c5f15d4635851.tar.gz
kdepimpi-01570860c92be8977a1ba558ae7c5f15d4635851.tar.bz2
implementation of sharp import/export resourcehandling
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/sharpdtm/resourcesharpdtm.h10
-rw-r--r--kabc/plugins/sharpdtm/sharpdtmE.pro2
2 files changed, 6 insertions, 6 deletions
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.h b/kabc/plugins/sharpdtm/resourcesharpdtm.h
index 32d0be1..d2e2a52 100644
--- a/kabc/plugins/sharpdtm/resourcesharpdtm.h
+++ b/kabc/plugins/sharpdtm/resourcesharpdtm.h
@@ -31,25 +31,25 @@ $Id$
31 31
32#include <kconfig.h> 32#include <kconfig.h>
33#include <kdirwatch.h> 33#include <kdirwatch.h>
34 34
35#include <sys/types.h> 35#include <sys/types.h>
36 36
37#include "resource.h" 37#include "resource.h"
38 38
39 39
40namespace KABC { 40namespace KABC {
41 41
42class ResourceConfigWidget; 42class ResourceConfigWidget;
43class QtopiaConverter; 43class SharpDTMConverter;
44 44
45/** 45/**
46 @internal 46 @internal
47*/ 47*/
48class ResourceSharpDTM : public Resource 48class ResourceSharpDTM : public Resource
49{ 49{
50 Q_OBJECT 50 Q_OBJECT
51 51
52public: 52public:
53 53
54 /** 54 /**
55 Constructor. 55 Constructor.
@@ -74,25 +74,25 @@ public:
74 virtual void writeConfig( KConfig *cfg ); 74 virtual void writeConfig( KConfig *cfg );
75 75
76 /** 76 /**
77 * Tries to open the file and checks for the proper format. 77 * Tries to open the file and checks for the proper format.
78 * This method should be called before @ref load(). 78 * This method should be called before @ref load().
79 */ 79 */
80 virtual bool doOpen(); 80 virtual bool doOpen();
81 81
82 /** 82 /**
83 * Closes the file again. 83 * Closes the file again.
84 */ 84 */
85 virtual void doClose(); 85 virtual void doClose();
86 86
87 /** 87 /**
88 * Requests a save ticket, that is used by @ref save() 88 * Requests a save ticket, that is used by @ref save()
89 */ 89 */
90 virtual Ticket *requestSaveTicket(); 90 virtual Ticket *requestSaveTicket();
91 91
92 /** 92 /**
93 * Loads all addressees from file to the address book. 93 * Loads all addressees from file to the address book.
94 * Returns true if all addressees could be loaded otherwise false. 94 * Returns true if all addressees could be loaded otherwise false.
95 */ 95 */
96 virtual bool load(); 96 virtual bool load();
97 97
98 /** 98 /**
@@ -126,24 +126,24 @@ public:
126 virtual void cleanUp(); 126 virtual void cleanUp();
127 127
128protected slots: 128protected slots:
129 void fileChanged(); 129 void fileChanged();
130 130
131protected: 131protected:
132 void init( const QString &fileName ); 132 void init( const QString &fileName );
133 133
134 bool lock( const QString &fileName ); 134 bool lock( const QString &fileName );
135 void unlock( const QString &fileName ); 135 void unlock( const QString &fileName );
136 136
137private: 137private:
138 QtopiaConverter* mConverter; 138 SharpDTMConverter* mConverter;
139 139
140 QString mFileName; 140 QString mFileName;
141 141
142 QString mLockUniqueName; 142 QString mLockUniqueName;
143 143
144 KDirWatch mDirWatch; 144 KDirWatch mDirWatch;
145}; 145};
146 146
147} 147}
148 148
149#endif 149#endif
diff --git a/kabc/plugins/sharpdtm/sharpdtmE.pro b/kabc/plugins/sharpdtm/sharpdtmE.pro
index f29be2f..7c7a6d5 100644
--- a/kabc/plugins/sharpdtm/sharpdtmE.pro
+++ b/kabc/plugins/sharpdtm/sharpdtmE.pro
@@ -1,18 +1,18 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2CONFIG += qt warn_on 2CONFIG += qt warn_on
3#release debug 3#release debug
4TARGET = microkabc_sharpdtm 4TARGET = microkabc_sharpdtm
5 5
6INCLUDEPATH += ../.. ../../../external/sharpdtm/include ../../converter/qtopia ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat $(QPEDIR)/include 6INCLUDEPATH += ../.. ../../../external/sharpdtm/include ../../converter/sharpdtm ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat $(QPEDIR)/include
7 7
8 8
9OBJECTS_DIR = obj/$(PLATFORM) 9OBJECTS_DIR = obj/$(PLATFORM)
10MOC_DIR = moc/$(PLATFORM) 10MOC_DIR = moc/$(PLATFORM)
11DESTDIR = $(QPEDIR)/lib 11DESTDIR = $(QPEDIR)/lib
12LIBS += -lmicrokde 12LIBS += -lmicrokde
13LIBS += -lmicrokabc 13LIBS += -lmicrokabc
14LIBS += -L$(QPEDIR)/lib 14LIBS += -L$(QPEDIR)/lib
15LIBS += -lqpe 15LIBS += -lqpe
16LIBS += -lqte 16LIBS += -lqte
17LIBS += -lzdtm 17LIBS += -lzdtm
18LIBS += -lmicrokabc_sharpdtmconverter 18LIBS += -lmicrokabc_sharpdtmconverter