summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile657
-rw-r--r--bin/kdepim/WhatsNew.txt9
-rw-r--r--db2file/db2filebin131264 -> 131704 bytes
-rw-r--r--db2file/zdbat_1.0.0-1_arm.ipkbin0 -> 37207 bytes
-rw-r--r--db2file/zdbat_1.0.0_src.tar.gzbin0 -> 7839 bytes
-rw-r--r--microkde/kresources/manager.h8
6 files changed, 379 insertions, 295 deletions
diff --git a/Makefile b/Makefile
index f80c6d4..467710f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,291 +1,368 @@
1############################################################################# 1export KDEPIMDIR = $(shell pwd)
2# Makefile for building: kdepim-desktop 2
3# Generated by qmake (1.07a) (Qt 3.3.3) on: Sat Jan 8 00:36:06 2005 3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version)
4# Project: kdepim-desktop.pro 4
5# Template: subdirs 5ifeq ($(PLATFORM) , zaurus)
6# Command: $(QMAKE) -o Makefile kdepim-desktop.pro 6 BUILD_NO_LDAP_PLUGIN=1
7############################################################################# 7endif
8 8
9 MAKEFILE =Makefile 9ifneq ($(PLATFORM) , zaurus)
10 QMAKE =qmake 10 BUILD_NO_SHARP_PLUGIN=1
11DEL_FILE = rm -f 11endif
12CHK_DIR_EXISTS= test -d 12
13MKDIR = mkdir -p 13#opie plugin is deprecated. The qtopia plugin handles the task from now on.
14INSTALL_FILE= 14BUILD_NO_OPIE_PLUGIN=1
15INSTALL_DIR = 15
16 SUBTARGETS = \ 16SUBDIRS_MICROKDE = \
17 sub-libical \ 17 libical/src/libical \
18 sub-libkcal \ 18 libical/src/libicalss \
19 sub-kabc \ 19 qtcompat \
20 sub-libkdepim \ 20 microkde \
21 sub-microkde \ 21 libkcal \
22 sub-korganizer \ 22 libkdepim \
23 sub-kaddressbook \ 23 kabc \
24 sub-kabc-plugins-file \ 24 kabc/formats/binary \
25 sub-kabc-plugins-dir \ 25 kabc/plugins/file \
26 sub-kabc-plugins-file \ 26 kabc/plugins/dir \
27 sub-kabc-plugins-qtopia \ 27 korganizer \
28 sub-gammu-emb-common \ 28 kalarmd \
29 sub-gammu-emb-gammu \ 29 kaddressbook
30 sub-kmicromail-libetpan \ 30
31 sub-kmicromail-libmailwrapper \ 31SUBDIRS_QTOPIA_PLUGIN = \
32 sub-kmicromail \ 32 kabc/plugins/qtopia
33 sub-pwmanager-libcrypt-cipher \ 33
34 sub-pwmanager-libcrypt-error \ 34SUBDIRS_OPIE_PLUGIN = \
35 sub-pwmanager-libcrypt-mpi \ 35 kabc/plugins/opie
36 sub-pwmanager-libcrypt-zlib \ 36
37 sub-pwmanager-pwmanager 37SUBDIRS_SHARP_PLUGIN = \
38 38 kabc/plugins/sharpdtm
39first: all 39
40 40SUBDIRS_LDAP_PLUGIN = \
41all: Makefile $(SUBTARGETS) 41 kabc/plugins/ldap
42 42
43libical/$(MAKEFILE): 43SUBDIRS_MICROMAIL = \
44 @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" 44 kmicromail/libetpan \
45 cd libical && $(QMAKE) libical.pro -o $(MAKEFILE) 45 kmicromail/libmailwrapper \
46sub-libical: libical/$(MAKEFILE) FORCE 46 kmicromail
47 cd libical && $(MAKE) -f $(MAKEFILE) 47
48 48SUBDIRS_GAMMU = \
49libkcal/$(MAKEFILE): 49 gammu/emb/common \
50 @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" 50 gammu/emb/gammu
51 cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE) 51
52sub-libkcal: libkcal/$(MAKEFILE) FORCE 52SUBDIRS_PWMANAGER = \
53 cd libkcal && $(MAKE) -f $(MAKEFILE) 53 pwmanager/libcrypt/mpi \
54 54 pwmanager/libcrypt/error \
55kabc/$(MAKEFILE): 55 pwmanager/libcrypt/cipher \
56 @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" 56 pwmanager/libcrypt/zlib \
57 cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE) 57 pwmanager/pwmanager
58sub-kabc: kabc/$(MAKEFILE) FORCE 58
59 cd kabc && $(MAKE) -f $(MAKEFILE) 59SUBDIRS = \
60 60 $(SUBDIRS_MICROKDE) \
61libkdepim/$(MAKEFILE): 61 $(SUBDIRS_QTOPIA_PLUGIN) \
62 @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim" 62 $(SUBDIRS_OPIE_PLUGIN) \
63 cd libkdepim && $(QMAKE) libkdepim.pro -o $(MAKEFILE) 63 $(SUBDIRS_SHARP_PLUGIN) \
64sub-libkdepim: libkdepim/$(MAKEFILE) FORCE 64 $(SUBDIRS_LDAP_PLUGIN) \
65 cd libkdepim && $(MAKE) -f $(MAKEFILE) 65 $(SUBDIRS_MICROMAIL) \
66 66 $(SUBDIRS_GAMMU) \
67microkde/$(MAKEFILE): 67 $(SUBDIRS_PWMANAGER)
68 @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" 68
69 cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE) 69
70sub-microkde: microkde/$(MAKEFILE) FORCE 70all: build_microkde \
71 cd microkde && $(MAKE) -f $(MAKEFILE) 71 build_qtopia_plugin \
72 72 build_opie_plugin \
73korganizer/$(MAKEFILE): 73 build_sharp_plugin \
74 @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer" 74 build_ldap_plugin \
75 cd korganizer && $(QMAKE) korganizer.pro -o $(MAKEFILE) 75 build_micromail \
76sub-korganizer: korganizer/$(MAKEFILE) FORCE 76 build_gammu \
77 cd korganizer && $(MAKE) -f $(MAKEFILE) 77 build_pwmanager
78 78
79kaddressbook/$(MAKEFILE): 79
80 @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook" 80build_microkde: variable_test tmake
81 cd kaddressbook && $(QMAKE) kaddressbook.pro -o $(MAKEFILE) 81 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \
82sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE 82 make -f Makefile$(PLATFORM) || exit 1; popd; \
83 cd kaddressbook && $(MAKE) -f $(MAKEFILE) 83 done
84 84
85kabc/plugins/file/$(MAKEFILE): 85build_qtopia_plugin: build_microkde
86 @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" 86 ifdef BUILD_NO_QTOPIA_PLUGIN
87 cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE) 87 @echo == qtopia plugin not build.
88sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE 88 else
89 cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) 89 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
90 90 make -f Makefile$(PLATFORM) || exit 1; popd; \
91kabc/plugins/dir/$(MAKEFILE): 91 done
92 @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir" 92 endif
93 cd kabc/plugins/dir && $(QMAKE) dir.pro -o $(MAKEFILE) 93
94sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE 94build_opie_plugin: build_microkde
95 cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE) 95 ifdef BUILD_NO_OPIE_PLUGIN
96 96 @echo == opie plugin not build.
97kabc/plugins/file/$(MAKEFILE): 97 else
98 @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" 98 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
99 cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE) 99 make -f Makefile$(PLATFORM) || exit 1; popd; \
100sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE 100 done
101 cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) 101 endif
102 102
103kabc/plugins/qtopia/$(MAKEFILE): 103build_sharp_plugin: build_microkde
104 @$(CHK_DIR_EXISTS) "kabc/plugins/qtopia" || $(MKDIR) "kabc/plugins/qtopia" 104 ifdef BUILD_NO_SHARP_PLUGIN
105 cd kabc/plugins/qtopia && $(QMAKE) qtopia.pro -o $(MAKEFILE) 105 @echo == ldap plugin not build.
106sub-kabc-plugins-qtopia: kabc/plugins/qtopia/$(MAKEFILE) FORCE 106 else
107 cd kabc/plugins/qtopia && $(MAKE) -f $(MAKEFILE) 107 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
108 108 make -f Makefile$(PLATFORM) || exit 1; popd; \
109gammu/emb/common/$(MAKEFILE): 109 done
110 @$(CHK_DIR_EXISTS) "gammu/emb/common" || $(MKDIR) "gammu/emb/common" 110 endif
111 cd gammu/emb/common && $(QMAKE) common.pro -o $(MAKEFILE) 111
112sub-gammu-emb-common: gammu/emb/common/$(MAKEFILE) FORCE 112build_ldap_plugin: build_microkde
113 cd gammu/emb/common && $(MAKE) -f $(MAKEFILE) 113 ifdef BUILD_NO_LDAP_PLUGIN
114 114 @echo == ldap plugin not build.
115gammu/emb/gammu/$(MAKEFILE): 115 else
116 @$(CHK_DIR_EXISTS) "gammu/emb/gammu" || $(MKDIR) "gammu/emb/gammu" 116 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
117 cd gammu/emb/gammu && $(QMAKE) gammu.pro -o $(MAKEFILE) 117 make -f Makefile$(PLATFORM) || exit 1; popd; \
118sub-gammu-emb-gammu: gammu/emb/gammu/$(MAKEFILE) FORCE 118 done
119 cd gammu/emb/gammu && $(MAKE) -f $(MAKEFILE) 119 endif
120 120
121kmicromail/libetpan/$(MAKEFILE): 121
122 @$(CHK_DIR_EXISTS) "kmicromail/libetpan" || $(MKDIR) "kmicromail/libetpan" 122build_micromail: build_microkde
123 cd kmicromail/libetpan && $(QMAKE) libetpan.pro -o $(MAKEFILE) 123 ifdef BUILD_NO_MICROMAIL
124sub-kmicromail-libetpan: kmicromail/libetpan/$(MAKEFILE) FORCE 124 @echo == kmicromail not build.
125 cd kmicromail/libetpan && $(MAKE) -f $(MAKEFILE) 125 else
126 126 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
127kmicromail/libmailwrapper/$(MAKEFILE): 127 make -f Makefile$(PLATFORM) || exit 1; popd; \
128 @$(CHK_DIR_EXISTS) "kmicromail/libmailwrapper" || $(MKDIR) "kmicromail/libmailwrapper" 128 done
129 cd kmicromail/libmailwrapper && $(QMAKE) libmailwrapper.pro -o $(MAKEFILE) 129 endif
130sub-kmicromail-libmailwrapper: kmicromail/libmailwrapper/$(MAKEFILE) FORCE 130
131 cd kmicromail/libmailwrapper && $(MAKE) -f $(MAKEFILE) 131build_gammu: variable_test tmake
132 132 ifdef BUILD_NO_GAMMU
133kmicromail/$(MAKEFILE): 133 @echo == gammu not build.
134 @$(CHK_DIR_EXISTS) "kmicromail" || $(MKDIR) "kmicromail" 134 else
135 cd kmicromail && $(QMAKE) kmicromail.pro -o $(MAKEFILE) 135 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
136sub-kmicromail: kmicromail/$(MAKEFILE) FORCE 136 make -f Makefile$(PLATFORM) || exit 1; popd; \
137 cd kmicromail && $(MAKE) -f $(MAKEFILE) 137 done
138 138 endif
139pwmanager/libcrypt/cipher/$(MAKEFILE): 139
140 @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/cipher" || $(MKDIR) "pwmanager/libcrypt/cipher" 140build_pwmanager: build_microkde
141 cd pwmanager/libcrypt/cipher && $(QMAKE) cipher.pro -o $(MAKEFILE) 141 ifdef BUILD_NO_PWMANAGER
142sub-pwmanager-libcrypt-cipher: pwmanager/libcrypt/cipher/$(MAKEFILE) FORCE 142 @echo == pwmanager not build.
143 cd pwmanager/libcrypt/cipher && $(MAKE) -f $(MAKEFILE) 143 else
144 144 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \
145pwmanager/libcrypt/error/$(MAKEFILE): 145 make -f Makefile$(PLATFORM) || exit 1; popd; \
146 @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/error" || $(MKDIR) "pwmanager/libcrypt/error" 146 done
147 cd pwmanager/libcrypt/error && $(QMAKE) error.pro -o $(MAKEFILE) 147 endif
148sub-pwmanager-libcrypt-error: pwmanager/libcrypt/error/$(MAKEFILE) FORCE 148
149 cd pwmanager/libcrypt/error && $(MAKE) -f $(MAKEFILE) 149
150 150variable_info:
151pwmanager/libcrypt/mpi/$(MAKEFILE): 151 @echo --------------------------------------
152 @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/mpi" || $(MKDIR) "pwmanager/libcrypt/mpi" 152 @echo KDEPIM buildsystem, variableinfo...
153 cd pwmanager/libcrypt/mpi && $(QMAKE) mpi.pro -o $(MAKEFILE) 153 @echo KDEPIMDIR=$(KDEPIMDIR)
154sub-pwmanager-libcrypt-mpi: pwmanager/libcrypt/mpi/$(MAKEFILE) FORCE 154 @echo QTDIR=$(QTDIR)
155 cd pwmanager/libcrypt/mpi && $(MAKE) -f $(MAKEFILE) 155 @echo QPEDIR=$(QPEDIR)
156 156 @echo OPIEDIR=$(OPIEDIR)
157pwmanager/libcrypt/zlib/$(MAKEFILE): 157 @echo PLATFORM=$(PLATFORM)
158 @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/zlib" || $(MKDIR) "pwmanager/libcrypt/zlib" 158 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
159 cd pwmanager/libcrypt/zlib && $(QMAKE) zlib.pro -o $(MAKEFILE) 159 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
160sub-pwmanager-libcrypt-zlib: pwmanager/libcrypt/zlib/$(MAKEFILE) FORCE 160 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
161 cd pwmanager/libcrypt/zlib && $(MAKE) -f $(MAKEFILE) 161 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
162 162 @echo BUILD_NO_QTOPIA_PLUGIN=$(BUILD_NO_QTOPIA_PLUGIN)
163pwmanager/pwmanager/$(MAKEFILE): 163 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
164 @$(CHK_DIR_EXISTS) "pwmanager/pwmanager" || $(MKDIR) "pwmanager/pwmanager" 164 ifndef BUILD_NO_SHARP_PLUGIN
165 cd pwmanager/pwmanager && $(QMAKE) pwmanager.pro -o $(MAKEFILE) 165 @echo SHARPDTMSDK=$(SHARPDTMSDK)
166sub-pwmanager-pwmanager: pwmanager/pwmanager/$(MAKEFILE) FORCE 166 endif
167 cd pwmanager/pwmanager && $(MAKE) -f $(MAKEFILE) 167 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
168 168 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER)
169Makefile: kdepim-desktop.pro /usr/lib/qt3/mkspecs/default/qmake.conf 169 @echo --------------------------------------
170 $(QMAKE) -o Makefile kdepim-desktop.pro 170
171qmake: qmake_all 171variable_test: variable_info
172 @$(QMAKE) -o Makefile kdepim-desktop.pro 172 @echo KDEPIM buildsystem, variablecheck...
173 173 ifndef KDEPIMDIR
174all: $(SUBTARGETS) 174 @echo KDEPIMDIR is not defined.
175qmake_all: libical/$(MAKEFILE) libkcal/$(MAKEFILE) kabc/$(MAKEFILE) libkdepim/$(MAKEFILE) microkde/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/qtopia/$(MAKEFILE) gammu/emb/common/$(MAKEFILE) gammu/emb/gammu/$(MAKEFILE) kmicromail/libetpan/$(MAKEFILE) kmicromail/libmailwrapper/$(MAKEFILE) kmicromail/$(MAKEFILE) pwmanager/libcrypt/cipher/$(MAKEFILE) pwmanager/libcrypt/error/$(MAKEFILE) pwmanager/libcrypt/mpi/$(MAKEFILE) pwmanager/libcrypt/zlib/$(MAKEFILE) pwmanager/pwmanager/$(MAKEFILE) 175 $(error KDEPIMDIR is not defined)
176 ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 176 endif
177 ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 177 ifndef PLATFORM
178 ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 178 @echo PLATFORM is not defined.
179 ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 179 $(error PLATFORM is not defined)
180 ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 180 endif
181 ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 181 ifdef BUILD_NO_LDAP_PLUGIN
182 ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 182 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
183 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 183 endif
184 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 184 ifdef BUILD_NO_OPIE_PLUGIN
185 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 185 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
186 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 186 endif
187 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 187 ifdef BUILD_NO_QTOPIA_PLUGIN
188 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 188 @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN)
189 ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 189 endif
190 ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 190 ifdef BUILD_NO_MICROMAIL
191 ( [ -d kmicromail ] && cd kmicromail ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 191 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
192 ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 192 endif
193 ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 193 ifdef BUILD_NO_SHARP_PLUGIN
194 ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 194 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
195 ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 195 else
196 ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true 196 ifndef SHARPDTMSDK
197clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE 197 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
198 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true 198 $(error SHARPDTMSDK is not defined)
199 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true 199 endif
200 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true 200 endif
201 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true 201 ifdef BUILD_NO_GAMMU
202 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true 202 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
203 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true 203 endif
204 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true 204 ifdef BUILD_NO_PWMANAGER
205 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true 205 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
206 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true 206 endif
207 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true 207 @echo --------------------------------------
208 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; ) || true 208
209 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; ) || true 209
210 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; ) || true 210objects:
211 ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) $@; ) || true 211 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
212 ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) $@; ) || true 212 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
213 ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) $@; ) || true 213 mkdir -p libical/lib/$(PLATFORM)
214 ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) $@; ) || true 214 mkdir -p pwmanager/libcrypt/$(PLATFORM)
215 ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) $@; ) || true 215
216 ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) $@; ) || true 216clean:
217 ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) $@; ) || true 217 rm -rf libical/lib/$(PLATFORM)/*;
218 ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) $@; ) || true 218 rm -rf pwmanager/libcrypt/$(PLATFORM)/*;
219uninstall_subdirs: qmake_all FORCE 219 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
220 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 220 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
221 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 221 done
222 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 222
223 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 223install:
224 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 224
225 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 225 cd bin/kdepim; make install
226 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 226 cp -r Pim $(QPEDIR)/apps
227 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 227 cp db2file/db2file $(QPEDIR)/bin/db2file
228 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 228 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
229 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 229 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
230 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 230 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
231 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 231 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
232 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 232
233 ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 233dist:
234 ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 234 @echo Dont forget to do "make install" before "make dist"
235 ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 235 rm -f *arm.ipk
236 ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 236 rm -f *~
237 ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 237 cd ..; tar czf kdepimpi-$(KDEPIM_VERSION).tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
238 ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 238 mkipks kmicrokdelibs.control
239 ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 239 mkipks korganizer.control
240 ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true 240 mkipks kaddressbook.control
241install_subdirs: qmake_all FORCE 241 ifndef BUILD_NO_MICROMAIL
242 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true 242 mkipks kopiemail.control
243 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true 243 endif
244 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true 244 ifndef BUILD_NO_SHARP_PLUGIN
245 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true 245 mkipks ksharpPIM-DTMaccess.control
246 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true 246 endif
247 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true 247 mkipks korganizer-alarm.control
248 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true 248 ifndef BUILD_NO_GAMMU
249 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true 249 mkipks kmobilephoneaccess.control
250 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true 250 endif
251 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true 251 ifndef BUILD_NO_PWMANAGER
252 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) install; ) || true 252 mkipks pwmanager.control
253 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) install; ) || true 253 endif
254 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) install; ) || true 254 mkipks pimTABicon.control
255 ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) install; ) || true 255
256 ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) install; ) || true 256tmake: objects \
257 ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) install; ) || true 257 qtcompat/Makefile$(PLATFORM) \
258 ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) install; ) || true 258 microkde/Makefile$(PLATFORM) \
259 ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) install; ) || true 259 libkcal/Makefile$(PLATFORM) \
260 ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) install; ) || true 260 libkdepim/Makefile$(PLATFORM) \
261 ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) install; ) || true 261 korganizer/Makefile$(PLATFORM) \
262 ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) install; ) || true 262 kalarmd/Makefile$(PLATFORM) \
263distclean: qmake_all FORCE 263 libical/src/libical/Makefile$(PLATFORM) \
264 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 264 libical/src/libicalss/Makefile$(PLATFORM) \
265 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 265 kabc/Makefile$(PLATFORM) \
266 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 266 kabc/formats/binary/Makefile$(PLATFORM) \
267 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 267 kabc/plugins/file/Makefile$(PLATFORM) \
268 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 268 kabc/plugins/dir/Makefile$(PLATFORM) \
269 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 269 kabc/plugins/ldap/Makefile$(PLATFORM) \
270 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 270 kabc/plugins/opie/Makefile$(PLATFORM) \
271 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 271 kabc/plugins/qtopia/Makefile$(PLATFORM) \
272 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 272 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
273 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 273 kaddressbook/Makefile$(PLATFORM) \
274 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 274 kmicromail/Makefile$(PLATFORM) \
275 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 275 kmicromail/libetpan/Makefile$(PLATFORM) \
276 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 276 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
277 ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 277 gammu/emb/common/Makefile$(PLATFORM) \
278 ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 278 gammu/emb/gammu/Makefile$(PLATFORM) \
279 ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 279 pwmanager/pwmanager/Makefile$(PLATFORM) \
280 ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 280 pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \
281 ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 281 pwmanager/libcrypt/error/Makefile$(PLATFORM) \
282 ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 282 pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \
283 ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 283 pwmanager/libcrypt/zlib/Makefile$(PLATFORM)
284 ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true 284
285 285qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
286install: install_subdirs 286 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
287 287
288uninstall: uninstall_subdirs 288microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
289 289 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
290FORCE: 290
291libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
292 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
293
294
295libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
296 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
297
298kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
299 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
300
301korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
302 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
303
304libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
305 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
306
307libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
308 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
309
310kabc/Makefile$(PLATFORM): kabc/kabcE.pro
311 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
312
313kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
314 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
315
316kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
317 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
318
319kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
320 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
321
322kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
323 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
324
325kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
326 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
327
328kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
329 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
330
331kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
332 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
333
334kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
335 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
336
337kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
338 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
339
340kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
341 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
342
343kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
344 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
345
346gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
347 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
348
349gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
350 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
351
352pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
353 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
354
355
356pwmanager/libcrypt/mpi/Makefile$(PLATFORM): pwmanager/libcrypt/mpi/mpi.pro
357 cd pwmanager/libcrypt/mpi;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" mpi.pro -o Makefile$(PLATFORM)
358
359pwmanager/libcrypt/error/Makefile$(PLATFORM): pwmanager/libcrypt/error/error.pro
360 cd pwmanager/libcrypt/error;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" error.pro -o Makefile$(PLATFORM)
361
362pwmanager/libcrypt/cipher/Makefile$(PLATFORM): pwmanager/libcrypt/cipher/cipher.pro
363 cd pwmanager/libcrypt/cipher;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" cipher.pro -o Makefile$(PLATFORM)
364
365pwmanager/libcrypt/zlib/Makefile$(PLATFORM): pwmanager/libcrypt/zlib/zlib.pro
366 cd pwmanager/libcrypt/zlib;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" zlib.pro -o Makefile$(PLATFORM)
367
291 368
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index c90f58e..a7d1b90 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,216 +1,225 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 1.9.16 ************ 3********** VERSION 1.9.16 ************
4 4
5KO/Pi: 5KO/Pi:
6Fixed search dialog size on Z 6000 (480x640 display). 6Fixed search dialog size on Z 6000 (480x640 display).
7Added setting to hide/show time in agenda items. 7Added setting to hide/show time in agenda items.
8Added setting to hide not running todos in todo view. 8Added setting to hide not running todos in todo view.
9Added columns for start date/time in todo view. 9Added columns for start date/time in todo view.
10Replaced the solid half-hour lines in agenda view by dot lines. 10Replaced the solid half-hour lines in agenda view by dot lines.
11Added possibility of printing the What's Next View on the desktop 11Added possibility of printing the What's Next View on the desktop
12(i.e. Windows and Linux). 12(i.e. Windows and Linux).
13Fixed a crash in KO/Pi when starting KO/Pi with What's Next view.
13 14
14Fixed a strange problem in KO/Pi alarm applet. 15Fixed a strange problem in KO/Pi alarm applet.
15Did not find the actual problem, 16Did not find the actual problem,
16such that now Qtopia reboots again if deinstalling the alarm applet. 17such that now Qtopia reboots again if deinstalling the alarm applet.
17But the alarm applet should work again. 18But the alarm applet should work again.
18 19
19KA/Pi: 20KA/Pi:
20Fixed the problem, that internal pictures were not saved. 21Fixed the problem, that internal pictures were not saved.
21 22
23Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes.
22 24
23Fixed some minor problems. (Like word wrap in help text windows). 25Fixed some minor problems. (Like word wrap in help text windows).
24 26
27Fixed a compiling problem in microkde/kresources.
28
29KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM.
30This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9)
31such that now syncing KO/Pi with Sharp DTM should work on the
32Zaurus C 3000 model.
33
25********** VERSION 1.9.15 ************ 34********** VERSION 1.9.15 ************
26 35
27Usebilty enhancements in KO/Pi: 36Usebilty enhancements in KO/Pi:
28When clicking on the date in a month view cell, the day view is shown. 37When clicking on the date in a month view cell, the day view is shown.
29Old behaviour was, that the "new event" dialog popped up. 38Old behaviour was, that the "new event" dialog popped up.
30 39
31Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). 40Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu).
32That means, you can restore the latest 41That means, you can restore the latest
33event/todo/journal you have deleted. 42event/todo/journal you have deleted.
34A journal is deleted, if you clear all the text of the journal. 43A journal is deleted, if you clear all the text of the journal.
35 44
36Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. 45Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14.
37 46
38KA/Pi starting in 480x640 resolution: 47KA/Pi starting in 480x640 resolution:
39Hide the filter action in toolbar 48Hide the filter action in toolbar
40and added icons for undo/delete/redo in toolbar. 49and added icons for undo/delete/redo in toolbar.
41 50
42Change in OM/Pi ViewMail dialog: 51Change in OM/Pi ViewMail dialog:
43When clicking on the "delete" icon the mail is deleted after confirmation as usual. 52When clicking on the "delete" icon the mail is deleted after confirmation as usual.
44But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). 53But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any).
45 54
46Fixed a crash when deleting mail-accounts in OM/Pi. 55Fixed a crash when deleting mail-accounts in OM/Pi.
47 56
48 57
49********** VERSION 1.9.14 ************ 58********** VERSION 1.9.14 ************
50 59
51Fixed some problems with the dialog sizes when switching 60Fixed some problems with the dialog sizes when switching
52portrait/landscape mode on 640x480 PDA display. 61portrait/landscape mode on 640x480 PDA display.
53 62
54Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. 63Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi.
55 64
56Fixed an ugly bug in KOpieMail: 65Fixed an ugly bug in KOpieMail:
57KOpieMail was not able to write files (mails) to MSDOS file system, 66KOpieMail was not able to write files (mails) to MSDOS file system,
58like on an usual preformatted SD card. That should work now. 67like on an usual preformatted SD card. That should work now.
59To save your mail data on the Sd card do the following: 68To save your mail data on the Sd card do the following:
60Create a dir on the SD card: 69Create a dir on the SD card:
61mkdir /mnt/card/localmail 70mkdir /mnt/card/localmail
62Go to your home dir: 71Go to your home dir:
63cd 72cd
64Go to kopiemail data storage dir: 73Go to kopiemail data storage dir:
65cd kdepim/apps/kopiemail 74cd kdepim/apps/kopiemail
66Create a symlink to the SD card: 75Create a symlink to the SD card:
67ls -s /mnt/card/localmail 76ls -s /mnt/card/localmail
68Now KOpieMail will store all mails on the SD card. 77Now KOpieMail will store all mails on the SD card.
69 78
70KO/Pi Monthview: 79KO/Pi Monthview:
71Now "Go to Today" selects the current month from day 1-end, 80Now "Go to Today" selects the current month from day 1-end,
72not the current date + some days. 81not the current date + some days.
73I.e. "Go to Today" shows now always 82I.e. "Go to Today" shows now always
74the current month with first day of month in the first row. 83the current month with first day of month in the first row.
75 84
76Added missing German translation. 85Added missing German translation.
77 86
78Fixed icons of executeable on Wintendo. 87Fixed icons of executeable on Wintendo.
79 88
80Added a "Show next Mail" button to the OM/Pi 89Added a "Show next Mail" button to the OM/Pi
81mail viewer such that the mail below the current mail 90mail viewer such that the mail below the current mail
82in the mail list view of the current folder 91in the mail list view of the current folder
83can be read with a single click. 92can be read with a single click.
84 93
85 94
86********** VERSION 1.9.13 ************ 95********** VERSION 1.9.13 ************
87 96
88Fixed nasty PwM/Pi file reading bug, when 97Fixed nasty PwM/Pi file reading bug, when
89the used hash algo of file is different then the global 98the used hash algo of file is different then the global
90hash algo. 99hash algo.
91 100
92Added KA/Pi support for opie mailit mailapplication. 101Added KA/Pi support for opie mailit mailapplication.
93 102
94Fixed some bugs in OM/Pi. 103Fixed some bugs in OM/Pi.
95Now character conversion tables are available for the Zaurus 104Now character conversion tables are available for the Zaurus
96to make OM/Pi working properly. 105to make OM/Pi working properly.
97To get the character conversion in OM/Pi working, please download 106To get the character conversion in OM/Pi working, please download
98at the sourceforge project site the package 107at the sourceforge project site the package
99sr-character-conversion_SharpROM_arm.ipk.zip 108sr-character-conversion_SharpROM_arm.ipk.zip
100(or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms) 109(or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms)
101from the section "general files for KDE/Pim" 110from the section "general files for KDE/Pim"
102Instructions how to install this package are in a ReadMe in this file. 111Instructions how to install this package are in a ReadMe in this file.
103 112
104 113
105Fixed the orientation change problem in KA/Pi when switching 114Fixed the orientation change problem in KA/Pi when switching
106portrait/landscape mode. 115portrait/landscape mode.
107 116
108French translation available for KA/Pi and OM/Pi. 117French translation available for KA/Pi and OM/Pi.
109 118
110Fixed some problems with categories in KO/Pi in DTM sync. 119Fixed some problems with categories in KO/Pi in DTM sync.
111 120
112Added selection dialog for export to phone in KA/Pi. 121Added selection dialog for export to phone in KA/Pi.
113 122
114If in KO/Pi is an attendee selected to add to a meeting and this 123If in KO/Pi is an attendee selected to add to a meeting and this
115attendee is already in the list of attendees, this person is not added 124attendee is already in the list of attendees, this person is not added
116again. 125again.
117 126
118Some menu cleanup in KA/Pi. 127Some menu cleanup in KA/Pi.
119 128
120********** VERSION 1.9.12 ************ 129********** VERSION 1.9.12 ************
121 130
122Fix for the bug in KO/Pi What's Next view of version 1.9.11. 131Fix for the bug in KO/Pi What's Next view of version 1.9.11.
123 132
124Bugfix: Licence file is now shown again. 133Bugfix: Licence file is now shown again.
125 134
126OM/Pi now supports Unicode (utf8 charset). 135OM/Pi now supports Unicode (utf8 charset).
127Fixed some bugs in OM/Pi. 136Fixed some bugs in OM/Pi.
128 137
129KA/Pi has more German translation. 138KA/Pi has more German translation.
130 139
131 140
132********** VERSION 1.9.11 ************ 141********** VERSION 1.9.11 ************
133 142
134Fixed several problems in PWM/Pi, like 143Fixed several problems in PWM/Pi, like
135asking the user, if unsaved changed are pending 144asking the user, if unsaved changed are pending
136when closing the app. 145when closing the app.
137And PwM/Pi handles now different texts for the 146And PwM/Pi handles now different texts for the
138fields Description, Username, Password, configurable per category. 147fields Description, Username, Password, configurable per category.
139 148
140Fixed a crash in KO/Pi , when importing/loading vcs files 149Fixed a crash in KO/Pi , when importing/loading vcs files
141which have an entry with an attendee with state: 150which have an entry with an attendee with state:
142NEEDS ACTION 151NEEDS ACTION
143 152
144Fixed some problems in the German translation of OM/Pi, 153Fixed some problems in the German translation of OM/Pi,
145which makes some dialogs not fitting on the screen 154which makes some dialogs not fitting on the screen
146of the Z 5500. 155of the Z 5500.
147 156
148Fixed Qtopia crash, when disabling/deinstalling 157Fixed Qtopia crash, when disabling/deinstalling
149KO/Pi alarm applet. 158KO/Pi alarm applet.
150 159
151Implemented direct KDE<->KA/Pi sync for KA/Pi running 160Implemented direct KDE<->KA/Pi sync for KA/Pi running
152on Linux desktop. 161on Linux desktop.
153 162
154Added feature "remove sync info" to sync menu. 163Added feature "remove sync info" to sync menu.
155 164
156Tweaked the KO/Pi What's next view a bit, added 165Tweaked the KO/Pi What's next view a bit, added
157setting to hide events that are done. 166setting to hide events that are done.
158 167
159Disabled "beam receive enabled" on startup to 168Disabled "beam receive enabled" on startup to
160avoid problems if Fastload is enabled. 169avoid problems if Fastload is enabled.
161Please set "beam receive enabled", 170Please set "beam receive enabled",
162if you want to receive data via IR. 171if you want to receive data via IR.
163 172
164Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running 173Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running
165on Linux desktop. 174on Linux desktop.
166 175
167Made in KA/Pi scrolling possible, if details view is selected. 176Made in KA/Pi scrolling possible, if details view is selected.
168(The keyboard focus is set automatically to the search line) 177(The keyboard focus is set automatically to the search line)
169 178
170Fixed a bug in DMT sync, that a new entry in DTM was added 179Fixed a bug in DMT sync, that a new entry in DTM was added
171on every sync to Kx/Pi. 180on every sync to Kx/Pi.
172 181
173Fixed missing writing of KA/Pi categories to DMT entries when syncing. 182Fixed missing writing of KA/Pi categories to DMT entries when syncing.
174 183
175Fixed a bug in DMT sync with todos created in KO/Pi containing 184Fixed a bug in DMT sync with todos created in KO/Pi containing
176non-latin1 characters. 185non-latin1 characters.
177 186
178Rearranged package contents of Sharp-ipks and made all 187Rearranged package contents of Sharp-ipks and made all
179packages installable on SD again. 188packages installable on SD again.
180 189
181Fixed the writing of addressbook data in DTM sync. 190Fixed the writing of addressbook data in DTM sync.
182Empty fields in KA/Pi were not removed. 191Empty fields in KA/Pi were not removed.
183 192
184Added better category handling in KA/Pi: 193Added better category handling in KA/Pi:
185Added item 194Added item
186Edit Categories and 195Edit Categories and
187Manage new categories 196Manage new categories
188to the settings menu. 197to the settings menu.
189Possible to configure a view to display categories. 198Possible to configure a view to display categories.
190 199
191Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu. 200Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu.
192 201
193Fixed displaying of "free" days and time in KO Monthview and Agendaview. 202Fixed displaying of "free" days and time in KO Monthview and Agendaview.
194 203
195... and many other bugfixes. 204... and many other bugfixes.
196 205
197********** VERSION 1.9.10 ************ 206********** VERSION 1.9.10 ************
198 207
199Many internal small bugfixes. 208Many internal small bugfixes.
200And fix of the "big" bug in KO/Pi, 209And fix of the "big" bug in KO/Pi,
201that after Syncing the appointments had an offset by several hours. 210that after Syncing the appointments had an offset by several hours.
202That was a problem with the internal timezone setting, 211That was a problem with the internal timezone setting,
203introduced by the changed timezone configuration settings. 212introduced by the changed timezone configuration settings.
204 213
205German translation for OM/Pi is now available. 214German translation for OM/Pi is now available.
206 215
207 216
208********** VERSION 1.9.9 ************ 217********** VERSION 1.9.9 ************
209 218
210KDE-Pim/Pi has a new Member! 219KDE-Pim/Pi has a new Member!
211It is called PWM/Pi (Passwordmanager/platform-independent) 220It is called PWM/Pi (Passwordmanager/platform-independent)
212and it is available for the Zaurus. 221and it is available for the Zaurus.
213It is planned, that it will be available later for Windows. 222It is planned, that it will be available later for Windows.
214(And for Linux, of course). 223(And for Linux, of course).
215It is a port of the Passwordmanager of KDE. 224It is a port of the Passwordmanager of KDE.
216It will need the MicroKDElibs to run. 225It will need the MicroKDElibs to run.
diff --git a/db2file/db2file b/db2file/db2file
index 6185930..c857319 100644
--- a/db2file/db2file
+++ b/db2file/db2file
Binary files differ
diff --git a/db2file/zdbat_1.0.0-1_arm.ipk b/db2file/zdbat_1.0.0-1_arm.ipk
new file mode 100644
index 0000000..0dd61e1
--- a/dev/null
+++ b/db2file/zdbat_1.0.0-1_arm.ipk
Binary files differ
diff --git a/db2file/zdbat_1.0.0_src.tar.gz b/db2file/zdbat_1.0.0_src.tar.gz
new file mode 100644
index 0000000..e722115
--- a/dev/null
+++ b/db2file/zdbat_1.0.0_src.tar.gz
Binary files differ
diff --git a/microkde/kresources/manager.h b/microkde/kresources/manager.h
index 0e6f838..69062da 100644
--- a/microkde/kresources/manager.h
+++ b/microkde/kresources/manager.h
@@ -54,287 +54,285 @@ class ManagerListener
54// TODO: 54// TODO:
55// The resource manager should provide some signals 55// The resource manager should provide some signals
56// to warn applications that resources have been added, 56// to warn applications that resources have been added,
57// removed or modified. 57// removed or modified.
58// 58//
59// The manager should also keep track of which (or at least 59// The manager should also keep track of which (or at least
60// how many) applications hve opened a resource, so that it 60// how many) applications hve opened a resource, so that it
61// is only closed if none of them is using it any more 61// is only closed if none of them is using it any more
62 62
63template<class T> 63template<class T>
64class Manager : private ManagerImplListener 64class Manager : private ManagerImplListener
65{ 65{
66 public: 66 public:
67 class Iterator 67 class Iterator
68 { 68 {
69 friend class Manager; 69 friend class Manager;
70 public: 70 public:
71 Iterator() {}; 71 Iterator() {};
72 Iterator( const Iterator &it ) { mIt = it.mIt; } 72 Iterator( const Iterator &it ) { mIt = it.mIt; }
73 73
74 T *operator*() { return static_cast<T *>( *mIt ); } 74 T *operator*() { return static_cast<T *>( *mIt ); }
75 Iterator &operator++() { mIt++; return *this; } 75 Iterator &operator++() { mIt++; return *this; }
76 Iterator &operator++(int) { mIt++; return *this; } 76 Iterator &operator++(int) { mIt++; return *this; }
77 Iterator &operator--() { mIt--; return *this; } 77 Iterator &operator--() { mIt--; return *this; }
78 Iterator &operator--(int) { mIt--; return *this; } 78 Iterator &operator--(int) { mIt--; return *this; }
79 bool operator==( const Iterator &it ) { return mIt == it.mIt; } 79 bool operator==( const Iterator &it ) { return mIt == it.mIt; }
80 bool operator!=( const Iterator &it ) { return mIt != it.mIt; } 80 bool operator!=( const Iterator &it ) { return mIt != it.mIt; }
81 81
82 private: 82 private:
83 Resource::List::Iterator mIt; 83 Resource::List::Iterator mIt;
84 }; 84 };
85 85
86 Iterator begin() 86 Iterator begin()
87 { 87 {
88 Iterator it; 88 Iterator it;
89 it.mIt = mImpl->resourceList()->begin(); 89 it.mIt = mImpl->resourceList()->begin();
90 return it; 90 return it;
91 } 91 }
92 92
93 Iterator end() 93 Iterator end()
94 { 94 {
95 Iterator it; 95 Iterator it;
96 it.mIt = mImpl->resourceList()->end(); 96 it.mIt = mImpl->resourceList()->end();
97 return it; 97 return it;
98 } 98 }
99 99
100 class ActiveIterator 100 class ActiveIterator
101 { 101 {
102 friend class Manager; 102 friend class Manager;
103 public: 103 public:
104 ActiveIterator() : mList( 0 ) {}; 104 ActiveIterator() : mList( 0 ) {};
105 ActiveIterator( const ActiveIterator &it ) 105 ActiveIterator( const ActiveIterator &it )
106 { 106 {
107 mIt = it.mIt; 107 mIt = it.mIt;
108 mList = it.mList; 108 mList = it.mList;
109 } 109 }
110 110
111 T *operator*() { return static_cast<T *>( *mIt ); } 111 T *operator*() { return static_cast<T *>( *mIt ); }
112 ActiveIterator &operator++() 112 ActiveIterator &operator++()
113 { 113 {
114 do { mIt++; } while ( checkActive() ); 114 do { mIt++; } while ( checkActive() );
115 return *this; 115 return *this;
116 } 116 }
117 ActiveIterator &operator++(int) 117 ActiveIterator &operator++(int)
118 { 118 {
119 do { mIt++; } while ( checkActive() ); 119 do { mIt++; } while ( checkActive() );
120 return *this; 120 return *this;
121 } 121 }
122 ActiveIterator &operator--() 122 ActiveIterator &operator--()
123 { 123 {
124 do { mIt--; } while ( checkActive() ); 124 do { mIt--; } while ( checkActive() );
125 return *this; 125 return *this;
126 } 126 }
127 ActiveIterator &operator--(int) 127 ActiveIterator &operator--(int)
128 { 128 {
129 do { mIt--; } while ( checkActive() ); 129 do { mIt--; } while ( checkActive() );
130 return *this; 130 return *this;
131 } 131 }
132 bool operator==( const ActiveIterator &it ) { return mIt == it.mIt; } 132 bool operator==( const ActiveIterator &it ) { return mIt == it.mIt; }
133 bool operator!=( const ActiveIterator &it ) { return mIt != it.mIt; } 133 bool operator!=( const ActiveIterator &it ) { return mIt != it.mIt; }
134 134
135 private: 135 private:
136 /** 136 /**
137 Check if iterator needs to be advanced once more. 137 Check if iterator needs to be advanced once more.
138 */ 138 */
139 bool checkActive() 139 bool checkActive()
140 { 140 {
141 if ( !mList || mIt == mList->end() ) return false; 141 if ( !mList || mIt == mList->end() ) return false;
142 return !(*mIt)->isActive(); 142 return !(*mIt)->isActive();
143 } 143 }
144 144
145 Resource::List::Iterator mIt; 145 Resource::List::Iterator mIt;
146 Resource::List *mList; 146 Resource::List *mList;
147 }; 147 };
148 148
149 ActiveIterator activeBegin() 149 ActiveIterator activeBegin()
150 { 150 {
151 ActiveIterator it; 151 ActiveIterator it;
152 it.mIt = mImpl->resourceList()->begin(); 152 it.mIt = mImpl->resourceList()->begin();
153 it.mList = mImpl->resourceList(); 153 it.mList = mImpl->resourceList();
154 if ( it.mIt != mImpl->resourceList()->end() ) { 154 if ( it.mIt != mImpl->resourceList()->end() ) {
155 if ( !(*it)->isActive() ) it++; 155 if ( !(*it)->isActive() ) it++;
156 } 156 }
157 return it; 157 return it;
158 } 158 }
159 159
160 ActiveIterator activeEnd() 160 ActiveIterator activeEnd()
161 { 161 {
162 ActiveIterator it; 162 ActiveIterator it;
163 it.mIt = mImpl->resourceList()->end(); 163 it.mIt = mImpl->resourceList()->end();
164 it.mList = mImpl->resourceList(); 164 it.mList = mImpl->resourceList();
165 return it; 165 return it;
166 } 166 }
167 167
168 bool isEmpty() const { return mImpl->resourceList()->isEmpty(); } 168 bool isEmpty() const { return mImpl->resourceList()->isEmpty(); }
169 169
170 Manager( const QString &family ) 170 Manager( const QString &family )
171 { 171 {
172 mFactory = Factory::self( family ); 172 mFactory = Factory::self( family );
173 // The managerimpl will use the same Factory object as the manager 173 // The managerimpl will use the same Factory object as the manager
174 // because of the Factory::self() pattern 174 // because of the Factory::self() pattern
175 mImpl = new ManagerImpl( family ); 175 mImpl = new ManagerImpl( family );
176 mImpl->setListener( this ); 176 mImpl->setListener( this );
177 177
178 mListeners = new QPtrList<ManagerListener<T> >; 178 mListeners = new QPtrList<ManagerListener<T> >;
179 } 179 }
180 180
181 virtual ~Manager() 181 virtual ~Manager()
182 { 182 {
183 mImpl->setListener( 0 ); 183 mImpl->setListener( 0 );
184 delete mListeners; 184 delete mListeners;
185 delete mImpl; 185 delete mImpl;
186 } 186 }
187 187
188 /** 188 /**
189 Recreate Resource objects from configuration file. If cfg is 0, read standard 189 Recreate Resource objects from configuration file. If cfg is 0, read standard
190 configuration file. 190 configuration file.
191 */ 191 */
192 void readConfig( KConfig *cfg = 0 ) 192 void readConfig( KConfig *cfg = 0 )
193 { 193 {
194 mImpl->readConfig( cfg ); 194 mImpl->readConfig( cfg );
195 } 195 }
196 196
197 /** 197 /**
198 Write configuration of Resource objects to configuration file. If cfg is 0, write 198 Write configuration of Resource objects to configuration file. If cfg is 0, write
199 to standard configuration file. 199 to standard configuration file.
200 */ 200 */
201 void writeConfig( KConfig *cfg = 0 ) 201 void writeConfig( KConfig *cfg = 0 )
202 { 202 {
203 mImpl->writeConfig( cfg ); 203 mImpl->writeConfig( cfg );
204 } 204 }
205 205
206 /** 206 /**
207 Add resource to manager. This passes ownership of the Resource object 207 Add resource to manager. This passes ownership of the Resource object
208 to the manager. 208 to the manager.
209 */ 209 */
210 void add( Resource *resource ) 210 void add( Resource *resource )
211 { 211 {
212 if ( resource ) mImpl->add( resource ); 212 if ( resource ) mImpl->add( resource );
213 } 213 }
214 214
215 void remove( Resource *resource ) 215 void remove( Resource *resource )
216 { 216 {
217 if ( resource ) mImpl->remove( resource ); 217 if ( resource ) mImpl->remove( resource );
218 } 218 }
219 219
220 T* standardResource() 220 T* standardResource()
221 { 221 {
222 return static_cast<T *>( mImpl->standardResource() ); 222 return static_cast<T *>( mImpl->standardResource() );
223 } 223 }
224 224
225 void setStandardResource( T *resource ) 225 void setStandardResource( T *resource )
226 { 226 {
227 if ( resource ) mImpl->setStandardResource( resource ); 227 if ( resource ) mImpl->setStandardResource( resource );
228 } 228 }
229 229
230 void setActive( Resource *resource, bool active ) 230 void setActive( Resource *resource, bool active )
231 { 231 {
232 if ( resource ) mImpl->setActive( resource, active ); 232 if ( resource ) mImpl->setActive( resource, active );
233 } 233 }
234 234
235 /** 235 /**
236 Returns a list of the names of the reources managed by the 236 Returns a list of the names of the reources managed by the
237 Manager for this family. 237 Manager for this family.
238 */ 238 */
239 QStringList resourceNames() const 239 QStringList resourceNames() const
240 { 240 {
241 return mImpl->resourceNames(); 241 return mImpl->resourceNames();
242 } 242 }
243 243
244 ConfigWidget *configWidget( const QString& type, QWidget *parent = 0 ) 244 ConfigWidget *configWidget( const QString& type, QWidget *parent = 0 )
245 { 245 {
246 return mFactory->resourceConfigWidget( type, parent ); 246 return mFactory->configWidget( type, parent );
247 } 247 }
248 248
249 /** 249 /**
250 Creates a new resource of type @param type, with default 250 Creates a new resource of type @param type, with default
251 settings. The resource is 251 settings. The resource is
252 not added to the manager, the application has to do that. 252 not added to the manager, the application has to do that.
253 Returns a pointer to a resource object or a null pointer 253 Returns a pointer to a resource object or a null pointer
254 if resource type doesn't exist. 254 if resource type doesn't exist.
255 255
256 @param type The type of the resource, one of those returned 256 @param type The type of the resource, one of those returned
257 by @ref resourceTypeNames() 257 by @ref resourceTypeNames()
258 */ 258 */
259 T *createResource( const QString& type ) 259 T *createResource( const QString& type )
260 { 260 {
261 return (T *)( mFactory->resource( type, 0 ) ); 261 return (T *)( mFactory->resource( type, 0 ) );
262 } 262 }
263 263
264 /** 264 /**
265 Returns a list of the names of all available resource types. 265 Returns a list of the names of all available resource types.
266 */ 266 */
267 QStringList resourceTypeNames() const 267 QStringList resourceTypeNames() const
268 { 268 {
269 return mFactory->typeNames(); 269 return mFactory->typeNames();
270 } 270 }
271 271
272 QStringList resourceTypeDescriptions() const 272 QStringList resourceTypeDescriptions() const
273 { 273 {
274 QStringList typeDescs; 274 QStringList typeDescs;
275 QStringList types = mFactory->typeNames(); 275 QStringList types = mFactory->typeNames();
276 276
277 for ( QStringList::ConstIterator it = types.begin(); it != types.end(); ++it ) { 277 for ( QStringList::ConstIterator it = types.begin(); it != types.end(); ++it ) {
278 QString desc = mFactory->typeName( *it ); 278 QString desc = mFactory->typeName( *it );
279 if ( !mFactory->typeDescription( *it ).isEmpty() ) 279 if ( !mFactory->typeDescription( *it ).isEmpty() )
280 desc += " (" + mFactory->typeDescription( *it ) + ")"; 280 desc += " (" + mFactory->typeDescription( *it ) + ")";
281 281
282 typeDescs.append( desc ); 282 typeDescs.append( desc );
283 } 283 }
284 284
285 return typeDescs; 285 return typeDescs;
286 } 286 }
287 287
288 void resourceChanged( T *resource ) 288 void resourceChanged( T *resource )
289 { 289 {
290 mImpl->resourceChanged( resource ); 290 mImpl->resourceChanged( resource );
291 } 291 }
292 292
293 void addListener( ManagerListener<T> *listener ) 293 void addListener( ManagerListener<T> *listener )
294 { 294 {
295 mListeners->append( listener ); 295 mListeners->append( listener );
296 } 296 }
297 297
298 void removeListener( ManagerListener<T> *listener ) 298 void removeListener( ManagerListener<T> *listener )
299 { 299 {
300 mListeners->remove( listener ); 300 mListeners->remove( listener );
301 } 301 }
302 302
303 virtual void resourceAdded( Resource *res ) 303 virtual void resourceAdded( Resource *res )
304 { 304 {
305 kdDebug(5650) << "Manager::resourceAdded " << res->resourceName() << endl;
306 T* resource = (T *)( res ); 305 T* resource = (T *)( res );
307 ManagerListener<T> *listener; 306 ManagerListener<T> *listener;
308 for ( listener = mListeners->first(); listener; listener = mListeners->next() ) 307 for ( listener = mListeners->first(); listener; listener = mListeners->next() )
309 listener->resourceAdded( resource ); 308 listener->resourceAdded( resource );
310 } 309 }
311 310
312 virtual void resourceModified( Resource *res ) 311 virtual void resourceModified( Resource *res )
313 { 312 {
314 kdDebug(5650) << "Manager::resourceModified " << res->resourceName() << endl; 313
315 T* resource = (T *)( res ); 314 T* resource = (T *)( res );
316 ManagerListener<T> *listener; 315 ManagerListener<T> *listener;
317 for ( listener = mListeners->first(); listener; listener = mListeners->next() ) 316 for ( listener = mListeners->first(); listener; listener = mListeners->next() )
318 listener->resourceModified( resource ); 317 listener->resourceModified( resource );
319 } 318 }
320 319
321 virtual void resourceDeleted( Resource *res ) 320 virtual void resourceDeleted( Resource *res )
322 { 321 {
323 kdDebug(5650) << "Manager::resourceDeleted " << res->resourceName() << endl; 322
324 T* resource = (T *)( res ); 323 T* resource = (T *)( res );
325 ManagerListener<T> *listener; 324 ManagerListener<T> *listener;
326 for ( listener = mListeners->first(); listener; listener = mListeners->next() ) { 325 for ( listener = mListeners->first(); listener; listener = mListeners->next() ) {
327 kdDebug(5650) << "Notifying a listener to Manager..." << endl;
328 listener->resourceDeleted( resource ); 326 listener->resourceDeleted( resource );
329 } 327 }
330 } 328 }
331 329
332 private: 330 private:
333 ManagerImpl *mImpl; 331 ManagerImpl *mImpl;
334 Factory *mFactory; 332 Factory *mFactory;
335 QPtrList<ManagerListener<T> > *mListeners; 333 QPtrList<ManagerListener<T> > *mListeners;
336}; 334};
337 335
338} 336}
339 337
340#endif 338#endif