author | ulf69 <ulf69> | 2004-07-14 14:52:15 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-14 14:52:15 (UTC) |
commit | cf7175c9a6b96cd11fb7f3cba459f5223aa4aacb (patch) (unidiff) | |
tree | e14057a10fba52a7b2881f5bacb0d266e415bd83 | |
parent | 80b35ebb50cac5007c074a4900f518f48f704eac (diff) | |
download | kdepimpi-cf7175c9a6b96cd11fb7f3cba459f5223aa4aacb.zip kdepimpi-cf7175c9a6b96cd11fb7f3cba459f5223aa4aacb.tar.gz kdepimpi-cf7175c9a6b96cd11fb7f3cba459f5223aa4aacb.tar.bz2 |
added changes to support the kdirwatch implementation
-rw-r--r-- | kabc/distributionlist.cpp | 5 | ||||
-rw-r--r-- | kabc/distributionlist.h | 2 | ||||
-rw-r--r-- | kabc/kabc.pro | 2 | ||||
-rw-r--r-- | kabc/kabcE.pro | 2 | ||||
-rw-r--r-- | kabc/plugins/dir/dir.pro | 4 | ||||
-rw-r--r-- | kabc/plugins/dir/dirE.pro | 2 | ||||
-rw-r--r-- | kabc/plugins/dir/resourcedir.cpp | 9 | ||||
-rw-r--r-- | kabc/plugins/file/file.pro | 4 | ||||
-rw-r--r-- | kabc/plugins/file/fileE.pro | 2 | ||||
-rw-r--r-- | kabc/plugins/file/resourcefile.cpp | 14 | ||||
-rw-r--r-- | kabc/plugins/opie/opieE.pro | 2 | ||||
-rw-r--r-- | kaddressbook/kaddressbook.pro | 2 | ||||
-rw-r--r-- | kaddressbook/kaddressbookE.pro | 2 | ||||
-rw-r--r-- | microkde/microkde.pro | 7 | ||||
-rw-r--r-- | microkde/microkdeE.pro | 6 |
15 files changed, 27 insertions, 38 deletions
diff --git a/kabc/distributionlist.cpp b/kabc/distributionlist.cpp index 0735aba..1fb186e 100644 --- a/kabc/distributionlist.cpp +++ b/kabc/distributionlist.cpp | |||
@@ -261,31 +261,28 @@ bool DistributionListManager::save() | |||
261 | return true; | 261 | return true; |
262 | } | 262 | } |
263 | 263 | ||
264 | DistributionListWatcher* DistributionListWatcher::mSelf = 0; | 264 | DistributionListWatcher* DistributionListWatcher::mSelf = 0; |
265 | 265 | ||
266 | DistributionListWatcher::DistributionListWatcher() | 266 | DistributionListWatcher::DistributionListWatcher() |
267 | : QObject( 0, "DistributionListWatcher" ) | 267 | : QObject( 0, "DistributionListWatcher" ) |
268 | { | 268 | { |
269 | /*US | 269 | |
270 | mDirWatch = new KDirWatch; | 270 | mDirWatch = new KDirWatch; |
271 | mDirWatch->addFile( locateLocal( "data", "kabc/distlists" ) ); | 271 | mDirWatch->addFile( locateLocal( "data", "kabc/distlists" ) ); |
272 | 272 | ||
273 | connect( mDirWatch, SIGNAL( dirty( const QString& ) ), SIGNAL( changed() ) ); | 273 | connect( mDirWatch, SIGNAL( dirty( const QString& ) ), SIGNAL( changed() ) ); |
274 | mDirWatch->startScan(); | 274 | mDirWatch->startScan(); |
275 | */ | ||
276 | } | 275 | } |
277 | 276 | ||
278 | DistributionListWatcher::~DistributionListWatcher() | 277 | DistributionListWatcher::~DistributionListWatcher() |
279 | { | 278 | { |
280 | /*US | ||
281 | delete mDirWatch; | 279 | delete mDirWatch; |
282 | mDirWatch = 0; | 280 | mDirWatch = 0; |
283 | */ | ||
284 | } | 281 | } |
285 | 282 | ||
286 | DistributionListWatcher *DistributionListWatcher::self() | 283 | DistributionListWatcher *DistributionListWatcher::self() |
287 | { | 284 | { |
288 | if ( !mSelf ) | 285 | if ( !mSelf ) |
289 | mSelf = new DistributionListWatcher(); | 286 | mSelf = new DistributionListWatcher(); |
290 | 287 | ||
291 | return mSelf; | 288 | return mSelf; |
diff --git a/kabc/distributionlist.h b/kabc/distributionlist.h index 5f091b1..584f287 100644 --- a/kabc/distributionlist.h +++ b/kabc/distributionlist.h | |||
@@ -205,13 +205,13 @@ class DistributionListWatcher : public QObject | |||
205 | void changed(); | 205 | void changed(); |
206 | 206 | ||
207 | protected: | 207 | protected: |
208 | DistributionListWatcher(); | 208 | DistributionListWatcher(); |
209 | ~DistributionListWatcher(); | 209 | ~DistributionListWatcher(); |
210 | 210 | ||
211 | private: | 211 | private: |
212 | static DistributionListWatcher* mSelf; | 212 | static DistributionListWatcher* mSelf; |
213 | //US KDirWatch *mDirWatch; | 213 | KDirWatch *mDirWatch; |
214 | }; | 214 | }; |
215 | 215 | ||
216 | } | 216 | } |
217 | #endif | 217 | #endif |
diff --git a/kabc/kabc.pro b/kabc/kabc.pro index 4a8d73a..a8cd695 100644 --- a/kabc/kabc.pro +++ b/kabc/kabc.pro | |||
@@ -2,17 +2,17 @@ TEMPLATE = lib | |||
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | #release debug | 3 | #release debug |
4 | DESTDIR=../bin | 4 | DESTDIR=../bin |
5 | 5 | ||
6 | TARGET = microkabc | 6 | TARGET = microkabc |
7 | 7 | ||
8 | include( ../variables.pri ) | 8 | include( ../variables.pri ) |
9 | 9 | ||
10 | INCLUDEPATH += . ./vcard/include ./vcard/include/generated ../microkde ../microkde/kdecore ../microkde/kio/kfile ../qtcompat ../microkde/kdeui | 10 | INCLUDEPATH += . ./vcard/include ./vcard/include/generated ../microkde ../microkde/kdecore ../microkde/kio/kfile ../microkde/kio/kio ../qtcompat ../microkde/kdeui |
11 | 11 | ||
12 | #LIBS += -lmicrokde -lldap | 12 | #LIBS += -lmicrokde -lldap |
13 | LIBS += -L$(QPEDIR)/lib | 13 | LIBS += -L$(QPEDIR)/lib |
14 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION | 14 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION |
15 | unix : { | 15 | unix : { |
16 | 16 | ||
17 | OBJECTS_DIR = obj/unix | 17 | OBJECTS_DIR = obj/unix |
18 | MOC_DIR = moc/unix | 18 | MOC_DIR = moc/unix |
diff --git a/kabc/kabcE.pro b/kabc/kabcE.pro index 840afb9..bc1c0ed 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 $(QPEDIR)/include | 6 | INCLUDEPATH += . ./vcard/include ./vcard/include/generated ../microkde ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../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/plugins/dir/dir.pro b/kabc/plugins/dir/dir.pro index 0023029..0555484 100644 --- a/kabc/plugins/dir/dir.pro +++ b/kabc/plugins/dir/dir.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | TARGET = microkabc_dir | 5 | TARGET = microkabc_dir |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | 6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat |
7 | DESTDIR = ../../../bin | 7 | DESTDIR = ../../../bin |
8 | #LIBS += -lmicrokde -lmicrokabc | 8 | #LIBS += -lmicrokde -lmicrokabc |
9 | #LIBS += -L$(QPEDIR)/lib | 9 | #LIBS += -L$(QPEDIR)/lib |
10 | 10 | ||
11 | INTERFACES = \ | 11 | INTERFACES = \ |
12 | 12 | ||
13 | HEADERS = \ | 13 | HEADERS = \ |
14 | resourcedir.h \ | 14 | resourcedir.h \ |
@@ -26,9 +26,9 @@ win32: { | |||
26 | CONFIG += dll | 26 | CONFIG += dll |
27 | DEFINES += _WIN32_ | 27 | DEFINES += _WIN32_ |
28 | OBJECTS_DIR = obj/win | 28 | OBJECTS_DIR = obj/win |
29 | MOC_DIR = moc/win | 29 | MOC_DIR = moc/win |
30 | LIBS += ../../../bin/microkdepim.lib | 30 | LIBS += ../../../bin/microkdepim.lib |
31 | LIBS += ../../../bin/microkcal.lib | 31 | LIBS += ../../../bin/microkcal.lib |
32 | LIBS += ../../../bin/microkde.lib | 32 | LIBS += ../../../bin/microkde.lib |
33 | LIBS += ../../../bin/microkabc.lib | 33 | LIBS += ../../../bin/microkabc.lib |
34 | } \ No newline at end of file | 34 | } |
diff --git a/kabc/plugins/dir/dirE.pro b/kabc/plugins/dir/dirE.pro index aceb28a..729f4ce 100644 --- a/kabc/plugins/dir/dirE.pro +++ b/kabc/plugins/dir/dirE.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | TARGET = microkabc_dir | 5 | TARGET = microkabc_dir |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | 6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat |
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 -lmicrokabc | 10 | LIBS += -lmicrokde -lmicrokabc |
11 | LIBS += -L$(QPEDIR)/lib | 11 | LIBS += -L$(QPEDIR)/lib |
12 | 12 | ||
13 | INTERFACES = \ | 13 | INTERFACES = \ |
14 | 14 | ||
diff --git a/kabc/plugins/dir/resourcedir.cpp b/kabc/plugins/dir/resourcedir.cpp index 3cb5179..7825c6f 100644 --- a/kabc/plugins/dir/resourcedir.cpp +++ b/kabc/plugins/dir/resourcedir.cpp | |||
@@ -107,21 +107,19 @@ ResourceDir::ResourceDir( const KConfig *config ) | |||
107 | if (mFormatName == "vcard") | 107 | if (mFormatName == "vcard") |
108 | mFormat = new VCardFormatPlugin2(); | 108 | mFormat = new VCardFormatPlugin2(); |
109 | else if (mFormatName == "binary") | 109 | else if (mFormatName == "binary") |
110 | mFormat = new BinaryFormat(); | 110 | mFormat = new BinaryFormat(); |
111 | else | 111 | else |
112 | qDebug("ResourceFile::init format unknown !!! %s ", mFormatName.latin1()); | 112 | qDebug("ResourceFile::init format unknown !!! %s ", mFormatName.latin1()); |
113 | */ | 113 | */ |
114 | 114 | ||
115 | /*US we have no KDirWatch. SO simulate the signals from inside the apropriate methods | ||
116 | connect( &mDirWatch, SIGNAL( dirty(const QString&) ), SLOT( pathChanged() ) ); | 115 | connect( &mDirWatch, SIGNAL( dirty(const QString&) ), SLOT( pathChanged() ) ); |
117 | connect( &mDirWatch, SIGNAL( created(const QString&) ), SLOT( pathChanged() ) ); | 116 | connect( &mDirWatch, SIGNAL( created(const QString&) ), SLOT( pathChanged() ) ); |
118 | connect( &mDirWatch, SIGNAL( deleted(const QString&) ), SLOT( pathChanged() ) ); | 117 | connect( &mDirWatch, SIGNAL( deleted(const QString&) ), SLOT( pathChanged() ) ); |
119 | */ | ||
120 | 118 | ||
121 | setPath( path ); | 119 | setPath( path ); |
122 | } | 120 | } |
123 | 121 | ||
124 | ResourceDir::~ResourceDir() | 122 | ResourceDir::~ResourceDir() |
125 | { | 123 | { |
126 | delete mFormat; | 124 | delete mFormat; |
127 | mFormat = 0; | 125 | mFormat = 0; |
@@ -293,29 +291,26 @@ void ResourceDir::unlock( const QString &path ) | |||
293 | 291 | ||
294 | ::unlink( QFile::encodeName( lockName ) ); | 292 | ::unlink( QFile::encodeName( lockName ) ); |
295 | QFile::remove( mLockUniqueName ); | 293 | QFile::remove( mLockUniqueName ); |
296 | addressBook()->emitAddressBookUnlocked(); | 294 | addressBook()->emitAddressBookUnlocked(); |
297 | } | 295 | } |
298 | 296 | ||
299 | void ResourceDir::setPath( const QString &path ) | 297 | void ResourceDir::setPath( const QString &path ) |
300 | { | 298 | { |
301 | /*US ToDo: no synchronization so far. Has to be changed in the future | ||
302 | mDirWatch.stopScan(); | 299 | mDirWatch.stopScan(); |
303 | mDirWatch.removeDir( mPath ); | 300 | mDirWatch.removeDir( mPath ); |
304 | */ | 301 | |
305 | mPath = path; | 302 | mPath = path; |
306 | 303 | ||
307 | /*US ToDo: no synchronization so far. Has to be changed in the future | ||
308 | mDirWatch.addDir( mPath, true ); | 304 | mDirWatch.addDir( mPath, true ); |
309 | mDirWatch.startScan(); | 305 | mDirWatch.startScan(); |
310 | */ | ||
311 | 306 | ||
312 | //US simulate KDirWatch event | 307 | //US simulate KDirWatch event |
313 | pathChanged(); | 308 | //US pathChanged(); |
314 | 309 | ||
315 | } | 310 | } |
316 | 311 | ||
317 | QString ResourceDir::path() const | 312 | QString ResourceDir::path() const |
318 | { | 313 | { |
319 | return mPath; | 314 | return mPath; |
320 | } | 315 | } |
321 | 316 | ||
diff --git a/kabc/plugins/file/file.pro b/kabc/plugins/file/file.pro index 7cf7c58..32555a2 100644 --- a/kabc/plugins/file/file.pro +++ b/kabc/plugins/file/file.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | TARGET = microkabc_file | 5 | TARGET = microkabc_file |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | 6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat |
7 | 7 | ||
8 | DESTDIR = ../../../bin | 8 | DESTDIR = ../../../bin |
9 | #LIBS += -lmicrokde -lmicrokabc | 9 | #LIBS += -lmicrokde -lmicrokabc |
10 | #LIBS += -L$(QPEDIR)/lib | 10 | #LIBS += -L$(QPEDIR)/lib |
11 | 11 | ||
12 | INTERFACES = \ | 12 | INTERFACES = \ |
13 | 13 | ||
14 | HEADERS = \ | 14 | HEADERS = \ |
@@ -27,9 +27,9 @@ win32: { | |||
27 | CONFIG += dll | 27 | CONFIG += dll |
28 | DEFINES += _WIN32_ | 28 | DEFINES += _WIN32_ |
29 | OBJECTS_DIR = obj/win | 29 | OBJECTS_DIR = obj/win |
30 | MOC_DIR = moc/win | 30 | MOC_DIR = moc/win |
31 | LIBS += ../../../bin/microkdepim.lib | 31 | LIBS += ../../../bin/microkdepim.lib |
32 | LIBS += ../../../bin/microkcal.lib | 32 | LIBS += ../../../bin/microkcal.lib |
33 | LIBS += ../../../bin/microkde.lib | 33 | LIBS += ../../../bin/microkde.lib |
34 | LIBS += ../../../bin/microkabc.lib | 34 | LIBS += ../../../bin/microkabc.lib |
35 | } \ No newline at end of file | 35 | } |
diff --git a/kabc/plugins/file/fileE.pro b/kabc/plugins/file/fileE.pro index 2d17a8f..d19a26d 100644 --- a/kabc/plugins/file/fileE.pro +++ b/kabc/plugins/file/fileE.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | TARGET = microkabc_file | 5 | TARGET = microkabc_file |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | 6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat |
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 -lmicrokabc | 10 | LIBS += -lmicrokde -lmicrokabc |
11 | LIBS += -L$(QPEDIR)/lib | 11 | LIBS += -L$(QPEDIR)/lib |
12 | 12 | ||
13 | INTERFACES = \ | 13 | INTERFACES = \ |
14 | 14 | ||
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index 2d20706..9f9b00f 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp | |||
@@ -44,20 +44,16 @@ $Id$ | |||
44 | #include <kstandarddirs.h> | 44 | #include <kstandarddirs.h> |
45 | 45 | ||
46 | #include "formatfactory.h" | 46 | #include "formatfactory.h" |
47 | 47 | ||
48 | #include "resource.h" | 48 | #include "resource.h" |
49 | #include "resourcefileconfig.h" | 49 | #include "resourcefileconfig.h" |
50 | #include "stdaddressbook.h" | 50 | #include "stdaddressbook.h" |
51 | 51 | ||
52 | //US #include "../../formats/vcardformatplugin2.h" | ||
53 | //US #include "../../formats/binaryformat.h" | ||
54 | |||
55 | |||
56 | #include "resourcefile.h" | 52 | #include "resourcefile.h" |
57 | 53 | ||
58 | using namespace KABC; | 54 | using namespace KABC; |
59 | 55 | ||
60 | extern "C" | 56 | extern "C" |
61 | #ifdef _WIN32_ | 57 | #ifdef _WIN32_ |
62 | __declspec(dllexport) | 58 | __declspec(dllexport) |
63 | #else | 59 | #else |
@@ -121,21 +117,19 @@ void ResourceFile::init( const QString &fileName, const QString &formatName ) | |||
121 | else if (mFormatName == "binary") { | 117 | else if (mFormatName == "binary") { |
122 | mFormat = new BinaryFormat(); | 118 | mFormat = new BinaryFormat(); |
123 | // qDebug("ResourceFile::init format BinaryFormat"); | 119 | // qDebug("ResourceFile::init format BinaryFormat"); |
124 | } | 120 | } |
125 | else | 121 | else |
126 | qDebug("ResourceFile::init format unknown !!! %s ", formatName.latin1()); | 122 | qDebug("ResourceFile::init format unknown !!! %s ", formatName.latin1()); |
127 | */ | 123 | */ |
128 | 124 | ||
129 | /*US we have no KDirWatch. SO simulate the signals from inside the apropriate methods | ||
130 | connect( &mDirWatch, SIGNAL( dirty(const QString&) ), SLOT( fileChanged() ) ); | 125 | connect( &mDirWatch, SIGNAL( dirty(const QString&) ), SLOT( fileChanged() ) ); |
131 | connect( &mDirWatch, SIGNAL( created(const QString&) ), SLOT( fileChanged() ) ); | 126 | connect( &mDirWatch, SIGNAL( created(const QString&) ), SLOT( fileChanged() ) ); |
132 | connect( &mDirWatch, SIGNAL( deleted(const QString&) ), SLOT( fileChanged() ) ); | 127 | connect( &mDirWatch, SIGNAL( deleted(const QString&) ), SLOT( fileChanged() ) ); |
133 | */ | ||
134 | 128 | ||
135 | setFileName( fileName ); | 129 | setFileName( fileName ); |
136 | } | 130 | } |
137 | 131 | ||
138 | ResourceFile::~ResourceFile() | 132 | ResourceFile::~ResourceFile() |
139 | { | 133 | { |
140 | delete mFormat; | 134 | delete mFormat; |
141 | mFormat = 0; | 135 | mFormat = 0; |
@@ -321,29 +315,27 @@ void ResourceFile::unlock( const QString &fileName ) | |||
321 | 315 | ||
322 | QFile::remove( lockName ); | 316 | QFile::remove( lockName ); |
323 | QFile::remove( mLockUniqueName ); | 317 | QFile::remove( mLockUniqueName ); |
324 | addressBook()->emitAddressBookUnlocked(); | 318 | addressBook()->emitAddressBookUnlocked(); |
325 | } | 319 | } |
326 | 320 | ||
327 | void ResourceFile::setFileName( const QString &fileName ) | 321 | void ResourceFile::setFileName( const QString &fileName ) |
328 | { | 322 | { |
329 | /*US ToDo: no synchronization so far. Has to be changed in the future | ||
330 | mDirWatch.stopScan(); | 323 | mDirWatch.stopScan(); |
331 | mDirWatch.removeFile( mFileName ); | 324 | mDirWatch.removeFile( mFileName ); |
332 | */ | 325 | |
333 | mFileName = fileName; | 326 | mFileName = fileName; |
334 | 327 | ||
335 | 328 | ||
336 | /*US ToDo: no synchronization so far. Has to be changed in the future | ||
337 | mDirWatch.addFile( mFileName ); | 329 | mDirWatch.addFile( mFileName ); |
338 | mDirWatch.startScan(); | 330 | mDirWatch.startScan(); |
339 | */ | 331 | |
340 | //US simulate KDirWatch event | 332 | //US simulate KDirWatch event |
341 | fileChanged(); | 333 | //US fileChanged(); |
342 | } | 334 | } |
343 | 335 | ||
344 | QString ResourceFile::fileName() const | 336 | QString ResourceFile::fileName() const |
345 | { | 337 | { |
346 | return mFileName; | 338 | return mFileName; |
347 | } | 339 | } |
348 | 340 | ||
349 | void ResourceFile::setFormat( const QString &format ) | 341 | void ResourceFile::setFormat( const QString &format ) |
diff --git a/kabc/plugins/opie/opieE.pro b/kabc/plugins/opie/opieE.pro index 75a5dab..4048cc0 100644 --- a/kabc/plugins/opie/opieE.pro +++ b/kabc/plugins/opie/opieE.pro | |||
@@ -1,14 +1,14 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | #release debug | 3 | #release debug |
4 | TARGET = microkabc_opie | 4 | TARGET = microkabc_opie |
5 | 5 | ||
6 | INCLUDEPATH += ../.. ../../converter/opie ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat $(QPEDIR)/include $(OPIEDIR)/include | 6 | INCLUDEPATH += ../.. ../../converter/opie ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat $(QPEDIR)/include $(OPIEDIR)/include |
7 | 7 | ||
8 | 8 | ||
9 | OBJECTS_DIR = obj/$(PLATFORM) | 9 | OBJECTS_DIR = obj/$(PLATFORM) |
10 | MOC_DIR = moc/$(PLATFORM) | 10 | MOC_DIR = moc/$(PLATFORM) |
11 | DESTDIR = $(QPEDIR)/lib | 11 | DESTDIR = $(QPEDIR)/lib |
12 | LIBS += -lmicrokde | 12 | LIBS += -lmicrokde |
13 | LIBS += -lmicrokabc | 13 | LIBS += -lmicrokabc |
14 | LIBS += -L$(QPEDIR)/lib | 14 | LIBS += -L$(QPEDIR)/lib |
diff --git a/kaddressbook/kaddressbook.pro b/kaddressbook/kaddressbook.pro index bc14e68..77fce1b 100644 --- a/kaddressbook/kaddressbook.pro +++ b/kaddressbook/kaddressbook.pro | |||
@@ -1,17 +1,17 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | CONFIG = qt warn_on | 2 | CONFIG = qt warn_on |
3 | TARGET = kapi | 3 | TARGET = kapi |
4 | DESTDIR= ../bin | 4 | DESTDIR= ../bin |
5 | 5 | ||
6 | include( ../variables.pri ) | 6 | include( ../variables.pri ) |
7 | 7 | ||
8 | 8 | ||
9 | INCLUDEPATH += . ./details ./features ./kcmconfigs ./xxport ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kdeui ../kabc ../ interfaces | 9 | INCLUDEPATH += . ./details ./features ./kcmconfigs ./xxport ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../kabc ../ interfaces |
10 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION | 10 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION |
11 | 11 | ||
12 | unix : { | 12 | unix : { |
13 | LIBS += ../bin/libmicrokdepim.so | 13 | LIBS += ../bin/libmicrokdepim.so |
14 | LIBS += ../bin/libmicrokde.so | 14 | LIBS += ../bin/libmicrokde.so |
15 | LIBS += ../bin/libmicrokabc.so | 15 | LIBS += ../bin/libmicrokabc.so |
16 | LIBS += ../bin/libmicrokcal.so | 16 | LIBS += ../bin/libmicrokcal.so |
17 | LIBS += -lldap | 17 | LIBS += -lldap |
diff --git a/kaddressbook/kaddressbookE.pro b/kaddressbook/kaddressbookE.pro index 9451f52..dc4a2f2 100644 --- a/kaddressbook/kaddressbookE.pro +++ b/kaddressbook/kaddressbookE.pro | |||
@@ -5,17 +5,17 @@ CONFIG += qt warn_on | |||
5 | TARGET = kapi | 5 | TARGET = kapi |
6 | OBJECTS_DIR = obj/$(PLATFORM) | 6 | OBJECTS_DIR = obj/$(PLATFORM) |
7 | MOC_DIR = moc/$(PLATFORM) | 7 | MOC_DIR = moc/$(PLATFORM) |
8 | DESTDIR=$(QPEDIR)/bin | 8 | DESTDIR=$(QPEDIR)/bin |
9 | 9 | ||
10 | #LFLAGS += -Wl,-export-dynamic | 10 | #LFLAGS += -Wl,-export-dynamic |
11 | 11 | ||
12 | 12 | ||
13 | INCLUDEPATH += . ./details ./features ./kcmconfigs ./xxport ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kdeui ../kabc ../qtcompat ../ interfaces $(QPEDIR)/include | 13 | INCLUDEPATH += . ./details ./features ./kcmconfigs ./xxport ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../kabc ../qtcompat ../ interfaces $(QPEDIR)/include |
14 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER | 14 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER |
15 | #DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOKABC KORG_NOARCHIVE KORG_NOMAIL | 15 | #DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOKABC KORG_NOARCHIVE KORG_NOMAIL |
16 | #DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER | 16 | #DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER |
17 | #DEFINES += KORG_NOLVALTERNATION | 17 | #DEFINES += KORG_NOLVALTERNATION |
18 | LIBS += -lmicrokdepim | 18 | LIBS += -lmicrokdepim |
19 | #LIBS += -lmicrokcal | 19 | #LIBS += -lmicrokcal |
20 | LIBS += -lmicrokde | 20 | LIBS += -lmicrokde |
21 | LIBS += -lmicrokcal | 21 | LIBS += -lmicrokcal |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 05833a9..4ebf53c 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -1,13 +1,13 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | #INCLUDEPATH += $(QTDIR)/include . | 3 | #INCLUDEPATH += $(QTDIR)/include . |
4 | #DEPENDPATH += $(QTDIR)/include | 4 | #DEPENDPATH += $(QTDIR)/include |
5 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile | 5 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio |
6 | #LIBS += -lqtcompat | 6 | #LIBS += -lqtcompat |
7 | 7 | ||
8 | TARGET = microkde | 8 | TARGET = microkde |
9 | DESTDIR= ../bin | 9 | DESTDIR= ../bin |
10 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY | 10 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY |
11 | unix : { | 11 | unix : { |
12 | OBJECTS_DIR = obj/unix | 12 | OBJECTS_DIR = obj/unix |
13 | MOC_DIR = moc/unix | 13 | MOC_DIR = moc/unix |
@@ -65,16 +65,18 @@ KDGanttMinimizeSplitter.h \ | |||
65 | kdeui/klistbox.h \ | 65 | kdeui/klistbox.h \ |
66 | kdeui/klistview.h \ | 66 | kdeui/klistview.h \ |
67 | kdeui/kjanuswidget.h \ | 67 | kdeui/kjanuswidget.h \ |
68 | kdeui/kseparator.h \ | 68 | kdeui/kseparator.h \ |
69 | kdeui/knuminput.h \ | 69 | kdeui/knuminput.h \ |
70 | kdeui/knumvalidator.h \ | 70 | kdeui/knumvalidator.h \ |
71 | kdeui/ksqueezedtextlabel.h \ | 71 | kdeui/ksqueezedtextlabel.h \ |
72 | kio/job.h \ | 72 | kio/job.h \ |
73 | kio/kio/kdirwatch.h \ | ||
74 | kio/kio/kdirwatch_p.h \ | ||
73 | kio/kfile/kurlrequester.h \ | 75 | kio/kfile/kurlrequester.h \ |
74 | kresources/resource.h \ | 76 | kresources/resource.h \ |
75 | kresources/factory.h \ | 77 | kresources/factory.h \ |
76 | kresources/managerimpl.h \ | 78 | kresources/managerimpl.h \ |
77 | kresources/manager.h \ | 79 | kresources/manager.h \ |
78 | kresources/selectdialog.h \ | 80 | kresources/selectdialog.h \ |
79 | kresources/configpage.h \ | 81 | kresources/configpage.h \ |
80 | kresources/configwidget.h \ | 82 | kresources/configwidget.h \ |
@@ -141,16 +143,17 @@ KDGanttMinimizeSplitter.cpp \ | |||
141 | kdeui/kguiitem.cpp \ | 143 | kdeui/kguiitem.cpp \ |
142 | kdeui/kjanuswidget.cpp \ | 144 | kdeui/kjanuswidget.cpp \ |
143 | kdeui/klistbox.cpp \ | 145 | kdeui/klistbox.cpp \ |
144 | kdeui/klistview.cpp \ | 146 | kdeui/klistview.cpp \ |
145 | kdeui/knuminput.cpp \ | 147 | kdeui/knuminput.cpp \ |
146 | kdeui/knumvalidator.cpp \ | 148 | kdeui/knumvalidator.cpp \ |
147 | kdeui/kseparator.cpp \ | 149 | kdeui/kseparator.cpp \ |
148 | kdeui/ksqueezedtextlabel.cpp \ | 150 | kdeui/ksqueezedtextlabel.cpp \ |
151 | kio/kio/kdirwatch.cpp \ | ||
149 | kio/kfile/kurlrequester.cpp \ | 152 | kio/kfile/kurlrequester.cpp \ |
150 | kresources/configpage.cpp \ | 153 | kresources/configpage.cpp \ |
151 | kresources/configdialog.cpp \ | 154 | kresources/configdialog.cpp \ |
152 | kresources/configwidget.cpp \ | 155 | kresources/configwidget.cpp \ |
153 | kresources/factory.cpp \ | 156 | kresources/factory.cpp \ |
154 | kresources/kcmkresources.cpp \ | 157 | kresources/kcmkresources.cpp \ |
155 | kresources/managerimpl.cpp \ | 158 | kresources/managerimpl.cpp \ |
156 | kresources/resource.cpp \ | 159 | kresources/resource.cpp \ |
@@ -160,9 +163,9 @@ KDGanttMinimizeSplitter.cpp \ | |||
160 | kdeui/kactionclasses.cpp \ | 163 | kdeui/kactionclasses.cpp \ |
161 | kdeui/kactioncollection.cpp \ | 164 | kdeui/kactioncollection.cpp \ |
162 | kdeui/kmainwindow.cpp \ | 165 | kdeui/kmainwindow.cpp \ |
163 | kdeui/ktoolbar.cpp \ | 166 | kdeui/ktoolbar.cpp \ |
164 | kdeui/ktoolbarbutton.cpp \ | 167 | kdeui/ktoolbarbutton.cpp \ |
165 | kdeui/ktoolbarhandler.cpp \ | 168 | kdeui/ktoolbarhandler.cpp \ |
166 | kdeui/kstdaction.cpp \ | 169 | kdeui/kstdaction.cpp \ |
167 | kdeui/kxmlguiclient.cpp \ | 170 | kdeui/kxmlguiclient.cpp \ |
168 | kdecore/klibloader.cpp \ No newline at end of file | 171 | kdecore/klibloader.cpp |
diff --git a/microkde/microkdeE.pro b/microkde/microkdeE.pro index 4ee4dd7..ec2b1f7 100644 --- a/microkde/microkdeE.pro +++ b/microkde/microkdeE.pro | |||
@@ -1,11 +1,11 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | INCLUDEPATH += . ../qtcompat ../kabc ./kdecore ./kdeui ./kio/kfile $(QPEDIR)/include | 3 | INCLUDEPATH += . ../qtcompat ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio $(QPEDIR)/include |
4 | 4 | ||
5 | DEPENDPATH += $(QPEDIR)/include | 5 | DEPENDPATH += $(QPEDIR)/include |
6 | LIBS += -lmicroqtcompat -L$(QPEDIR)/lib | 6 | LIBS += -lmicroqtcompat -L$(QPEDIR)/lib |
7 | 7 | ||
8 | DEFINES += KDE_QT_ONLY | 8 | DEFINES += KDE_QT_ONLY |
9 | 9 | ||
10 | TARGET = microkde | 10 | TARGET = microkde |
11 | OBJECTS_DIR = obj/$(PLATFORM) | 11 | OBJECTS_DIR = obj/$(PLATFORM) |
@@ -25,17 +25,16 @@ KDGanttMinimizeSplitter.h \ | |||
25 | kcolorbutton.h \ | 25 | kcolorbutton.h \ |
26 | kcolordialog.h \ | 26 | kcolordialog.h \ |
27 | kcombobox.h \ | 27 | kcombobox.h \ |
28 | kconfig.h \ | 28 | kconfig.h \ |
29 | kdatetbl.h \ | 29 | kdatetbl.h \ |
30 | kdebug.h \ | 30 | kdebug.h \ |
31 | kdialog.h \ | 31 | kdialog.h \ |
32 | kdialogbase.h \ | 32 | kdialogbase.h \ |
33 | kdirwatch.h \ | ||
34 | keditlistbox.h \ | 33 | keditlistbox.h \ |
35 | kemailsettings.h \ | 34 | kemailsettings.h \ |
36 | kfiledialog.h \ | 35 | kfiledialog.h \ |
37 | kfontdialog.h \ | 36 | kfontdialog.h \ |
38 | kglobal.h \ | 37 | kglobal.h \ |
39 | kglobalsettings.h \ | 38 | kglobalsettings.h \ |
40 | kiconloader.h \ | 39 | kiconloader.h \ |
41 | klineedit.h \ | 40 | klineedit.h \ |
@@ -73,16 +72,18 @@ osmartpointer.h \ | |||
73 | kdeui/knuminput.h \ | 72 | kdeui/knuminput.h \ |
74 | kdeui/knumvalidator.h \ | 73 | kdeui/knumvalidator.h \ |
75 | kdeui/ksqueezedtextlabel.h \ | 74 | kdeui/ksqueezedtextlabel.h \ |
76 | kdeui/ktoolbar.h \ | 75 | kdeui/ktoolbar.h \ |
77 | kdeui/ktoolbarbutton.h \ | 76 | kdeui/ktoolbarbutton.h \ |
78 | kdeui/ktoolbarhandler.h \ | 77 | kdeui/ktoolbarhandler.h \ |
79 | kdeui/kxmlguiclient.h \ | 78 | kdeui/kxmlguiclient.h \ |
80 | kio/job.h \ | 79 | kio/job.h \ |
80 | kio/kio/kdirwatch.h \ | ||
81 | kio/kio/kdirwatch_p.h \ | ||
81 | kio/kfile/kurlrequester.h \ | 82 | kio/kfile/kurlrequester.h \ |
82 | kresources/resource.h \ | 83 | kresources/resource.h \ |
83 | kresources/factory.h \ | 84 | kresources/factory.h \ |
84 | kresources/managerimpl.h \ | 85 | kresources/managerimpl.h \ |
85 | kresources/manager.h \ | 86 | kresources/manager.h \ |
86 | kresources/selectdialog.h \ | 87 | kresources/selectdialog.h \ |
87 | kresources/configpage.h \ | 88 | kresources/configpage.h \ |
88 | kresources/configwidget.h \ | 89 | kresources/configwidget.h \ |
@@ -154,16 +155,17 @@ oprocess.cpp \ | |||
154 | kdeui/kseparator.cpp \ | 155 | kdeui/kseparator.cpp \ |
155 | kdeui/kstdaction.cpp \ | 156 | kdeui/kstdaction.cpp \ |
156 | kdeui/ksqueezedtextlabel.cpp \ | 157 | kdeui/ksqueezedtextlabel.cpp \ |
157 | kdeui/ktoolbar.cpp \ | 158 | kdeui/ktoolbar.cpp \ |
158 | kdeui/ktoolbarbutton.cpp \ | 159 | kdeui/ktoolbarbutton.cpp \ |
159 | kdeui/ktoolbarhandler.cpp \ | 160 | kdeui/ktoolbarhandler.cpp \ |
160 | kdeui/kxmlguiclient.cpp \ | 161 | kdeui/kxmlguiclient.cpp \ |
161 | kio/kfile/kurlrequester.cpp \ | 162 | kio/kfile/kurlrequester.cpp \ |
163 | kio/kio/kdirwatch.cpp \ | ||
162 | kresources/configpage.cpp \ | 164 | kresources/configpage.cpp \ |
163 | kresources/configdialog.cpp \ | 165 | kresources/configdialog.cpp \ |
164 | kresources/configwidget.cpp \ | 166 | kresources/configwidget.cpp \ |
165 | kresources/factory.cpp \ | 167 | kresources/factory.cpp \ |
166 | kresources/kcmkresources.cpp \ | 168 | kresources/kcmkresources.cpp \ |
167 | kresources/managerimpl.cpp \ | 169 | kresources/managerimpl.cpp \ |
168 | kresources/resource.cpp \ | 170 | kresources/resource.cpp \ |
169 | kresources/selectdialog.cpp \ | 171 | kresources/selectdialog.cpp \ |