-rw-r--r-- | Makefile | 24 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmanagerE.pro | 11 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmdoc.cpp | 2 |
3 files changed, 33 insertions, 4 deletions
@@ -38,24 +38,28 @@ SUBDIRS_LDAP_PLUGIN = \ | |||
38 | kabc/plugins/ldap | 38 | kabc/plugins/ldap |
39 | 39 | ||
40 | SUBDIRS_MICROMAIL = \ | 40 | SUBDIRS_MICROMAIL = \ |
41 | kmicromail/libetpan \ | 41 | kmicromail/libetpan \ |
42 | kmicromail/libmailwrapper \ | 42 | kmicromail/libmailwrapper \ |
43 | kmicromail | 43 | kmicromail |
44 | 44 | ||
45 | SUBDIRS_GAMMU = \ | 45 | SUBDIRS_GAMMU = \ |
46 | gammu/emb/common \ | 46 | gammu/emb/common \ |
47 | gammu/emb/gammu | 47 | gammu/emb/gammu |
48 | 48 | ||
49 | SUBDIRS_PWMANAGER = \ | 49 | SUBDIRS_PWMANAGER = \ |
50 | pwmanager/libcrypt/mpi \ | ||
51 | pwmanager/libcrypt/error \ | ||
52 | pwmanager/libcrypt/cipher \ | ||
53 | pwmanager/libcrypt/zlib \ | ||
50 | pwmanager/pwmanager | 54 | pwmanager/pwmanager |
51 | 55 | ||
52 | SUBDIRS = \ | 56 | SUBDIRS = \ |
53 | $(SUBDIRS_MICROKDE) \ | 57 | $(SUBDIRS_MICROKDE) \ |
54 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 58 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
55 | $(SUBDIRS_OPIE_PLUGIN) \ | 59 | $(SUBDIRS_OPIE_PLUGIN) \ |
56 | $(SUBDIRS_SHARP_PLUGIN) \ | 60 | $(SUBDIRS_SHARP_PLUGIN) \ |
57 | $(SUBDIRS_LDAP_PLUGIN) \ | 61 | $(SUBDIRS_LDAP_PLUGIN) \ |
58 | $(SUBDIRS_MICROMAIL) \ | 62 | $(SUBDIRS_MICROMAIL) \ |
59 | $(SUBDIRS_GAMMU) \ | 63 | $(SUBDIRS_GAMMU) \ |
60 | $(SUBDIRS_PWMANAGER) | 64 | $(SUBDIRS_PWMANAGER) |
61 | 65 | ||
@@ -195,27 +199,29 @@ variable_test: variable_info | |||
195 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) | 199 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) |
196 | endif | 200 | endif |
197 | ifdef BUILD_NO_PWMANAGER | 201 | ifdef BUILD_NO_PWMANAGER |
198 | @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) | 202 | @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) |
199 | endif | 203 | endif |
200 | @echo -------------------------------------- | 204 | @echo -------------------------------------- |
201 | 205 | ||
202 | 206 | ||
203 | objects: | 207 | objects: |
204 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 208 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
205 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 209 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
206 | mkdir -p libical/lib/$(PLATFORM) | 210 | mkdir -p libical/lib/$(PLATFORM) |
211 | mkdir -p pwmanager/libcrypt/$(PLATFORM) | ||
207 | 212 | ||
208 | clean: | 213 | clean: |
209 | rm -rf libical/lib/$(PLATFORM)/*; | 214 | rm -rf libical/lib/$(PLATFORM)/*; |
215 | rm -rf pwmanager/libcrypt/$(PLATFORM)/*; | ||
210 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 216 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
211 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 217 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
212 | done | 218 | done |
213 | 219 | ||
214 | install: | 220 | install: |
215 | 221 | ||
216 | cd bin/kdepim; make install | 222 | cd bin/kdepim; make install |
217 | cp -r Pim $(QPEDIR)/apps | 223 | cp -r Pim $(QPEDIR)/apps |
218 | cp db2file/db2file $(QPEDIR)/bin/db2file | 224 | cp db2file/db2file $(QPEDIR)/bin/db2file |
219 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 225 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
220 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 226 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
221 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop | 227 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop |
@@ -256,24 +262,28 @@ tmake: objects \ | |||
256 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 262 | kabc/plugins/dir/Makefile$(PLATFORM) \ |
257 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 263 | kabc/plugins/ldap/Makefile$(PLATFORM) \ |
258 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 264 | kabc/plugins/opie/Makefile$(PLATFORM) \ |
259 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | 265 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ |
260 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | 266 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ |
261 | kaddressbook/Makefile$(PLATFORM) \ | 267 | kaddressbook/Makefile$(PLATFORM) \ |
262 | kmicromail/Makefile$(PLATFORM) \ | 268 | kmicromail/Makefile$(PLATFORM) \ |
263 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 269 | kmicromail/libetpan/Makefile$(PLATFORM) \ |
264 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ | 270 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ |
265 | gammu/emb/common/Makefile$(PLATFORM) \ | 271 | gammu/emb/common/Makefile$(PLATFORM) \ |
266 | gammu/emb/gammu/Makefile$(PLATFORM) \ | 272 | gammu/emb/gammu/Makefile$(PLATFORM) \ |
267 | pwmanager/pwmanager/Makefile$(PLATFORM) \ | 273 | pwmanager/pwmanager/Makefile$(PLATFORM) \ |
274 | pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \ | ||
275 | pwmanager/libcrypt/error/Makefile$(PLATFORM) \ | ||
276 | pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \ | ||
277 | pwmanager/libcrypt/zlib/Makefile$(PLATFORM) | ||
268 | 278 | ||
269 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 279 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro |
270 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) | 280 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) |
271 | 281 | ||
272 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 282 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro |
273 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) | 283 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) |
274 | 284 | ||
275 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | 285 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro |
276 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) | 286 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) |
277 | 287 | ||
278 | 288 | ||
279 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | 289 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro |
@@ -327,12 +337,26 @@ kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | |||
327 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | 337 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro |
328 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) | 338 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) |
329 | 339 | ||
330 | gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro | 340 | gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro |
331 | cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) | 341 | cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) |
332 | 342 | ||
333 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro | 343 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro |
334 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) | 344 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) |
335 | 345 | ||
336 | pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro | 346 | pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro |
337 | cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) | 347 | cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) |
338 | 348 | ||
349 | |||
350 | pwmanager/libcrypt/mpi/Makefile$(PLATFORM): pwmanager/libcrypt/mpi/mpi.pro | ||
351 | cd pwmanager/libcrypt/mpi;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" mpi.pro -o Makefile$(PLATFORM) | ||
352 | |||
353 | pwmanager/libcrypt/error/Makefile$(PLATFORM): pwmanager/libcrypt/error/error.pro | ||
354 | cd pwmanager/libcrypt/error;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" error.pro -o Makefile$(PLATFORM) | ||
355 | |||
356 | pwmanager/libcrypt/cipher/Makefile$(PLATFORM): pwmanager/libcrypt/cipher/cipher.pro | ||
357 | cd pwmanager/libcrypt/cipher;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" cipher.pro -o Makefile$(PLATFORM) | ||
358 | |||
359 | pwmanager/libcrypt/zlib/Makefile$(PLATFORM): pwmanager/libcrypt/zlib/zlib.pro | ||
360 | cd pwmanager/libcrypt/zlib;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" zlib.pro -o Makefile$(PLATFORM) | ||
361 | |||
362 | |||
diff --git a/pwmanager/pwmanager/pwmanagerE.pro b/pwmanager/pwmanager/pwmanagerE.pro index 4c3a568..6aa0571 100644 --- a/pwmanager/pwmanager/pwmanagerE.pro +++ b/pwmanager/pwmanager/pwmanagerE.pro | |||
@@ -3,34 +3,39 @@ CONFIG += qt warn_on | |||
3 | 3 | ||
4 | 4 | ||
5 | TARGET = pwmpi | 5 | TARGET = pwmpi |
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 | INCLUDEPATH += . ../../ ../../qtcompat ../../qtcompat/xml ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils $(QPEDIR)/include | 10 | INCLUDEPATH += . ../../ ../../qtcompat ../../qtcompat/xml ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils $(QPEDIR)/include |
11 | DEFINES += PWM_EMBEDDED CONFIG_PWMANAGER_GCRY | 11 | DEFINES += PWM_EMBEDDED CONFIG_PWMANAGER_GCRY |
12 | 12 | ||
13 | #enable this setting if you want debugoutput for pwmanager | 13 | #enable this setting if you want debugoutput for pwmanager |
14 | #DEFINES += CONFIG_DEBUG | 14 | #DEFINES += CONFIG_DEBUG |
15 | 15 | LIBS += -L../libcrypt/$(PLATFORM) | |
16 | LIBS += -lmicrokde | 16 | LIBS += -lmicrokde |
17 | LIBS += -lmicroqtcompat | 17 | LIBS += -lmicroqtcompat |
18 | LIBS += -lmicrokdepim | 18 | LIBS += -lmicrokdepim |
19 | LIBS += -L$(QPEDIR)/lib | 19 | LIBS += -L$(QPEDIR)/lib |
20 | LIBS += -lqpe | 20 | LIBS += -lqpe |
21 | LIBS += -lz | 21 | LIBS += -lzlib |
22 | #LIBS += -lbz2 | 22 | #LIBS += -lbz2 |
23 | LIBS += -lgcrypt | 23 | #LIBS += -lkpmicrogcrypt |
24 | LIBS += -ljpeg | ||
24 | LIBS += $(QTOPIALIB) | 25 | LIBS += $(QTOPIALIB) |
26 | LIBS += -lkpmicrocipher | ||
27 | LIBS += -lkpmicroerror | ||
28 | LIBS += -lkpmicrompi | ||
29 | LIBS += -lstdc++ | ||
25 | 30 | ||
26 | #INTERFACES = \ | 31 | #INTERFACES = \ |
27 | #addentrywnd.ui \ | 32 | #addentrywnd.ui \ |
28 | #configwnd.ui \ | 33 | #configwnd.ui \ |
29 | #findwnd.ui \ | 34 | #findwnd.ui \ |
30 | #getmasterpwwnd.ui \ | 35 | #getmasterpwwnd.ui \ |
31 | #pwgenwnd.ui \ | 36 | #pwgenwnd.ui \ |
32 | #setmasterpwwnd.ui \ | 37 | #setmasterpwwnd.ui \ |
33 | #subtbledit.ui | 38 | #subtbledit.ui |
34 | 39 | ||
35 | #INTERFACES = \ | 40 | #INTERFACES = \ |
36 | #subtbledit.ui \ | 41 | #subtbledit.ui \ |
diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp index f4a1636..e29e3d1 100644 --- a/pwmanager/pwmanager/pwmdoc.cpp +++ b/pwmanager/pwmanager/pwmdoc.cpp | |||
@@ -337,25 +337,25 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file) | |||
337 | QString savedFilename(filename); | 337 | QString savedFilename(filename); |
338 | 338 | ||
339 | if (!file) { | 339 | if (!file) { |
340 | if (filename == "") | 340 | if (filename == "") |
341 | return e_filename; | 341 | return e_filename; |
342 | if (isDeepLocked()) { | 342 | if (isDeepLocked()) { |
343 | /* We don't need to save any data. | 343 | /* We don't need to save any data. |
344 | * It's already all on disk, because | 344 | * It's already all on disk, because |
345 | * we are deeplocked. | 345 | * we are deeplocked. |
346 | */ | 346 | */ |
347 | unsetDocStatFlag(DOC_STAT_DISK_DIRTY); | 347 | unsetDocStatFlag(DOC_STAT_DISK_DIRTY); |
348 | ret = e_success; | 348 | ret = e_success; |
349 | goto out; | 349 | return ret; |
350 | } | 350 | } |
351 | } else { | 351 | } else { |
352 | if (*file == "" && filename == "") | 352 | if (*file == "" && filename == "") |
353 | return e_filename; | 353 | return e_filename; |
354 | if (*file != "") | 354 | if (*file != "") |
355 | filename = *file; | 355 | filename = *file; |
356 | } | 356 | } |
357 | 357 | ||
358 | wasDeepLocked = isDeepLocked(); | 358 | wasDeepLocked = isDeepLocked(); |
359 | if (wasDeepLocked) { | 359 | if (wasDeepLocked) { |
360 | /* We are deeplocked. That means all data is already | 360 | /* We are deeplocked. That means all data is already |
361 | * on disk. BUT we need to do saving procedure, | 361 | * on disk. BUT we need to do saving procedure, |