summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-08 22:22:02 (UTC)
committer zautrix <zautrix>2004-10-08 22:22:02 (UTC)
commit44169895703beb3e8b1551a313d2d341bf742905 (patch) (unidiff)
tree4e337f9b55d544a939185dbcdbad558b1ed2504d
parent10a0e05cc4962d9412a7a5faf3d69a3caf6d1c34 (diff)
downloadkdepimpi-44169895703beb3e8b1551a313d2d341bf742905.zip
kdepimpi-44169895703beb3e8b1551a313d2d341bf742905.tar.gz
kdepimpi-44169895703beb3e8b1551a313d2d341bf742905.tar.bz2
gammu changes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile11
-rw-r--r--Makefile.Embedded2
-rw-r--r--bin/kdepim/korganizer/howtoSYNC.txt2
-rw-r--r--gammu/emb/gammu/gammu.c2
-rw-r--r--phoneaccess.control (renamed from kammu.control)0
5 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1adfb2c..0b8997e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,329 +1,330 @@
1export KDEPIMDIR = $(shell pwd) 1export KDEPIMDIR = $(shell pwd)
2 2
3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version) 3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version)
4 4
5ifeq ($(PLATFORM) , zaurus) 5ifeq ($(PLATFORM) , zaurus)
6 BUILD_NO_LDAP_PLUGIN=1 6 BUILD_NO_LDAP_PLUGIN=1
7endif 7endif
8 8
9ifneq ($(PLATFORM) , zaurus) 9ifneq ($(PLATFORM) , zaurus)
10 BUILD_NO_SHARP_PLUGIN=1 10 BUILD_NO_SHARP_PLUGIN=1
11endif 11endif
12 12
13SUBDIRS_MICROKDE = \ 13SUBDIRS_MICROKDE = \
14 libical/src/libical \ 14 libical/src/libical \
15 libical/src/libicalss \ 15 libical/src/libicalss \
16 qtcompat \ 16 qtcompat \
17 microkde \ 17 microkde \
18 libkcal \ 18 libkcal \
19 libkdepim \ 19 libkdepim \
20 kabc \ 20 kabc \
21 kabc/formats/binary \ 21 kabc/formats/binary \
22 kabc/plugins/file \ 22 kabc/plugins/file \
23 kabc/plugins/dir \ 23 kabc/plugins/dir \
24 korganizer \ 24 korganizer \
25 kalarmd \ 25 kalarmd \
26 kaddressbook 26 kaddressbook
27 27
28SUBDIRS_QTOPIA_PLUGIN = \ 28SUBDIRS_QTOPIA_PLUGIN = \
29 kabc/plugins/qtopia 29 kabc/plugins/qtopia
30 30
31SUBDIRS_OPIE_PLUGIN = \ 31SUBDIRS_OPIE_PLUGIN = \
32 kabc/plugins/opie 32 kabc/plugins/opie
33 33
34SUBDIRS_SHARP_PLUGIN = \ 34SUBDIRS_SHARP_PLUGIN = \
35 kabc/plugins/sharpdtm 35 kabc/plugins/sharpdtm
36 36
37SUBDIRS_LDAP_PLUGIN = \ 37SUBDIRS_LDAP_PLUGIN = \
38 kabc/plugins/ldap 38 kabc/plugins/ldap
39 39
40SUBDIRS_MICROMAIL = \ 40SUBDIRS_MICROMAIL = \
41 kmicromail/libetpan \ 41 kmicromail/libetpan \
42 kmicromail/libmailwrapper \ 42 kmicromail/libmailwrapper \
43 kmicromail 43 kmicromail
44 44
45SUBDIRS_GAMMU = \ 45SUBDIRS_GAMMU = \
46 gammu/emb/common \ 46 gammu/emb/common \
47 gammu/emb/gammu 47 gammu/emb/gammu
48 48
49SUBDIRS_PWMANAGER = \ 49SUBDIRS_PWMANAGER = \
50 pwmanager/pwmanager 50 pwmanager/pwmanager
51 51
52SUBDIRS = \ 52SUBDIRS = \
53 $(SUBDIRS_MICROKDE) \ 53 $(SUBDIRS_MICROKDE) \
54 $(SUBDIRS_QTOPIA_PLUGIN) \ 54 $(SUBDIRS_QTOPIA_PLUGIN) \
55 $(SUBDIRS_OPIE_PLUGIN) \ 55 $(SUBDIRS_OPIE_PLUGIN) \
56 $(SUBDIRS_SHARP_PLUGIN) \ 56 $(SUBDIRS_SHARP_PLUGIN) \
57 $(SUBDIRS_LDAP_PLUGIN) \ 57 $(SUBDIRS_LDAP_PLUGIN) \
58 $(SUBDIRS_MICROMAIL) \ 58 $(SUBDIRS_MICROMAIL) \
59 $(SUBDIRS_GAMMU) \ 59 $(SUBDIRS_GAMMU) \
60 $(SUBDIRS_PWMANAGER) 60 $(SUBDIRS_PWMANAGER)
61 61
62
62all: build_microkde \ 63all: build_microkde \
63 build_qtopia_plugin \ 64 build_qtopia_plugin \
64 build_opie_plugin \ 65 build_opie_plugin \
65 build_sharp_plugin \ 66 build_sharp_plugin \
66 build_ldap_plugin \ 67 build_ldap_plugin \
67 build_micromail \ 68 build_micromail \
68 build_gammu \ 69 build_gammu \
69 build_pwmanager 70 build_pwmanager
70 71
71 72
72build_microkde: variable_test tmake 73build_microkde: variable_test tmake
73 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ 74 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \
74 make -f Makefile$(PLATFORM) || exit 1; popd; \ 75 make -f Makefile$(PLATFORM) || exit 1; popd; \
75 done 76 done
76 77
77build_qtopia_plugin: build_microkde 78build_qtopia_plugin: build_microkde
78 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 79 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
79 make -f Makefile$(PLATFORM) || exit 1; popd; \ 80 make -f Makefile$(PLATFORM) || exit 1; popd; \
80 done 81 done
81 82
82build_opie_plugin: build_microkde 83build_opie_plugin: build_microkde
83 ifdef BUILD_NO_OPIE_PLUGIN 84 ifdef BUILD_NO_OPIE_PLUGIN
84 @echo == opie plugin not build. 85 @echo == opie plugin not build.
85 else 86 else
86 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 87 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
87 make -f Makefile$(PLATFORM) || exit 1; popd; \ 88 make -f Makefile$(PLATFORM) || exit 1; popd; \
88 done 89 done
89 endif 90 endif
90 91
91build_sharp_plugin: build_microkde 92build_sharp_plugin: build_microkde
92 ifdef BUILD_NO_SHARP_PLUGIN 93 ifdef BUILD_NO_SHARP_PLUGIN
93 @echo == ldap plugin not build. 94 @echo == ldap plugin not build.
94 else 95 else
95 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 96 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
96 make -f Makefile$(PLATFORM) || exit 1; popd; \ 97 make -f Makefile$(PLATFORM) || exit 1; popd; \
97 done 98 done
98 endif 99 endif
99 100
100build_ldap_plugin: build_microkde 101build_ldap_plugin: build_microkde
101 ifdef BUILD_NO_LDAP_PLUGIN 102 ifdef BUILD_NO_LDAP_PLUGIN
102 @echo == ldap plugin not build. 103 @echo == ldap plugin not build.
103 else 104 else
104 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 105 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
105 make -f Makefile$(PLATFORM) || exit 1; popd; \ 106 make -f Makefile$(PLATFORM) || exit 1; popd; \
106 done 107 done
107 endif 108 endif
108 109
109 110
110build_micromail: build_microkde 111build_micromail: build_microkde
111 ifdef BUILD_NO_MICROMAIL 112 ifdef BUILD_NO_MICROMAIL
112 @echo == kmicromail not build. 113 @echo == kmicromail not build.
113 else 114 else
114 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 115 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
115 make -f Makefile$(PLATFORM) || exit 1; popd; \ 116 make -f Makefile$(PLATFORM) || exit 1; popd; \
116 done 117 done
117 endif 118 endif
118 119
119build_gammu: variable_test tmake 120build_gammu: variable_test tmake
120 ifdef BUILD_NO_GAMMU 121 ifdef BUILD_NO_GAMMU
121 @echo == gammu not build. 122 @echo == gammu not build.
122 else 123 else
123 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 124 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
124 make -f Makefile$(PLATFORM) || exit 1; popd; \ 125 make -f Makefile$(PLATFORM) || exit 1; popd; \
125 done 126 done
126 endif 127 endif
127 128
128build_pwmanager: build_microkde 129build_pwmanager: build_microkde
129 ifdef BUILD_NO_PWMANAGER 130 ifdef BUILD_NO_PWMANAGER
130 @echo == pwmanager not build. 131 @echo == pwmanager not build.
131 else 132 else
132 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ 133 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \
133 make -f Makefile$(PLATFORM) || exit 1; popd; \ 134 make -f Makefile$(PLATFORM) || exit 1; popd; \
134 done 135 done
135 endif 136 endif
136 137
137 138
138variable_info: 139variable_info:
139 @echo -------------------------------------- 140 @echo --------------------------------------
140 @echo KDEPIM buildsystem, variableinfo... 141 @echo KDEPIM buildsystem, variableinfo...
141 @echo KDEPIMDIR=$(KDEPIMDIR) 142 @echo KDEPIMDIR=$(KDEPIMDIR)
142 @echo QTDIR=$(QTDIR) 143 @echo QTDIR=$(QTDIR)
143 @echo QPEDIR=$(QPEDIR) 144 @echo QPEDIR=$(QPEDIR)
144 @echo OPIEDIR=$(OPIEDIR) 145 @echo OPIEDIR=$(OPIEDIR)
145 @echo PLATFORM=$(PLATFORM) 146 @echo PLATFORM=$(PLATFORM)
146 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 147 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
147 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 148 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
148 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 149 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
149 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 150 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
150 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 151 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
151 ifndef BUILD_NO_SHARP_PLUGIN 152 ifndef BUILD_NO_SHARP_PLUGIN
152 @echo SHARPDTMSDK=$(SHARPDTMSDK) 153 @echo SHARPDTMSDK=$(SHARPDTMSDK)
153 endif 154 endif
154 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 155 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
155 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) 156 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER)
156 @echo -------------------------------------- 157 @echo --------------------------------------
157 158
158variable_test: variable_info 159variable_test: variable_info
159 @echo KDEPIM buildsystem, variablecheck... 160 @echo KDEPIM buildsystem, variablecheck...
160 ifndef KDEPIMDIR 161 ifndef KDEPIMDIR
161 @echo KDEPIMDIR is not defined. 162 @echo KDEPIMDIR is not defined.
162 $(error KDEPIMDIR is not defined) 163 $(error KDEPIMDIR is not defined)
163 endif 164 endif
164 ifndef PLATFORM 165 ifndef PLATFORM
165 @echo PLATFORM is not defined. 166 @echo PLATFORM is not defined.
166 $(error PLATFORM is not defined) 167 $(error PLATFORM is not defined)
167 endif 168 endif
168 ifdef BUILD_NO_LDAP_PLUGIN 169 ifdef BUILD_NO_LDAP_PLUGIN
169 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 170 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
170 endif 171 endif
171 ifdef BUILD_NO_OPIE_PLUGIN 172 ifdef BUILD_NO_OPIE_PLUGIN
172 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 173 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
173 endif 174 endif
174 ifdef BUILD_NO_MICROMAIL 175 ifdef BUILD_NO_MICROMAIL
175 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 176 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
176 endif 177 endif
177 ifdef BUILD_NO_SHARP_PLUGIN 178 ifdef BUILD_NO_SHARP_PLUGIN
178 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 179 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
179 else 180 else
180 ifndef SHARPDTMSDK 181 ifndef SHARPDTMSDK
181 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 182 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
182 $(error SHARPDTMSDK is not defined) 183 $(error SHARPDTMSDK is not defined)
183 endif 184 endif
184 endif 185 endif
185 ifdef BUILD_NO_GAMMU 186 ifdef BUILD_NO_GAMMU
186 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 187 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
187 endif 188 endif
188 ifdef BUILD_NO_PWMANAGER 189 ifdef BUILD_NO_PWMANAGER
189 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) 190 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
190 endif 191 endif
191 @echo -------------------------------------- 192 @echo --------------------------------------
192 193
193 194
194objects: 195objects:
195 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 196 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
196 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 197 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
197 mkdir -p libical/lib/$(PLATFORM) 198 mkdir -p libical/lib/$(PLATFORM)
198 199
199clean: 200clean:
200 rm -rf libical/lib/$(PLATFORM)/*; 201 rm -rf libical/lib/$(PLATFORM)/*;
201 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 202 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
202 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 203 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
203 done 204 done
205
204install: 206install:
205 207
206 cd bin/kdepim; make install 208 cd bin/kdepim; make install
207 cp -r Pim $(QPEDIR)/apps 209 cp -r Pim $(QPEDIR)/apps
208 cp db2file/db2file $(QPEDIR)/bin/db2file 210 cp db2file/db2file $(QPEDIR)/bin/db2file
209 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 211 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
210 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 212 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
211 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 213 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
212 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop 214 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
213 215
214dist: 216dist:
215 @echo Dont forget to do "make install" before "make dist" 217 @echo Dont forget to do "make install" before "make dist"
216 rm -f *arm.ipk 218 rm -f *arm.ipk
217 rm -f *~ 219 rm -f *~
218 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 220 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
219 ./mkipks kmicrokdelibs.control 221 ./mkipks kmicrokdelibs.control
220 ./mkipks korganizer.control 222 ./mkipks korganizer.control
221 ./mkipks kaddressbook.control 223 ./mkipks kaddressbook.control
222 ifndef BUILD_NO_MICROMAIL 224 ifndef BUILD_NO_MICROMAIL
223 ./mkipks kopiemail.control 225 ./mkipks kopiemail.control
224 endif 226 endif
225 ./mkipks korganizer-alarm.control 227 ./mkipks korganizer-alarm.control
226 ifndef BUILD_NO_GAMMU 228 ifndef BUILD_NO_GAMMU
227 ./mkipks kammu.control 229 ./mkipks phoneaccess.control
228 endif 230 endif
229 ifndef BUILD_NO_PWMANAGER 231 ifndef BUILD_NO_PWMANAGER
230 ./mkipks pwmanager.control 232 ./mkipks pwmanager.control
231 endif 233 endif
232 ./mkipks pim_TAB_icon.control 234 ./mkipks pim_TAB_icon.control
233 235
234tmake: objects \ 236tmake: objects \
235 qtcompat/Makefile$(PLATFORM) \ 237 qtcompat/Makefile$(PLATFORM) \
236 microkde/Makefile$(PLATFORM) \ 238 microkde/Makefile$(PLATFORM) \
237 libkcal/Makefile$(PLATFORM) \ 239 libkcal/Makefile$(PLATFORM) \
238 libkdepim/Makefile$(PLATFORM) \ 240 libkdepim/Makefile$(PLATFORM) \
239 korganizer/Makefile$(PLATFORM) \ 241 korganizer/Makefile$(PLATFORM) \
240 kalarmd/Makefile$(PLATFORM) \ 242 kalarmd/Makefile$(PLATFORM) \
241 libical/src/libical/Makefile$(PLATFORM) \ 243 libical/src/libical/Makefile$(PLATFORM) \
242 libical/src/libicalss/Makefile$(PLATFORM) \ 244 libical/src/libicalss/Makefile$(PLATFORM) \
243 kabc/Makefile$(PLATFORM) \ 245 kabc/Makefile$(PLATFORM) \
244 kabc/formats/binary/Makefile$(PLATFORM) \ 246 kabc/formats/binary/Makefile$(PLATFORM) \
245 kabc/plugins/file/Makefile$(PLATFORM) \ 247 kabc/plugins/file/Makefile$(PLATFORM) \
246 kabc/plugins/dir/Makefile$(PLATFORM) \ 248 kabc/plugins/dir/Makefile$(PLATFORM) \
247 kabc/plugins/ldap/Makefile$(PLATFORM) \ 249 kabc/plugins/ldap/Makefile$(PLATFORM) \
248 kabc/plugins/opie/Makefile$(PLATFORM) \ 250 kabc/plugins/opie/Makefile$(PLATFORM) \
249 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 251 kabc/plugins/qtopia/Makefile$(PLATFORM) \
250 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 252 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
251 kaddressbook/Makefile$(PLATFORM) \ 253 kaddressbook/Makefile$(PLATFORM) \
252 kmicromail/Makefile$(PLATFORM) \ 254 kmicromail/Makefile$(PLATFORM) \
253 kmicromail/libetpan/Makefile$(PLATFORM) \ 255 kmicromail/libetpan/Makefile$(PLATFORM) \
254 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 256 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
255 gammu/emb/common/Makefile$(PLATFORM) \ 257 gammu/emb/common/Makefile$(PLATFORM) \
256 gammu/emb/gammu/Makefile$(PLATFORM) \ 258 gammu/emb/gammu/Makefile$(PLATFORM) \
257 pwmanager/pwmanager/Makefile$(PLATFORM) \ 259 pwmanager/pwmanager/Makefile$(PLATFORM) \
258 260
259
260
261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) 262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
263 263
264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) 265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
266 266
267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) 268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
269 269
270 270
271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) 272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
273 273
274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) 275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
276 276
277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) 278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
279 279
280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM) 281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
282 282
283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM) 284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
285 285
286kabc/Makefile$(PLATFORM): kabc/kabcE.pro 286kabc/Makefile$(PLATFORM): kabc/kabcE.pro
287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM) 287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
288 288
289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
291 291
292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro 292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM) 293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
294 294
295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro 295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM) 296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
297 297
298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro 298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM) 299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
300 300
301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro 301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM) 302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
303 303
304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro 304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM) 305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
306 306
307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro 307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM) 308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
309 309
310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM) 311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
312 312
313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro 313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM) 314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
315 315
316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro 316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM) 317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
318 318
319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro 319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) 320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
321 321
322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro 322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) 323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
324 324
325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro 325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) 326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
327 327
328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro 328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) 329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
330
diff --git a/Makefile.Embedded b/Makefile.Embedded
index 2e1651c..0b8997e 100644
--- a/Makefile.Embedded
+++ b/Makefile.Embedded
@@ -1,330 +1,330 @@
1export KDEPIMDIR = $(shell pwd) 1export KDEPIMDIR = $(shell pwd)
2 2
3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version) 3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version)
4 4
5ifeq ($(PLATFORM) , zaurus) 5ifeq ($(PLATFORM) , zaurus)
6 BUILD_NO_LDAP_PLUGIN=1 6 BUILD_NO_LDAP_PLUGIN=1
7endif 7endif
8 8
9ifneq ($(PLATFORM) , zaurus) 9ifneq ($(PLATFORM) , zaurus)
10 BUILD_NO_SHARP_PLUGIN=1 10 BUILD_NO_SHARP_PLUGIN=1
11endif 11endif
12 12
13SUBDIRS_MICROKDE = \ 13SUBDIRS_MICROKDE = \
14 libical/src/libical \ 14 libical/src/libical \
15 libical/src/libicalss \ 15 libical/src/libicalss \
16 qtcompat \ 16 qtcompat \
17 microkde \ 17 microkde \
18 libkcal \ 18 libkcal \
19 libkdepim \ 19 libkdepim \
20 kabc \ 20 kabc \
21 kabc/formats/binary \ 21 kabc/formats/binary \
22 kabc/plugins/file \ 22 kabc/plugins/file \
23 kabc/plugins/dir \ 23 kabc/plugins/dir \
24 korganizer \ 24 korganizer \
25 kalarmd \ 25 kalarmd \
26 kaddressbook 26 kaddressbook
27 27
28SUBDIRS_QTOPIA_PLUGIN = \ 28SUBDIRS_QTOPIA_PLUGIN = \
29 kabc/plugins/qtopia 29 kabc/plugins/qtopia
30 30
31SUBDIRS_OPIE_PLUGIN = \ 31SUBDIRS_OPIE_PLUGIN = \
32 kabc/plugins/opie 32 kabc/plugins/opie
33 33
34SUBDIRS_SHARP_PLUGIN = \ 34SUBDIRS_SHARP_PLUGIN = \
35 kabc/plugins/sharpdtm 35 kabc/plugins/sharpdtm
36 36
37SUBDIRS_LDAP_PLUGIN = \ 37SUBDIRS_LDAP_PLUGIN = \
38 kabc/plugins/ldap 38 kabc/plugins/ldap
39 39
40SUBDIRS_MICROMAIL = \ 40SUBDIRS_MICROMAIL = \
41 kmicromail/libetpan \ 41 kmicromail/libetpan \
42 kmicromail/libmailwrapper \ 42 kmicromail/libmailwrapper \
43 kmicromail 43 kmicromail
44 44
45SUBDIRS_GAMMU = \ 45SUBDIRS_GAMMU = \
46 gammu/emb/common \ 46 gammu/emb/common \
47 gammu/emb/gammu 47 gammu/emb/gammu
48 48
49SUBDIRS_PWMANAGER = \ 49SUBDIRS_PWMANAGER = \
50 pwmanager/pwmanager 50 pwmanager/pwmanager
51 51
52SUBDIRS = \ 52SUBDIRS = \
53 $(SUBDIRS_MICROKDE) \ 53 $(SUBDIRS_MICROKDE) \
54 $(SUBDIRS_QTOPIA_PLUGIN) \ 54 $(SUBDIRS_QTOPIA_PLUGIN) \
55 $(SUBDIRS_OPIE_PLUGIN) \ 55 $(SUBDIRS_OPIE_PLUGIN) \
56 $(SUBDIRS_SHARP_PLUGIN) \ 56 $(SUBDIRS_SHARP_PLUGIN) \
57 $(SUBDIRS_LDAP_PLUGIN) \ 57 $(SUBDIRS_LDAP_PLUGIN) \
58 $(SUBDIRS_MICROMAIL) \ 58 $(SUBDIRS_MICROMAIL) \
59 $(SUBDIRS_GAMMU) \ 59 $(SUBDIRS_GAMMU) \
60 $(SUBDIRS_PWMANAGER) 60 $(SUBDIRS_PWMANAGER)
61 61
62 62
63all: build_microkde \ 63all: build_microkde \
64 build_qtopia_plugin \ 64 build_qtopia_plugin \
65 build_opie_plugin \ 65 build_opie_plugin \
66 build_sharp_plugin \ 66 build_sharp_plugin \
67 build_ldap_plugin \ 67 build_ldap_plugin \
68 build_micromail \ 68 build_micromail \
69 build_gammu \ 69 build_gammu \
70 build_pwmanager 70 build_pwmanager
71 71
72 72
73build_microkde: variable_test tmake 73build_microkde: variable_test tmake
74 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ 74 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \
75 make -f Makefile$(PLATFORM) || exit 1; popd; \ 75 make -f Makefile$(PLATFORM) || exit 1; popd; \
76 done 76 done
77 77
78build_qtopia_plugin: build_microkde 78build_qtopia_plugin: build_microkde
79 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 79 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \
80 make -f Makefile$(PLATFORM) || exit 1; popd; \ 80 make -f Makefile$(PLATFORM) || exit 1; popd; \
81 done 81 done
82 82
83build_opie_plugin: build_microkde 83build_opie_plugin: build_microkde
84 ifdef BUILD_NO_OPIE_PLUGIN 84 ifdef BUILD_NO_OPIE_PLUGIN
85 @echo == opie plugin not build. 85 @echo == opie plugin not build.
86 else 86 else
87 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 87 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \
88 make -f Makefile$(PLATFORM) || exit 1; popd; \ 88 make -f Makefile$(PLATFORM) || exit 1; popd; \
89 done 89 done
90 endif 90 endif
91 91
92build_sharp_plugin: build_microkde 92build_sharp_plugin: build_microkde
93 ifdef BUILD_NO_SHARP_PLUGIN 93 ifdef BUILD_NO_SHARP_PLUGIN
94 @echo == ldap plugin not build. 94 @echo == ldap plugin not build.
95 else 95 else
96 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 96 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \
97 make -f Makefile$(PLATFORM) || exit 1; popd; \ 97 make -f Makefile$(PLATFORM) || exit 1; popd; \
98 done 98 done
99 endif 99 endif
100 100
101build_ldap_plugin: build_microkde 101build_ldap_plugin: build_microkde
102 ifdef BUILD_NO_LDAP_PLUGIN 102 ifdef BUILD_NO_LDAP_PLUGIN
103 @echo == ldap plugin not build. 103 @echo == ldap plugin not build.
104 else 104 else
105 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 105 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
106 make -f Makefile$(PLATFORM) || exit 1; popd; \ 106 make -f Makefile$(PLATFORM) || exit 1; popd; \
107 done 107 done
108 endif 108 endif
109 109
110 110
111build_micromail: build_microkde 111build_micromail: build_microkde
112 ifdef BUILD_NO_MICROMAIL 112 ifdef BUILD_NO_MICROMAIL
113 @echo == kmicromail not build. 113 @echo == kmicromail not build.
114 else 114 else
115 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 115 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
116 make -f Makefile$(PLATFORM) || exit 1; popd; \ 116 make -f Makefile$(PLATFORM) || exit 1; popd; \
117 done 117 done
118 endif 118 endif
119 119
120build_gammu: variable_test tmake 120build_gammu: variable_test tmake
121 ifdef BUILD_NO_GAMMU 121 ifdef BUILD_NO_GAMMU
122 @echo == gammu not build. 122 @echo == gammu not build.
123 else 123 else
124 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 124 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
125 make -f Makefile$(PLATFORM) || exit 1; popd; \ 125 make -f Makefile$(PLATFORM) || exit 1; popd; \
126 done 126 done
127 endif 127 endif
128 128
129build_pwmanager: build_microkde 129build_pwmanager: build_microkde
130 ifdef BUILD_NO_PWMANAGER 130 ifdef BUILD_NO_PWMANAGER
131 @echo == pwmanager not build. 131 @echo == pwmanager not build.
132 else 132 else
133 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ 133 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \
134 make -f Makefile$(PLATFORM) || exit 1; popd; \ 134 make -f Makefile$(PLATFORM) || exit 1; popd; \
135 done 135 done
136 endif 136 endif
137 137
138 138
139variable_info: 139variable_info:
140 @echo -------------------------------------- 140 @echo --------------------------------------
141 @echo KDEPIM buildsystem, variableinfo... 141 @echo KDEPIM buildsystem, variableinfo...
142 @echo KDEPIMDIR=$(KDEPIMDIR) 142 @echo KDEPIMDIR=$(KDEPIMDIR)
143 @echo QTDIR=$(QTDIR) 143 @echo QTDIR=$(QTDIR)
144 @echo QPEDIR=$(QPEDIR) 144 @echo QPEDIR=$(QPEDIR)
145 @echo OPIEDIR=$(OPIEDIR) 145 @echo OPIEDIR=$(OPIEDIR)
146 @echo PLATFORM=$(PLATFORM) 146 @echo PLATFORM=$(PLATFORM)
147 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 147 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
148 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 148 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
149 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 149 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
150 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 150 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
151 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 151 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
152 ifndef BUILD_NO_SHARP_PLUGIN 152 ifndef BUILD_NO_SHARP_PLUGIN
153 @echo SHARPDTMSDK=$(SHARPDTMSDK) 153 @echo SHARPDTMSDK=$(SHARPDTMSDK)
154 endif 154 endif
155 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 155 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
156 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) 156 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER)
157 @echo -------------------------------------- 157 @echo --------------------------------------
158 158
159variable_test: variable_info 159variable_test: variable_info
160 @echo KDEPIM buildsystem, variablecheck... 160 @echo KDEPIM buildsystem, variablecheck...
161 ifndef KDEPIMDIR 161 ifndef KDEPIMDIR
162 @echo KDEPIMDIR is not defined. 162 @echo KDEPIMDIR is not defined.
163 $(error KDEPIMDIR is not defined) 163 $(error KDEPIMDIR is not defined)
164 endif 164 endif
165 ifndef PLATFORM 165 ifndef PLATFORM
166 @echo PLATFORM is not defined. 166 @echo PLATFORM is not defined.
167 $(error PLATFORM is not defined) 167 $(error PLATFORM is not defined)
168 endif 168 endif
169 ifdef BUILD_NO_LDAP_PLUGIN 169 ifdef BUILD_NO_LDAP_PLUGIN
170 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 170 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
171 endif 171 endif
172 ifdef BUILD_NO_OPIE_PLUGIN 172 ifdef BUILD_NO_OPIE_PLUGIN
173 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 173 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
174 endif 174 endif
175 ifdef BUILD_NO_MICROMAIL 175 ifdef BUILD_NO_MICROMAIL
176 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 176 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
177 endif 177 endif
178 ifdef BUILD_NO_SHARP_PLUGIN 178 ifdef BUILD_NO_SHARP_PLUGIN
179 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 179 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
180 else 180 else
181 ifndef SHARPDTMSDK 181 ifndef SHARPDTMSDK
182 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 182 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
183 $(error SHARPDTMSDK is not defined) 183 $(error SHARPDTMSDK is not defined)
184 endif 184 endif
185 endif 185 endif
186 ifdef BUILD_NO_GAMMU 186 ifdef BUILD_NO_GAMMU
187 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 187 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
188 endif 188 endif
189 ifdef BUILD_NO_PWMANAGER 189 ifdef BUILD_NO_PWMANAGER
190 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) 190 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
191 endif 191 endif
192 @echo -------------------------------------- 192 @echo --------------------------------------
193 193
194 194
195objects: 195objects:
196 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 196 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
197 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 197 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
198 mkdir -p libical/lib/$(PLATFORM) 198 mkdir -p libical/lib/$(PLATFORM)
199 199
200clean: 200clean:
201 rm -rf libical/lib/$(PLATFORM)/*; 201 rm -rf libical/lib/$(PLATFORM)/*;
202 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 202 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
203 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 203 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
204 done 204 done
205 205
206install: 206install:
207 207
208 cd bin/kdepim; make install 208 cd bin/kdepim; make install
209 cp -r Pim $(QPEDIR)/apps 209 cp -r Pim $(QPEDIR)/apps
210 cp db2file/db2file $(QPEDIR)/bin/db2file 210 cp db2file/db2file $(QPEDIR)/bin/db2file
211 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 211 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
212 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 212 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
213 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 213 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
214 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop 214 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
215 215
216dist: 216dist:
217 @echo Dont forget to do "make install" before "make dist" 217 @echo Dont forget to do "make install" before "make dist"
218 rm -f *arm.ipk 218 rm -f *arm.ipk
219 rm -f *~ 219 rm -f *~
220 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 220 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
221 ./mkipks kmicrokdelibs.control 221 ./mkipks kmicrokdelibs.control
222 ./mkipks korganizer.control 222 ./mkipks korganizer.control
223 ./mkipks kaddressbook.control 223 ./mkipks kaddressbook.control
224 ifndef BUILD_NO_MICROMAIL 224 ifndef BUILD_NO_MICROMAIL
225 ./mkipks kopiemail.control 225 ./mkipks kopiemail.control
226 endif 226 endif
227 ./mkipks korganizer-alarm.control 227 ./mkipks korganizer-alarm.control
228 ifndef BUILD_NO_GAMMU 228 ifndef BUILD_NO_GAMMU
229 ./mkipks kammu.control 229 ./mkipks phoneaccess.control
230 endif 230 endif
231 ifndef BUILD_NO_PWMANAGER 231 ifndef BUILD_NO_PWMANAGER
232 ./mkipks pwmanager.control 232 ./mkipks pwmanager.control
233 endif 233 endif
234 ./mkipks pim_TAB_icon.control 234 ./mkipks pim_TAB_icon.control
235 235
236tmake: objects \ 236tmake: objects \
237 qtcompat/Makefile$(PLATFORM) \ 237 qtcompat/Makefile$(PLATFORM) \
238 microkde/Makefile$(PLATFORM) \ 238 microkde/Makefile$(PLATFORM) \
239 libkcal/Makefile$(PLATFORM) \ 239 libkcal/Makefile$(PLATFORM) \
240 libkdepim/Makefile$(PLATFORM) \ 240 libkdepim/Makefile$(PLATFORM) \
241 korganizer/Makefile$(PLATFORM) \ 241 korganizer/Makefile$(PLATFORM) \
242 kalarmd/Makefile$(PLATFORM) \ 242 kalarmd/Makefile$(PLATFORM) \
243 libical/src/libical/Makefile$(PLATFORM) \ 243 libical/src/libical/Makefile$(PLATFORM) \
244 libical/src/libicalss/Makefile$(PLATFORM) \ 244 libical/src/libicalss/Makefile$(PLATFORM) \
245 kabc/Makefile$(PLATFORM) \ 245 kabc/Makefile$(PLATFORM) \
246 kabc/formats/binary/Makefile$(PLATFORM) \ 246 kabc/formats/binary/Makefile$(PLATFORM) \
247 kabc/plugins/file/Makefile$(PLATFORM) \ 247 kabc/plugins/file/Makefile$(PLATFORM) \
248 kabc/plugins/dir/Makefile$(PLATFORM) \ 248 kabc/plugins/dir/Makefile$(PLATFORM) \
249 kabc/plugins/ldap/Makefile$(PLATFORM) \ 249 kabc/plugins/ldap/Makefile$(PLATFORM) \
250 kabc/plugins/opie/Makefile$(PLATFORM) \ 250 kabc/plugins/opie/Makefile$(PLATFORM) \
251 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 251 kabc/plugins/qtopia/Makefile$(PLATFORM) \
252 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 252 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
253 kaddressbook/Makefile$(PLATFORM) \ 253 kaddressbook/Makefile$(PLATFORM) \
254 kmicromail/Makefile$(PLATFORM) \ 254 kmicromail/Makefile$(PLATFORM) \
255 kmicromail/libetpan/Makefile$(PLATFORM) \ 255 kmicromail/libetpan/Makefile$(PLATFORM) \
256 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 256 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
257 gammu/emb/common/Makefile$(PLATFORM) \ 257 gammu/emb/common/Makefile$(PLATFORM) \
258 gammu/emb/gammu/Makefile$(PLATFORM) \ 258 gammu/emb/gammu/Makefile$(PLATFORM) \
259 pwmanager/pwmanager/Makefile$(PLATFORM) \ 259 pwmanager/pwmanager/Makefile$(PLATFORM) \
260 260
261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 261qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) 262 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
263 263
264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 264microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) 265 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
266 266
267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 267libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) 268 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
269 269
270 270
271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 271libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) 272 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
273 273
274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 274kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) 275 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
276 276
277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 277korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) 278 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
279 279
280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 280libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM) 281 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
282 282
283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 283libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM) 284 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
285 285
286kabc/Makefile$(PLATFORM): kabc/kabcE.pro 286kabc/Makefile$(PLATFORM): kabc/kabcE.pro
287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM) 287 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
288 288
289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 289kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 290 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
291 291
292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro 292kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM) 293 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
294 294
295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro 295kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM) 296 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
297 297
298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro 298kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM) 299 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
300 300
301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro 301kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM) 302 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
303 303
304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro 304kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM) 305 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
306 306
307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro 307kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM) 308 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
309 309
310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 310kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM) 311 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
312 312
313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro 313kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM) 314 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
315 315
316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro 316kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro
317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM) 317 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
318 318
319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro 319kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) 320 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
321 321
322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro 322gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) 323 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
324 324
325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro 325gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) 326 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
327 327
328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro 328pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) 329 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
330 330
diff --git a/bin/kdepim/korganizer/howtoSYNC.txt b/bin/kdepim/korganizer/howtoSYNC.txt
index c4e80f5..3cab446 100644
--- a/bin/kdepim/korganizer/howtoSYNC.txt
+++ b/bin/kdepim/korganizer/howtoSYNC.txt
@@ -1,483 +1,483 @@
1WARNING: 1WARNING:
2YOU MAY GET UNEXSPECTED (I.E. WRONG) SYNCHRONIZATION RESULTS, 2YOU MAY GET UNEXSPECTED (I.E. WRONG) SYNCHRONIZATION RESULTS,
3IF YOU CHANGE AN EVENT ON THE FIRST DEVICE AND SYNC IMMEDIATELY FROM 3IF YOU CHANGE AN EVENT ON THE FIRST DEVICE AND SYNC IMMEDIATELY FROM
4THE OTHER DEVICE WITH THIS DEVICE, IF THE CLOCKS OF THE TWO DEVICES 4THE OTHER DEVICE WITH THIS DEVICE, IF THE CLOCKS OF THE TWO DEVICES
5HAVE TOO MUCH DIFFERENCE. 5HAVE TOO MUCH DIFFERENCE.
6 6
7In other words: Please make shure, that the clocks of the devices 7In other words: Please make shure, that the clocks of the devices
8you want to sync have only a difference of some seconds! 8you want to sync have only a difference of some seconds!
9 9
10 10
11CONTENT: 11CONTENT:
12 12
130) How syncing works 130) How syncing works
141) Qick overview of settings 141) Qick overview of settings
152) Sync settings in sync dialog 152) Sync settings in sync dialog
163) Syncing background 163) Syncing background
174) Sync preferences 174) Sync preferences
185) Details about sync profile kinds 185) Details about sync profile kinds
19 19
20************************************************************************* 20*************************************************************************
210) How syncing works 210) How syncing works
22************************************************************************* 22*************************************************************************
23 23
24Note: 24Note:
25The recommended and easiest way to syncronize two devices where 25The recommended and easiest way to syncronize two devices where
26KO/Pi or KA/Pi is installed, is the profile kind "Pi-Sync". 26KO/Pi or KA/Pi is installed, is the profile kind "Pi-Sync".
27Details about that in 5) b). 27Details about that in 5) b).
28 28
29In KDE-Pim/Pi you can synchronize ( sync ) your calendar/addressbook 29In KDE-Pim/Pi you can synchronize ( sync ) your calendar/addressbook
30with another calendar/addressbook , by syncing your 30with another calendar/addressbook , by syncing your
31(local) calendar/addressbook with a (remote) file. 31(local) calendar/addressbook with a (remote) file.
32This remote file may on your local filesystem 32This remote file may on your local filesystem
33or on another (remote) device. 33or on another (remote) device.
34 34
35If you want to sync with another remote device, 35If you want to sync with another remote device,
36you have two create a sync profile. 36you have two create a sync profile.
37You have two choices for choosing the profil kind: 37You have two choices for choosing the profil kind:
38I) You have to choose profile kind "Remote file" and to specify a 38I) You have to choose profile kind "Remote file" and to specify a
39 command line download/upload command ( like scp, ftp, ...) to 39 command line download/upload command ( like scp, ftp, ...) to
40 a) download the remote file to your local machine to a temp file 40 a) download the remote file to your local machine to a temp file
41 b) sync with this temp file 41 b) sync with this temp file
42 c) upload the synced file to the remote device 42 c) upload the synced file to the remote device
43II) If you want to sync with a device, where KO/Pi( or KA/Pi ) is 43II) If you want to sync with a device, where KO/Pi( or KA/Pi ) is
44 installed, you can easily get the remote file via network 44 installed, you can easily get the remote file via network
45 with the build in file transfer feature: 45 with the build in file transfer feature:
46 Choose profile kind "Pi-Sync" and 46 Choose profile kind "Pi-Sync" and
47 a) Start KO/Pi or KA/Pi on remote device and 47 a) Start KO/Pi or KA/Pi on remote device and
48 enable "Pi-Sync" on remote device with password and port. 48 enable "Pi-Sync" on remote device with password and port.
49 b) Specify password, port and IP address in your profile. 49 b) Specify password, port and IP address in your profile.
50 50
51 51
52You can sync with your mobile phone as well. 52You can sync with your mobile phone as well.
53Everything is explained in more details below. 53Everything is explained in more details below.
54 54
55NOTE: 55NOTE:
56If you do not use profile kind "Pi-Sync", 56If you do not use profile kind "Pi-Sync",
57it is recommended to close 57it is recommended to close
58a running KO/Pi ( or KA/Pi) on the remote device. 58a running KO/Pi ( or KA/Pi) on the remote device.
59(Note: KO/Pi( or KA/Pi) running on Zaurus with 59(Note: KO/Pi( or KA/Pi) running on Zaurus with
60FastLoad enabled will never be closed!) 60FastLoad enabled will never be closed!)
61After syncing with a running KO/Pi on the remote device, 61After syncing with a running KO/Pi on the remote device,
62a "save" on the remote device will tell you that it needs to merge (sync). 62a "save" on the remote device will tell you that it needs to merge (sync).
63After merging (just a syncing with the changed file) 63After merging (just a syncing with the changed file)
64you will get the new data showing in remote KO/Pi. 64you will get the new data showing in remote KO/Pi.
65 65
66************************************************************************* 66*************************************************************************
671) Qick overview of settings 671) Qick overview of settings
68************************************************************************* 68*************************************************************************
69 69
70a) Open sync settings dialog (Menu Synchronize - Configure...) 70a) Open sync settings dialog (Menu Synchronize - Configure...)
71b) Give your device a unique name. 71b) Give your device a unique name.
72 (unique in the set of all devices you want to sync with). 72 (unique in the set of all devices you want to sync with).
73 If you have already configured another devive and created 73 If you have already configured another devive and created
74 there a sync profile to sync with this device, give your device 74 there a sync profile to sync with this device, give your device
75 the same name as this sync profile! The same name is important, 75 the same name as this sync profile! The same name is important,
76 because it makes it possible to sync first A->B 76 because it makes it possible to sync first A->B
77 (A local device, that performs the sync, B remote device) 77 (A local device, that performs the sync, B remote device)
78 and then B->A. Such that the B->A sync knows about the 78 and then B->A. Such that the B->A sync knows about the
79 already performed A->B sync. 79 already performed A->B sync.
80 That means: It is unimportant if you sync A->B or B->A, 80 That means: It is unimportant if you sync A->B or B->A,
81 the devices A and B will be synced properly. 81 the devices A and B will be synced properly.
82c) Create a new sync profile and give it a unique name. 82c) Create a new sync profile and give it a unique name.
83 (unique in the set of all sync profiles on this device). 83 (unique in the set of all sync profiles on this device).
84 If you want to sync with a device, where KO/Pi is already installed 84 If you want to sync with a device, where KO/Pi is already installed
85 and which has a given unique device name, use this device name as 85 and which has a given unique device name, use this device name as
86 your profile name ( refer to b) ). 86 your profile name ( refer to b) ).
87d) Coose the profile kind of your syncing method: 87d) Coose the profile kind of your syncing method:
88 (i) Local file or 88 (i) Local file or
89 (ii) Pi-Sync or 89 (ii) Pi-Sync or
90 (iii) Remote file or 90 (iii) Remote file or
91 (iiii) Mobile Phone. 91 (iiii) Mobile Phone.
92 Detailed explanation in 5) 92 Detailed explanation in 5)
93e) Choose the other profile options. 93e) Choose the other profile options.
94 Detailed explanation in 2) 94 Detailed explanation in 2)
95f) Close sync dialog with OK. 95f) Close sync dialog with OK.
96g) Sync. 96g) Sync.
97 97
98NOTE: 98NOTE:
99AFTER SYNCING THERE ARE "SYNC EVENTS" CREATED 99AFTER SYNCING THERE ARE "SYNC EVENTS" CREATED
100(OR UPDATED, IF IT ALREADY EXITS) FOR EACH SYNC PROFILE. 100(OR UPDATED, IF IT ALREADY EXITS) FOR EACH SYNC PROFILE.
101YOU MAY NOT DELETE OR CHANGE THESE EVENTS. 101YOU MAY NOT DELETE OR CHANGE THESE EVENTS.
102 102
103************************************************************************* 103*************************************************************************
1042) Sync settings in sync dialog 1042) Sync settings in sync dialog
105************************************************************************* 105*************************************************************************
106 106
107a) Local device name: 107a) Local device name:
108 -> 1) b) 108 -> 1) b)
109b) Profile: 109b) Profile:
110 -> 1) c) 110 -> 1) c)
111c) Include in multiple sync: 111c) Include in multiple sync:
112 In the Synchronize menu, there is a multiple sync menu entry. 112 In the Synchronize menu, there is a multiple sync menu entry.
113 If you choose this menu entry, all user defined profiles with this 113 If you choose this menu entry, all user defined profiles with this
114 'Include in multiple sync' option enabled will be synced 114 'Include in multiple sync' option enabled will be synced
115 one after another. And this twice. This will take some time. 115 one after another. And this twice. This will take some time.
116 After that sync, on all devices should be the same data. 116 After that sync, on all devices should be the same data.
117d) Ask for preferences before sync: 117d) Ask for preferences before sync:
118 Check this to be asked for sync preferences settings before each sync. 118 Check this to be asked for sync preferences settings before each sync.
119 If the profile kind is "Pi-Sync" you will be asked to confirm 119 If the profile kind is "Pi-Sync" you will be asked to confirm
120 the "Pi-Sync" specific settings (Password,IP address, port number) 120 the "Pi-Sync" specific settings (Password,IP address, port number)
121 as well. That makes it possible to use that profile for a 121 as well. That makes it possible to use that profile for a
122 device that is connected via DHCP to the network and gets different 122 device that is connected via DHCP to the network and gets different
123 IP addresses when connection to the network. 123 IP addresses when connection to the network.
124e) Sync preferences: 124e) Sync preferences:
125 Choose here your sync preferences. 125 Choose here your sync preferences.
126 Details -> 4) 126 Details -> 4)
127f) Show summary after sync: 127f) Show summary after sync:
128 Check this to get a small summary dialog after sync 128 Check this to get a small summary dialog after sync
129 about number of added/changed/deleted events on local/remote. 129 about number of added/changed/deleted events on local/remote.
130g) Write back synced data: 130g) Write back synced data:
131 Uncheck this to update the local calendar only. 131 Uncheck this to update the local calendar only.
132 I.e. your local calendar is synced with the remote calendar 132 I.e. your local calendar is synced with the remote calendar
133 but nothing on the remote calendar is changed. 133 but nothing on the remote calendar is changed.
134 If you uncheck "Write back synced data", the settings 134 If you uncheck "Write back synced data", the settings
135 under h) and i) are ignored, of course. 135 under h) and i) are ignored, of course.
136h) --Write back (on remote) existing entries only: 136h) --Write back (on remote) existing entries only:
137 Check this to update the remote data only. 137 Check this to update the remote data only.
138 I.e. no data from yor local calendar/addressbook is added to the 138 I.e. no data from yor local calendar/addressbook is added to the
139 remote device. You may use this option to 139 remote device. You may use this option to
140 sync against some kind of "public calendar/addressbook" without 140 sync against some kind of "public calendar/addressbook" without
141 writing back your personal data. 141 writing back your personal data.
142i) --Write back (calendar) entries in future only: 142i) --Write back (calendar) entries in future only:
143 Check this to write back only calendar entries in future. 143 Check this to write back only calendar entries in future.
144 (Useful when syncing with mobile phones.) 144 (Useful when syncing with mobile phones.)
145 You can specify the date range in weeks with 145 You can specify the date range in weeks with
146 ---- Max. weeks in future. 146 ---- Max. weeks in future.
147 Note: The date range starts always 7 days before the actual date! 147 Note: The date range starts always 7 days before the actual date!
148 I.e. the calendar events of the last week are written back always. 148 I.e. the calendar events of the last week are written back always.
149j) Profile kind: 149j) Profile kind:
150 Details -> 5) 150 Details -> 5)
151 151
152************************************************************************* 152*************************************************************************
1533) Syncing background 1533) Syncing background
154************************************************************************* 154*************************************************************************
155 155
156The same mentioned for calendars is valid for addressbooks as well. 156The same mentioned for calendars is valid for addressbooks as well.
157 157
158Synchronizing calendars ( i.e. files ) means, 158Synchronizing calendars ( i.e. files ) means,
159to merge two calendars in a useful way. 159to merge two calendars in a useful way.
160If the two calendars are completely different, 160If the two calendars are completely different,
161there is no problem, the resulting calendar contains 161there is no problem, the resulting calendar contains
162all data from the local and from the remote calendar. 162all data from the local and from the remote calendar.
163 163
164Problems will occur, if you have edited items 164Problems will occur, if you have edited items
165from the local calendar on the remote machine. 165from the local calendar on the remote machine.
166Then it could be, that items are in conflict. 166Then it could be, that items are in conflict.
167Two items are "in conflict", if they have the 167Two items are "in conflict", if they have the
168same unique ID (which get an item at time of 168same unique ID (which get an item at time of
169creation and owns it until it is deleted ) 169creation and owns it until it is deleted )
170and they both are modified after the last 170and they both are modified after the last
171synchronization. 171synchronization.
172 172
173At first sync of two calendars there is no item deleted. 173At first sync of two calendars there is no item deleted.
174If the calendars are synced before and there is an item, 174If the calendars are synced before and there is an item,
175which is not edited after the last sync and is only 175which is not edited after the last sync and is only
176available in one calendar, then this item is deleted 176available in one calendar, then this item is deleted
177in this calendar. 177in this calendar.
178 178
179But when was the last synchronization between two calendars? 179But when was the last synchronization between two calendars?
180 180
181To know that, KO/Pi creates at first syncing 181To know that, KO/Pi creates at first syncing
182of two files an unique event "<profile name> - sync Event" 182of two files an unique event "<profile name> - sync Event"
183on the remote and the local calendar. 183on the remote and the local calendar.
184After syncing, the start time of this event is set 184After syncing, the start time of this event is set
185to the time of syncing. 185to the time of syncing.
186The event is read only and the user may not change it. 186The event is read only and the user may not change it.
187 187
188If two such files are synced, that both have an event 188If two such files are synced, that both have an event
189"<profile name> - sync Event" and the events have 189"<profile name> - sync Event" and the events have
190the same start time, then deleted items on the one calendar 190the same start time, then deleted items on the one calendar
191are deleted on the other as well. 191are deleted on the other as well.
192 192
193 193
194************************************************************************* 194*************************************************************************
1954) Sync preferences 1954) Sync preferences
196************************************************************************* 196*************************************************************************
197 197
198Two items are "in conflict", if they have the same unique ID 198Two items are "in conflict", if they have the same unique ID
199and they both are modified after the last synchronization. 199and they both are modified after the last synchronization.
200(Details -> 3) ). 200(Details -> 3) ).
201 201
202If an item is not modified after the last sync and 202If an item is not modified after the last sync and
203it is not found in the other calendar, it is deleted. 203it is not found in the other calendar, it is deleted.
204 204
205On the first sync, there is no item deleted. 205On the first sync, there is no item deleted.
206 206
207SYNC PREFERENCES: 207SYNC PREFERENCES:
208 -Take local entry on conflict: 208 -Take local entry on conflict:
209 Takes the local entry on conflict. 209 Takes the local entry on conflict.
210 If it is the first sync, 210 If it is the first sync,
211 "Ask for every entry" 211 "Ask for every entry"
212 is chosen automatically, 212 is chosen automatically,
213 if this is selected. 213 if this is selected.
214 214
215 -Take remote entry on conflict: 215 -Take remote entry on conflict:
216 Takes the remote entry on conflict. 216 Takes the remote entry on conflict.
217 If it is the first sync, 217 If it is the first sync,
218 "Ask for every entry" 218 "Ask for every entry"
219 is chosen automatically, 219 is chosen automatically,
220 if this is selected. 220 if this is selected.
221 221
222 -Take newest entry on conflict: 222 -Take newest entry on conflict:
223 This takes the newest entry on conflict. 223 This takes the newest entry on conflict.
224 May be the most useful syncing mode. 224 May be the most useful syncing mode.
225 225
226 -Ask for every entry on conflict: 226 -Ask for every entry on conflict:
227 Pops up an event viewer dialog and 227 Pops up an event viewer dialog and
228 shows the two conflicting entries there. 228 shows the two conflicting entries there.
229 The user can chose, which entry he would like to take. 229 The user can chose, which entry he would like to take.
230 The button for the newest entry 230 The button for the newest entry
231 is automatically set as default button. 231 is automatically set as default button.
232 The color for the newest entry is green. 232 The color for the newest entry is green.
233 233
234 -Force: Take local entry always: 234 -Force: Take local entry always:
235 Even if the calendars are already synced 235 Even if the calendars are already synced
236 there is no item deleted on local. 236 there is no item deleted on local.
237 237
238 -Force: Take remote entry always: 238 -Force: Take remote entry always:
239 Analogous to 239 Analogous to
240 "Force: Take local entry always" 240 "Force: Take local entry always"
241 241
242************************************************************************* 242*************************************************************************
2435) Details about sync profile kinds 2435) Details about sync profile kinds
244************************************************************************* 244*************************************************************************
245 245
246a) Local file 246a) Local file
247 Please specify a local file you want to sync with. 247 Please specify a local file you want to sync with.
248 248
249b) Pi-Sync (direct Kx/Pi to Kx/Pi sync) 249b) Pi-Sync (direct Kx/Pi to Kx/Pi sync)
250 We mention here only KO/Pi, but the same is valid for KA/Pi. 250 We mention here only KO/Pi, but the same is valid for KA/Pi.
251 If you want to sync with a device, where KO/Pi is 251 If you want to sync with a device, where KO/Pi is
252 installed, you can easily get the remote file via network 252 installed, you can easily get the remote file via network
253 with the build in file transfer feature "Pi-Sync": 253 with the build in file transfer feature "Pi-Sync":
254 You have first to enable file transfer on the remote device: 254 You have first to enable file transfer on the remote device:
255 - Start KO/Pi on the remote device. 255 - Start KO/Pi on the remote device.
256 - Choose Menu Synchronize-Enable Pi-Sync. 256 - Choose Menu Synchronize-Enable Pi-Sync.
257 - Choose a port number, where KO/Pi should listen for 257 - Choose a port number, where KO/Pi should listen for
258 file sending requests. Valid port numbers are numbers 258 file sending requests. Valid port numbers are numbers
259 between 1 and 65565. Do not specify port numbers, that are 259 between 1 and 65565. Do not specify port numbers, that are
260 used by other applications. A port number between 9000 and 9999 260 used by other applications. A port number between 9000 and 9999
261 is most likely not used by another application. 261 is most likely not used by another application.
262 The default port number is 9197 for KO/Pi. 262 The default port number is 9197 for KO/Pi.
263 If you specify a port number, which is already in use, 263 If you specify a port number, which is already in use,
264 you will get an error message when closing this dialog. 264 you will get an error message when closing this dialog.
265 - Choose a password. 265 - Choose a password.
266 - Click OK. 266 - Click OK.
267 Now KO/Pi will send the calendar data via the network, 267 Now KO/Pi will send the calendar data via the network,
268 if some other device is sending a "please send calendar" 268 if some other device is sending a "please send calendar"
269 request on the given port using the given password. 269 request on the given port using the given password.
270 If you want to be sure, nobody can access your calendar 270 If you want to be sure, nobody can access your calendar
271 data, simply disable the file transfer feature on the 271 data, simply disable the file transfer feature on the
272 remote device after the syncing is done by choosing: 272 remote device after the syncing is done by choosing:
273 Menu Synchronize-Disable Pi-Sync. 273 Menu Synchronize-Disable Pi-Sync.
274 274
275 Note: If you want to sync with a remote device that gets different 275 Note: If you want to sync with a remote device that gets different
276 IPaddresses each time connected to the network 276 IPaddresses each time connected to the network
277 (this may be the case, if you use DHCP for connection 277 (this may be the case, if you use DHCP for connection
278 of the remote device to the network) simply enable 278 of the remote device to the network) simply enable
279 "Ask for preferences before sync". 279 "Ask for preferences before sync".
280 Then you will be asked to confirm the 280 Then you will be asked to confirm the
281 "Pi-Sync" specific settings 281 "Pi-Sync" specific settings
282 (Password,IP address, port number) 282 (Password,IP address, port number)
283 and you can easily change the IP address before each sync. 283 and you can easily change the IP address before each sync.
284 284
285 On your local device, create a new profile and choose 285 On your local device, create a new profile and choose
286 profile kind "Pi-Sync". 286 profile kind "Pi-Sync".
287 Fill in the needed values: 287 Fill in the needed values:
288 - Password for remote access: 288 - Password for remote access:
289 The password you specified on the remote device. 289 The password you specified on the remote device.
290 - Remote IP address: 290 - Remote IP address:
291 The IP address of the remote device. 291 The IP address of the remote device.
292 - Remote port number: 292 - Remote port number:
293 The port number you specified on the remote device. 293 The port number you specified on the remote device.
294 294
295 Now you can syncronize your local device easily with your 295 Now you can syncronize your local device easily with your
296 remote device. This works well for all platforms KO/Pi is 296 remote device. This works well for all platforms KO/Pi is
297 running on, e.g. syncing a KO/Pi on Zaurus with KO/Pi on Windows 297 running on, e.g. syncing a KO/Pi on Zaurus with KO/Pi on Windows
298 is now very easy. 298 is now very easy.
299 299
300c) Remote file 300c) Remote file
301 Syncing with the profile kind "Remote file" is performed in three steps: 301 Syncing with the profile kind "Remote file" is performed in three steps:
302 i) download the remote file to your local machine to a temp file 302 i) download the remote file to your local machine to a temp file
303 ii) sync with this temp file 303 ii) sync with this temp file
304 iii) upload the synced file to the remote device 304 iii) upload the synced file to the remote device
305 305
306 The down-/uploading if i) and iii) is done via a command line command. 306 The down-/uploading if i) and iii) is done via a command line command.
307 Please specify the download/upload command ( like scp, ftp, ...) and the 307 Please specify the download/upload command ( like scp, ftp, ...) and the
308 file name of the temp file in the corresponding fields. 308 file name of the temp file in the corresponding fields.
309 309
310d) Mobile device (cell phone) 310d) Mobile device (cell phone)
311 Note: On the Zaurus you have to install the kammu_xxx_arm.ipk package 311 Note: On the Zaurus you have to install the phoneaccess_xxx_arm.ipk package
312 to be able to access mobile phones. 312 to be able to access mobile phones.
313 We mention here only KO/Pi, but the same is valid for KA/Pi. 313 We mention here only KO/Pi, but the same is valid for KA/Pi.
314 Note: 314 Note:
315 It is only possible to sync a mobile phone with one particular device 315 It is only possible to sync a mobile phone with one particular device
316 running KO/Pi. If you want to be able to write data of more than one device 316 running KO/Pi. If you want to be able to write data of more than one device
317 to the mobile phone (e.g. from your Zaurus and from your Windows Laptop) 317 to the mobile phone (e.g. from your Zaurus and from your Windows Laptop)
318 do not sync with the mobile phone at all, but use the 318 do not sync with the mobile phone at all, but use the
319 "Export to phone" functionality from the different devices. 319 "Export to phone" functionality from the different devices.
320 Using "Export to phone" makes it not possible to get back data from the 320 Using "Export to phone" makes it not possible to get back data from the
321 phone, if it was changed there, of course. 321 phone, if it was changed there, of course.
322 If you sync with the phone, do not use "Export to phone" from any device. 322 If you sync with the phone, do not use "Export to phone" from any device.
323 (And do not sync, as mentioned above, from any other device with that phone). 323 (And do not sync, as mentioned above, from any other device with that phone).
324 It would delete the needed information for syncing with that phone! 324 It would delete the needed information for syncing with that phone!
325 325
326 We are using Gammu (Version: 0.98.9) ( http://freshmeat.net/projects/gammu/ ) 326 We are using Gammu (Version: 0.98.9) ( http://freshmeat.net/projects/gammu/ )
327 for accessing the phones. 327 for accessing the phones.
328 Note: You cannot use the original Gammu for syncing KDE-Pim/Pi, because 328 Note: You cannot use the original Gammu for syncing KDE-Pim/Pi, because
329 we have modified the original version to make it useable for syncing! 329 we have modified the original version to make it useable for syncing!
330 Gammu allows access to many phones in many ways (Irda, Bluetooth, serial,...). 330 Gammu allows access to many phones in many ways (Irda, Bluetooth, serial,...).
331 The recommended phone access using Gammu with KDE-Pim/Pi is Irda (infrared). 331 The recommended phone access using Gammu with KDE-Pim/Pi is Irda (infrared).
332 Bluetooth access is disabled on the Zaurus, but may work on Windows. 332 Bluetooth access is disabled on the Zaurus, but may work on Windows.
333 Please look at the Gammu homepage and documentation about more details 333 Please look at the Gammu homepage and documentation about more details
334 configuring Gammu how to access your phone. 334 configuring Gammu how to access your phone.
335 If you have problems accessing your phone, start KO/Pi from the konsole 335 If you have problems accessing your phone, start KO/Pi from the konsole
336 and you will get a more detailed output what went wrong. 336 and you will get a more detailed output what went wrong.
337 About Gammu from the Gammu homepage: 337 About Gammu from the Gammu homepage:
338 Gammu (formerly known as MyGnokii2) is a cellular 338 Gammu (formerly known as MyGnokii2) is a cellular
339 manager for various mobile phones/modems. 339 manager for various mobile phones/modems.
340 It supports the Nokia 2100, 3100, 32xx, 33xx, 340 It supports the Nokia 2100, 3100, 32xx, 33xx,
341 3410, 35xx, 51xx, 5210, 5510, 61xx, 62xx, 341 3410, 35xx, 51xx, 5210, 5510, 61xx, 62xx,
342 63xx, 6510, 6610, 6800, 71xx, 7210, 7250, 342 63xx, 6510, 6610, 6800, 71xx, 7210, 7250,
343 7250i, 82xx, 83xx, 8910, 9110, 9210 343 7250i, 82xx, 83xx, 8910, 9110, 9210
344 and compatible and AT devices (Siemens, Alcatel, 344 and compatible and AT devices (Siemens, Alcatel,
345 Falcom, WaveCom, IPAQ, Samsung, SE, and others) 345 Falcom, WaveCom, IPAQ, Samsung, SE, and others)
346 over cables/infrared/BlueTooth. 346 over cables/infrared/BlueTooth.
347 347
348 Here is an example what to specify to access a Nokia 6310i via infrared: 348 Here is an example what to specify to access a Nokia 6310i via infrared:
349 On Linux (Zaurus): 349 On Linux (Zaurus):
350 I/O device: /dev/ircomm 350 I/O device: /dev/ircomm
351 Connection: irda 351 Connection: irda
352 Model: <leave empty> 352 Model: <leave empty>
353 353
354 On Windows: 354 On Windows:
355 I/O device: <ignored - i.e. leave empty> 355 I/O device: <ignored - i.e. leave empty>
356 Connection: irda 356 Connection: irda
357 Model: <leave empty> 357 Model: <leave empty>
358 358
359 Here is the overview from the Gammu documentation, 359 Here is the overview from the Gammu documentation,
360 how to specify the connection settings for 360 how to specify the connection settings for
361 I/O device: 361 I/O device:
362 Connection: 362 Connection:
363 Model: 363 Model:
364 364
365 Note: The documentation uses the term "port", 365 Note: The documentation uses the term "port",
366 where we use the term "I/O device". 366 where we use the term "I/O device".
367 Note: You do not have to create/change the gammurc configuration file. 367 Note: You do not have to create/change the gammurc configuration file.
368 That will do KO/Pi for you. 368 That will do KO/Pi for you.
369 Note: For a known model, leave "Model:" always empty, 369 Note: For a known model, leave "Model:" always empty,
370 such that Gammu can auto detect the model. 370 such that Gammu can auto detect the model.
371 371
372# This is a sample ~/.gammurc file. 372# This is a sample ~/.gammurc file.
373# In Unix/Linux copy it into your home directory and name it .gammurc 373# In Unix/Linux copy it into your home directory and name it .gammurc
374# or into /etc and name it gammurc 374# or into /etc and name it gammurc
375# In Win32 copy it into directory with Gammu.exe and name gammurc 375# In Win32 copy it into directory with Gammu.exe and name gammurc
376# More about parameters later 376# More about parameters later
377# ----------------------------------------------------------------------------- 377# -----------------------------------------------------------------------------
378 378
379[gammu] 379[gammu]
380 380
381port = com8: 381port = com8:
382#model = 6110 382#model = 6110
383connection = fbusblue 383connection = fbusblue
384#synchronizetime = yes 384#synchronizetime = yes
385#logfile = gammulog 385#logfile = gammulog
386#logformat = textall 386#logformat = textall
387#use_locking = yes 387#use_locking = yes
388#gammuloc = locfile 388#gammuloc = locfile
389#startinfo = yes 389#startinfo = yes
390#gammucoding = utf8 390#gammucoding = utf8
391 391
392[gammu1] 392[gammu1]
393 393
394port = com8: 394port = com8:
395#model = 6110 395#model = 6110
396connection = fbusblue 396connection = fbusblue
397#synchronizetime = yes 397#synchronizetime = yes
398#logfile = gammulog 398#logfile = gammulog
399#logformat = textall 399#logformat = textall
400#use_locking = yes 400#use_locking = yes
401#gammuloc = locfile 401#gammuloc = locfile
402#startinfo = yes 402#startinfo = yes
403#gammucoding = utf8 403#gammucoding = utf8
404 404
405# ----------------------------------------------------------------------------- 405# -----------------------------------------------------------------------------
406# Now info about "Connection" parameter and connected with it port type 406# Now info about "Connection" parameter and connected with it port type
407# (more about port types later) 407# (more about port types later)
408# ----------------------------------------------------------------------------- 408# -----------------------------------------------------------------------------
409# "Connection" parameter | Port type | More details 409# "Connection" parameter | Port type | More details
410# -----------------------|-----------|----------------------------------------- 410# -----------------------|-----------|-----------------------------------------
411# "fbus" | serial | Nokia FBUS2 411# "fbus" | serial | Nokia FBUS2
412# "fbusirda"/"infrared" | serial | Nokia FBUS2 over direct infrared device 412# "fbusirda"/"infrared" | serial | Nokia FBUS2 over direct infrared device
413# "fbusdlr3"/"dlr3" | serial | Nokia FBUS2 with DLR3 cable 413# "fbusdlr3"/"dlr3" | serial | Nokia FBUS2 with DLR3 cable
414# "fbusdku5" | dku5 | Nokia FBUS2 with DKU5 cable. WIN32 ONLY 414# "fbusdku5" | dku5 | Nokia FBUS2 with DKU5 cable. WIN32 ONLY
415# "fbuspl2303" | usb | Nokia FBUS2 with USB cable based on 415# "fbuspl2303" | usb | Nokia FBUS2 with USB cable based on
416# | | PL2303 chip. 416# | | PL2303 chip.
417# "fbusblue" | serial | Nokia FBUS2 over Bluetooth serial device 417# "fbusblue" | serial | Nokia FBUS2 over Bluetooth serial device
418# "phonetblue" | serial | Nokia PHONET FBUS over Bluetooth serial 418# "phonetblue" | serial | Nokia PHONET FBUS over Bluetooth serial
419# | | device 419# | | device
420# "mrouterblue" | serial | 420# "mrouterblue" | serial |
421# "mbus" | serial | Nokia MBUS2 421# "mbus" | serial | Nokia MBUS2
422# "at19200"/"at115200"/..| serial | AT commands.8 bits, None parity, 1 stop 422# "at19200"/"at115200"/..| serial | AT commands.8 bits, None parity, 1 stop
423# | | bit, no flow control 423# | | bit, no flow control
424# -----------------------|-----------|----------------------------------------- 424# -----------------------|-----------|-----------------------------------------
425# "irdaphonet"/"irda" | irda | Nokia PHONET FBUS over socket infrared 425# "irdaphonet"/"irda" | irda | Nokia PHONET FBUS over socket infrared
426# "irdaat" | irda | AT commands with socket infrared 426# "irdaat" | irda | AT commands with socket infrared
427# "irdaobex" | irda | OBEX over socket infrared. MODEL "obex" 427# "irdaobex" | irda | OBEX over socket infrared. MODEL "obex"
428# -----------------------|-----------|----------------------------------------- 428# -----------------------|-----------|-----------------------------------------
429# "bluephonet" | BT | Nokia PHONET FBUS with Bluetooth stack 429# "bluephonet" | BT | Nokia PHONET FBUS with Bluetooth stack
430# "bluefbus"/"dlr3blue" | BT | Nokia FBUS2 with Bluetooth stack 430# "bluefbus"/"dlr3blue" | BT | Nokia FBUS2 with Bluetooth stack
431# "blueat"/"atblue" | BT | AT commands with Bluetooth stack 431# "blueat"/"atblue" | BT | AT commands with Bluetooth stack
432# "blueobex" | BT | OBEX with Bluetooth. MODEL "obex" 432# "blueobex" | BT | OBEX with Bluetooth. MODEL "obex"
433# 433#
434# Now more about port types and connected with it "Port" parameter 434# Now more about port types and connected with it "Port" parameter
435# ----------------------------------------------------------------------------- 435# -----------------------------------------------------------------------------
436# Port type | "Port" parameter in Windows/DOS | "Port" parameter in Linux/Unix 436# Port type | "Port" parameter in Windows/DOS | "Port" parameter in Linux/Unix
437# ----------|---------------------------------|-------------------------------- 437# ----------|---------------------------------|--------------------------------
438# serial | "com*:" | "/dev/ttyS*" 438# serial | "com*:" | "/dev/ttyS*"
439# | (example "com1:") | (example "/dev/ttyS1") 439# | (example "com1:") | (example "/dev/ttyS1")
440# | | or "/dev/tts/**" (with DevFS) 440# | | or "/dev/tts/**" (with DevFS)
441# ----------|---------------------------------|-------------------------------- 441# ----------|---------------------------------|--------------------------------
442# irda | ignored (can be empty) | "/dev/ircomm*" 442# irda | ignored (can be empty) | "/dev/ircomm*"
443# ----------|---------------------------------|-------------------------------- 443# ----------|---------------------------------|--------------------------------
444# BT | Bluetooth device address 444# BT | Bluetooth device address
445# | (example "") 445# | (example "")
446# ----------|---------------------------------|-------------------------------- 446# ----------|---------------------------------|--------------------------------
447# dku5 | ignored (can be empty) | connection with it not possible 447# dku5 | ignored (can be empty) | connection with it not possible
448# ----------|---------------------------------|-------------------------------- 448# ----------|---------------------------------|--------------------------------
449# usb | connection with it not possible | "/dev/ttyUSB*" 449# usb | connection with it not possible | "/dev/ttyUSB*"
450# 450#
451# Other config parameters 451# Other config parameters
452# ----------------------------------------------------------------------------- 452# -----------------------------------------------------------------------------
453# Parameter name | Description 453# Parameter name | Description
454# ----------------|------------------------------------------------------------ 454# ----------------|------------------------------------------------------------
455# Model | use only, when Gammu doesn't recognize your phone model. 455# Model | use only, when Gammu doesn't recognize your phone model.
456# | Put it here. Example values: "6110", "6150", "6210", "8210" 456# | Put it here. Example values: "6110", "6150", "6210", "8210"
457# SynchronizeTime | if you want to set time from computer to phone during 457# SynchronizeTime | if you want to set time from computer to phone during
458# | starting connection. Do not rather use this option when 458# | starting connection. Do not rather use this option when
459# | when to reset phone during connection (in some phones need 459# | when to reset phone during connection (in some phones need
460# | to set time again after restart) 460# | to set time again after restart)
461# GammuLoc | name of localisation file 461# GammuLoc | name of localisation file
462# StartInfo | this option allow to set, that you want (setting "yes") 462# StartInfo | this option allow to set, that you want (setting "yes")
463# | to see message on the phone screen or phone should enable 463# | to see message on the phone screen or phone should enable
464# | light for a moment during starting connection. Phone 464# | light for a moment during starting connection. Phone
465# | WON'T beep during starting connection with this option. 465# | WON'T beep during starting connection with this option.
466# GammuCoding | forces using specified codepage (in win32 - for example 466# GammuCoding | forces using specified codepage (in win32 - for example
467# | "1250" will force CP1250) or UTF8 (in Linux - "utf8") 467# | "1250" will force CP1250) or UTF8 (in Linux - "utf8")
468# ----------------|------------------------------------------------------------ 468# ----------------|------------------------------------------------------------
469# Logfile | Use, when want to have logfile from communication. 469# Logfile | Use, when want to have logfile from communication.
470# Logformat | What debug info and format should be used: 470# Logformat | What debug info and format should be used:
471# | "nothing" - no debug level (default) 471# | "nothing" - no debug level (default)
472# | "text" - transmission dump in text format 472# | "text" - transmission dump in text format
473# | "textall" - all possible info in text format 473# | "textall" - all possible info in text format
474# | "errors" - errors in text format 474# | "errors" - errors in text format
475# | "binary" - transmission dump in binary format 475# | "binary" - transmission dump in binary format
476# ----------------|------------------------------------------------------------ 476# ----------------|------------------------------------------------------------
477# Use_Locking | under Unix/Linux use "yes", if want to lock used device 477# Use_Locking | under Unix/Linux use "yes", if want to lock used device
478# | to prevent using it by other applications. In win32 ignored 478# | to prevent using it by other applications. In win32 ignored
479 479
480 480
481 481
482 482
483 \ No newline at end of file 483 \ No newline at end of file
diff --git a/gammu/emb/gammu/gammu.c b/gammu/emb/gammu/gammu.c
index c436b90..8db9afb 100644
--- a/gammu/emb/gammu/gammu.c
+++ b/gammu/emb/gammu/gammu.c
@@ -3670,769 +3670,769 @@ static void SendSaveDisplaySMS(int argc, char *argv[])
3670 } 3670 }
3671 } 3671 }
3672 } 3672 }
3673 } 3673 }
3674 3674
3675 error=GSM_EncodeMultiPartSMS(&SMSInfo,&sms); 3675 error=GSM_EncodeMultiPartSMS(&SMSInfo,&sms);
3676 Print_Error(error); 3676 Print_Error(error);
3677 3677
3678 for (i=0;i<SMSInfo.EntriesNum;i++) { 3678 for (i=0;i<SMSInfo.EntriesNum;i++) {
3679 switch (SMSInfo.Entries[i].ID) { 3679 switch (SMSInfo.Entries[i].ID) {
3680 case SMS_NokiaRingtone: 3680 case SMS_NokiaRingtone:
3681 case SMS_NokiaRingtoneLong: 3681 case SMS_NokiaRingtoneLong:
3682 case SMS_NokiaProfileLong: 3682 case SMS_NokiaProfileLong:
3683 case SMS_EMSSound10: 3683 case SMS_EMSSound10:
3684 case SMS_EMSSound12: 3684 case SMS_EMSSound12:
3685 case SMS_EMSSonyEricssonSound: 3685 case SMS_EMSSonyEricssonSound:
3686 case SMS_EMSSound10Long: 3686 case SMS_EMSSound10Long:
3687 case SMS_EMSSound12Long: 3687 case SMS_EMSSound12Long:
3688 case SMS_EMSSonyEricssonSoundLong: 3688 case SMS_EMSSonyEricssonSoundLong:
3689 if (SMSInfo.Entries[i].RingtoneNotes!=SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands) { 3689 if (SMSInfo.Entries[i].RingtoneNotes!=SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands) {
3690 printmsg("Warning: ringtone too long. %i percent part cut\n", 3690 printmsg("Warning: ringtone too long. %i percent part cut\n",
3691 (SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands-SMSInfo.Entries[i].RingtoneNotes)*100/SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands); 3691 (SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands-SMSInfo.Entries[i].RingtoneNotes)*100/SMSInfo.Entries[i].Ringtone->NoteTone.NrCommands);
3692 } 3692 }
3693 default: 3693 default:
3694 break; 3694 break;
3695 3695
3696 } 3696 }
3697 } 3697 }
3698 if (MaxSMS != -1 && sms.Number > MaxSMS) { 3698 if (MaxSMS != -1 && sms.Number > MaxSMS) {
3699 printmsg("There is %i SMS packed and %i limit. Exiting\n",sms.Number,MaxSMS); 3699 printmsg("There is %i SMS packed and %i limit. Exiting\n",sms.Number,MaxSMS);
3700 if (!mystrncasecmp(argv[1],"--displaysms",0) && !mystrncasecmp(argv[1],"--sendsmsdsms",0)) GSM_Terminate(); 3700 if (!mystrncasecmp(argv[1],"--displaysms",0) && !mystrncasecmp(argv[1],"--sendsmsdsms",0)) GSM_Terminate();
3701 exit(-1); 3701 exit(-1);
3702 } 3702 }
3703 3703
3704 if (mystrncasecmp(argv[1],"--displaysms",0)) { 3704 if (mystrncasecmp(argv[1],"--displaysms",0)) {
3705 if (SMSCSet != 0) { 3705 if (SMSCSet != 0) {
3706 printmsg("Use -smscnumber option to give SMSC number\n"); 3706 printmsg("Use -smscnumber option to give SMSC number\n");
3707 exit(-1); 3707 exit(-1);
3708 } 3708 }
3709 3709
3710 for (i=0;i<sms.Number;i++) { 3710 for (i=0;i<sms.Number;i++) {
3711 sms.SMS[i].Location = 0; 3711 sms.SMS[i].Location = 0;
3712 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC; 3712 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC;
3713 sms.SMS[i].SMSC.Location = 0; 3713 sms.SMS[i].SMSC.Location = 0;
3714 sms.SMS[i].PDU = SMS_Submit; 3714 sms.SMS[i].PDU = SMS_Submit;
3715 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report; 3715 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report;
3716 CopyUnicodeString(sms.SMS[i].Number, Sender); 3716 CopyUnicodeString(sms.SMS[i].Number, Sender);
3717 CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC); 3717 CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC);
3718 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity)); 3718 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity));
3719 DisplaySMSFrame(&sms.SMS[i]); 3719 DisplaySMSFrame(&sms.SMS[i]);
3720 } 3720 }
3721 3721
3722 printmsg("\nNumber of SMS: %i\n",sms.Number); 3722 printmsg("\nNumber of SMS: %i\n",sms.Number);
3723 exit(sms.Number); 3723 exit(sms.Number);
3724 } 3724 }
3725 if (mystrncasecmp(argv[1],"--sendsmsdsms",0)) { 3725 if (mystrncasecmp(argv[1],"--sendsmsdsms",0)) {
3726 if (SMSCSet != 0) { 3726 if (SMSCSet != 0) {
3727 printmsg("Use -smscnumber option to give SMSC number\n"); 3727 printmsg("Use -smscnumber option to give SMSC number\n");
3728 exit(-1); 3728 exit(-1);
3729 } 3729 }
3730 3730
3731 for (i=0;i<sms.Number;i++) { 3731 for (i=0;i<sms.Number;i++) {
3732 sms.SMS[i].Location = 0; 3732 sms.SMS[i].Location = 0;
3733 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC; 3733 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC;
3734 sms.SMS[i].SMSC.Location = 0; 3734 sms.SMS[i].SMSC.Location = 0;
3735 sms.SMS[i].PDU = SMS_Submit; 3735 sms.SMS[i].PDU = SMS_Submit;
3736 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report; 3736 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report;
3737 CopyUnicodeString(sms.SMS[i].Number, Sender); 3737 CopyUnicodeString(sms.SMS[i].Number, Sender);
3738 CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC); 3738 CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC);
3739 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity)); 3739 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity));
3740 } 3740 }
3741 SMSDaemonSendSMS(argv[4],argv[5],&sms); 3741 SMSDaemonSendSMS(argv[4],argv[5],&sms);
3742 exit(0); 3742 exit(0);
3743 } 3743 }
3744 if (mystrncasecmp(argv[1],"--savesms",0) || SendSaved) { 3744 if (mystrncasecmp(argv[1],"--savesms",0) || SendSaved) {
3745 error=Phone->GetSMSFolders(&s, &folders); 3745 error=Phone->GetSMSFolders(&s, &folders);
3746 Print_Error(error); 3746 Print_Error(error);
3747 3747
3748 if (SendSaved){ 3748 if (SendSaved){
3749 if (Validity.Format != 0 && SMSCSet != 0) { 3749 if (Validity.Format != 0 && SMSCSet != 0) {
3750 PhoneSMSC.Location = SMSCSet; 3750 PhoneSMSC.Location = SMSCSet;
3751 error=Phone->GetSMSC(&s,&PhoneSMSC); 3751 error=Phone->GetSMSC(&s,&PhoneSMSC);
3752 Print_Error(error); 3752 Print_Error(error);
3753 CopyUnicodeString(SMSC,PhoneSMSC.Number); 3753 CopyUnicodeString(SMSC,PhoneSMSC.Number);
3754 SMSCSet = 0; 3754 SMSCSet = 0;
3755 } 3755 }
3756 3756
3757 s.User.SendSMSStatus = SendSMSStatus; 3757 s.User.SendSMSStatus = SendSMSStatus;
3758 3758
3759 signal(SIGINT, interrupt); 3759 signal(SIGINT, interrupt);
3760 printmsgerr("If you want break, press Ctrl+C...\n"); 3760 printmsgerr("If you want break, press Ctrl+C...\n");
3761 } 3761 }
3762 3762
3763 for (i=0;i<sms.Number;i++) { 3763 for (i=0;i<sms.Number;i++) {
3764 printmsg("Saving SMS %i/%i\n",i+1,sms.Number); 3764 printmsg("Saving SMS %i/%i\n",i+1,sms.Number);
3765 // sms.SMS[i].Location = 0; 3765 // sms.SMS[i].Location = 0;
3766 sms.SMS[i].Folder = Folder; 3766 sms.SMS[i].Folder = Folder;
3767 sms.SMS[i].State = State; 3767 sms.SMS[i].State = State;
3768 sms.SMS[i].ReplyViaSameSMSC= ReplyViaSameSMSC; 3768 sms.SMS[i].ReplyViaSameSMSC= ReplyViaSameSMSC;
3769 sms.SMS[i].SMSC.Location= SMSCSet; 3769 sms.SMS[i].SMSC.Location= SMSCSet;
3770 3770
3771 if (SendSaved){ 3771 if (SendSaved){
3772 sms.SMS[i].PDU= SMS_Submit; 3772 sms.SMS[i].PDU= SMS_Submit;
3773 if (DeliveryReport) sms.SMS[i].PDU = SMS_Status_Report; 3773 if (DeliveryReport) sms.SMS[i].PDU = SMS_Status_Report;
3774 if (Validity.Format != 0) sms.SMS[i].SMSC.Validity = Validity; 3774 if (Validity.Format != 0) sms.SMS[i].SMSC.Validity = Validity;
3775 } else { 3775 } else {
3776 sms.SMS[i].PDU= SMS_Deliver; 3776 sms.SMS[i].PDU= SMS_Deliver;
3777 } 3777 }
3778 3778
3779 CopyUnicodeString(sms.SMS[i].Number, Sender); 3779 CopyUnicodeString(sms.SMS[i].Number, Sender);
3780 CopyUnicodeString(sms.SMS[i].Name, Name); 3780 CopyUnicodeString(sms.SMS[i].Name, Name);
3781 if (SMSCSet==0) CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC); 3781 if (SMSCSet==0) CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC);
3782 error=Phone->AddSMS(&s, &sms.SMS[i]); 3782 error=Phone->AddSMS(&s, &sms.SMS[i]);
3783 Print_Error(error); 3783 Print_Error(error);
3784 printmsg("Saved in folder \"%s\", location %i\n", 3784 printmsg("Saved in folder \"%s\", location %i\n",
3785 DecodeUnicodeConsole(folders.Folder[sms.SMS[i].Folder-1].Name),sms.SMS[i].Location); 3785 DecodeUnicodeConsole(folders.Folder[sms.SMS[i].Folder-1].Name),sms.SMS[i].Location);
3786 3786
3787 if (SendSaved) { 3787 if (SendSaved) {
3788 printmsg("Sending sms from folder \"%s\", location %i\n", 3788 printmsg("Sending sms from folder \"%s\", location %i\n",
3789 DecodeUnicodeString(folders.Folder[sms.SMS[i].Folder-1].Name),sms.SMS[i].Location); 3789 DecodeUnicodeString(folders.Folder[sms.SMS[i].Folder-1].Name),sms.SMS[i].Location);
3790 SMSStatus = ERR_TIMEOUT; 3790 SMSStatus = ERR_TIMEOUT;
3791 error=Phone->SendSavedSMS(&s, 0, sms.SMS[i].Location); 3791 error=Phone->SendSavedSMS(&s, 0, sms.SMS[i].Location);
3792 Print_Error(error); 3792 Print_Error(error);
3793 printmsg("....waiting for network answer"); 3793 printmsg("....waiting for network answer");
3794 while (!gshutdown) { 3794 while (!gshutdown) {
3795 GSM_ReadDevice(&s,true); 3795 GSM_ReadDevice(&s,true);
3796 if (SMSStatus == ERR_UNKNOWN) { 3796 if (SMSStatus == ERR_UNKNOWN) {
3797 GSM_Terminate(); 3797 GSM_Terminate();
3798 exit(-1); 3798 exit(-1);
3799 } 3799 }
3800 if (SMSStatus == ERR_NONE) break; 3800 if (SMSStatus == ERR_NONE) break;
3801 } 3801 }
3802 } 3802 }
3803 } 3803 }
3804 } else { 3804 } else {
3805 if (Validity.Format != 0 && SMSCSet != 0) { 3805 if (Validity.Format != 0 && SMSCSet != 0) {
3806 PhoneSMSC.Location = SMSCSet; 3806 PhoneSMSC.Location = SMSCSet;
3807 error=Phone->GetSMSC(&s,&PhoneSMSC); 3807 error=Phone->GetSMSC(&s,&PhoneSMSC);
3808 Print_Error(error); 3808 Print_Error(error);
3809 CopyUnicodeString(SMSC,PhoneSMSC.Number); 3809 CopyUnicodeString(SMSC,PhoneSMSC.Number);
3810 SMSCSet = 0; 3810 SMSCSet = 0;
3811 } 3811 }
3812 3812
3813 signal(SIGINT, interrupt); 3813 signal(SIGINT, interrupt);
3814 printmsgerr("If you want break, press Ctrl+C...\n"); 3814 printmsgerr("If you want break, press Ctrl+C...\n");
3815 3815
3816 s.User.SendSMSStatus = SendSMSStatus; 3816 s.User.SendSMSStatus = SendSMSStatus;
3817 3817
3818 for (i=0;i<sms.Number;i++) { 3818 for (i=0;i<sms.Number;i++) {
3819 printmsg("Sending SMS %i/%i",i+1,sms.Number); 3819 printmsg("Sending SMS %i/%i",i+1,sms.Number);
3820 sms.SMS[i].Location = 0; 3820 sms.SMS[i].Location = 0;
3821 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC; 3821 sms.SMS[i].ReplyViaSameSMSC = ReplyViaSameSMSC;
3822 sms.SMS[i].SMSC.Location = SMSCSet; 3822 sms.SMS[i].SMSC.Location = SMSCSet;
3823 sms.SMS[i].PDU = SMS_Submit; 3823 sms.SMS[i].PDU = SMS_Submit;
3824 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report; 3824 if (DeliveryReport) sms.SMS[i].PDU= SMS_Status_Report;
3825 CopyUnicodeString(sms.SMS[i].Number, Sender); 3825 CopyUnicodeString(sms.SMS[i].Number, Sender);
3826 if (SMSCSet==0) CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC); 3826 if (SMSCSet==0) CopyUnicodeString(sms.SMS[i].SMSC.Number, SMSC);
3827 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity)); 3827 if (Validity.Format != 0) memcpy(&sms.SMS[i].SMSC.Validity,&Validity,sizeof(GSM_SMSValidity));
3828 SMSStatus = ERR_TIMEOUT; 3828 SMSStatus = ERR_TIMEOUT;
3829 error=Phone->SendSMS(&s, &sms.SMS[i]); 3829 error=Phone->SendSMS(&s, &sms.SMS[i]);
3830 Print_Error(error); 3830 Print_Error(error);
3831 printmsg("....waiting for network answer"); 3831 printmsg("....waiting for network answer");
3832 while (!gshutdown) { 3832 while (!gshutdown) {
3833 GSM_ReadDevice(&s,true); 3833 GSM_ReadDevice(&s,true);
3834 if (SMSStatus == ERR_UNKNOWN) { 3834 if (SMSStatus == ERR_UNKNOWN) {
3835 GSM_Terminate(); 3835 GSM_Terminate();
3836 exit(-1); 3836 exit(-1);
3837 } 3837 }
3838 if (SMSStatus == ERR_NONE) break; 3838 if (SMSStatus == ERR_NONE) break;
3839 } 3839 }
3840 } 3840 }
3841 } 3841 }
3842 3842
3843 GSM_Terminate(); 3843 GSM_Terminate();
3844} 3844}
3845 3845
3846#ifdef GSM_ENABLE_BACKUP 3846#ifdef GSM_ENABLE_BACKUP
3847static void SaveFile(int argc, char *argv[]) 3847static void SaveFile(int argc, char *argv[])
3848{ 3848{
3849 GSM_Backup Backup; 3849 GSM_Backup Backup;
3850 int i,j; 3850 int i,j;
3851 FILE *file; 3851 FILE *file;
3852 unsigned char Buffer[10000]; 3852 unsigned char Buffer[10000];
3853 GSM_MemoryEntry *pbk; 3853 GSM_MemoryEntry *pbk;
3854 3854
3855 if (mystrncasecmp(argv[2],"CALENDAR",0)) { 3855 if (mystrncasecmp(argv[2],"CALENDAR",0)) {
3856 if (argc<5) { 3856 if (argc<5) {
3857 printmsg("Where is backup filename and location ?\n"); 3857 printmsg("Where is backup filename and location ?\n");
3858 exit(-1); 3858 exit(-1);
3859 } 3859 }
3860 error=GSM_ReadBackupFile(argv[4],&Backup); 3860 error=GSM_ReadBackupFile(argv[4],&Backup);
3861 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error); 3861 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error);
3862 i = 0; 3862 i = 0;
3863 while (Backup.Calendar[i]!=NULL) { 3863 while (Backup.Calendar[i]!=NULL) {
3864 if (i == atoi(argv[5])-1) break; 3864 if (i == atoi(argv[5])-1) break;
3865 i++; 3865 i++;
3866 } 3866 }
3867 if (i != atoi(argv[5])-1) { 3867 if (i != atoi(argv[5])-1) {
3868 printmsg("Calendar note not found in file\n"); 3868 printmsg("Calendar note not found in file\n");
3869 exit(-1); 3869 exit(-1);
3870 } 3870 }
3871 j = 0; 3871 j = 0;
3872 GSM_EncodeVCALENDAR(Buffer, &j, Backup.Calendar[i],true,Nokia_VCalendar); 3872 GSM_EncodeVCALENDAR(Buffer, &j, Backup.Calendar[i],true,Nokia_VCalendar);
3873 } else if (mystrncasecmp(argv[2],"BOOKMARK",0)) { 3873 } else if (mystrncasecmp(argv[2],"BOOKMARK",0)) {
3874 if (argc<5) { 3874 if (argc<5) {
3875 printmsg("Where is backup filename and location ?\n"); 3875 printmsg("Where is backup filename and location ?\n");
3876 exit(-1); 3876 exit(-1);
3877 } 3877 }
3878 error=GSM_ReadBackupFile(argv[4],&Backup); 3878 error=GSM_ReadBackupFile(argv[4],&Backup);
3879 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error); 3879 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error);
3880 i = 0; 3880 i = 0;
3881 while (Backup.WAPBookmark[i]!=NULL) { 3881 while (Backup.WAPBookmark[i]!=NULL) {
3882 if (i == atoi(argv[5])-1) break; 3882 if (i == atoi(argv[5])-1) break;
3883 i++; 3883 i++;
3884 } 3884 }
3885 if (i != atoi(argv[5])-1) { 3885 if (i != atoi(argv[5])-1) {
3886 printmsg("WAP bookmark not found in file\n"); 3886 printmsg("WAP bookmark not found in file\n");
3887 exit(-1); 3887 exit(-1);
3888 } 3888 }
3889 j = 0; 3889 j = 0;
3890 GSM_EncodeURLFile(Buffer, &j, Backup.WAPBookmark[i]); 3890 GSM_EncodeURLFile(Buffer, &j, Backup.WAPBookmark[i]);
3891 } else if (mystrncasecmp(argv[2],"NOTE",0)) { 3891 } else if (mystrncasecmp(argv[2],"NOTE",0)) {
3892 if (argc<5) { 3892 if (argc<5) {
3893 printmsg("Where is backup filename and location ?\n"); 3893 printmsg("Where is backup filename and location ?\n");
3894 exit(-1); 3894 exit(-1);
3895 } 3895 }
3896 error=GSM_ReadBackupFile(argv[4],&Backup); 3896 error=GSM_ReadBackupFile(argv[4],&Backup);
3897 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error); 3897 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error);
3898 i = 0; 3898 i = 0;
3899 while (Backup.Note[i]!=NULL) { 3899 while (Backup.Note[i]!=NULL) {
3900 if (i == atoi(argv[5])-1) break; 3900 if (i == atoi(argv[5])-1) break;
3901 i++; 3901 i++;
3902 } 3902 }
3903 if (i != atoi(argv[5])-1) { 3903 if (i != atoi(argv[5])-1) {
3904 printmsg("Note not found in file\n"); 3904 printmsg("Note not found in file\n");
3905 exit(-1); 3905 exit(-1);
3906 } 3906 }
3907 j = 0; 3907 j = 0;
3908 GSM_EncodeVNTFile(Buffer, &j, Backup.Note[i]); 3908 GSM_EncodeVNTFile(Buffer, &j, Backup.Note[i]);
3909 } else if (mystrncasecmp(argv[2],"TODO",0)) { 3909 } else if (mystrncasecmp(argv[2],"TODO",0)) {
3910 if (argc<5) { 3910 if (argc<5) {
3911 printmsg("Where is backup filename and location ?\n"); 3911 printmsg("Where is backup filename and location ?\n");
3912 exit(-1); 3912 exit(-1);
3913 } 3913 }
3914 error=GSM_ReadBackupFile(argv[4],&Backup); 3914 error=GSM_ReadBackupFile(argv[4],&Backup);
3915 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error); 3915 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error);
3916 i = 0; 3916 i = 0;
3917 while (Backup.ToDo[i]!=NULL) { 3917 while (Backup.ToDo[i]!=NULL) {
3918 if (i == atoi(argv[5])-1) break; 3918 if (i == atoi(argv[5])-1) break;
3919 i++; 3919 i++;
3920 } 3920 }
3921 if (i != atoi(argv[5])-1) { 3921 if (i != atoi(argv[5])-1) {
3922 printmsg("ToDo note not found in file\n"); 3922 printmsg("ToDo note not found in file\n");
3923 exit(-1); 3923 exit(-1);
3924 } 3924 }
3925 j = 0; 3925 j = 0;
3926 GSM_EncodeVTODO(Buffer, &j, Backup.ToDo[i], true, Nokia_VToDo); 3926 GSM_EncodeVTODO(Buffer, &j, Backup.ToDo[i], true, Nokia_VToDo);
3927 } else if (mystrncasecmp(argv[2],"VCARD10",0) || mystrncasecmp(argv[2],"VCARD21",0)) { 3927 } else if (mystrncasecmp(argv[2],"VCARD10",0) || mystrncasecmp(argv[2],"VCARD21",0)) {
3928 if (argc<6) { 3928 if (argc<6) {
3929 printmsg("Where is backup filename and location and memory type ?\n"); 3929 printmsg("Where is backup filename and location and memory type ?\n");
3930 exit(-1); 3930 exit(-1);
3931 } 3931 }
3932 error=GSM_ReadBackupFile(argv[4],&Backup); 3932 error=GSM_ReadBackupFile(argv[4],&Backup);
3933 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error); 3933 if (error!=ERR_NOTIMPLEMENTED) Print_Error(error);
3934 i = 0; 3934 i = 0;
3935 if (mystrncasecmp(argv[5],"SM",0)) { 3935 if (mystrncasecmp(argv[5],"SM",0)) {
3936 while (Backup.SIMPhonebook[i]!=NULL) { 3936 while (Backup.SIMPhonebook[i]!=NULL) {
3937 if (i == atoi(argv[6])-1) break; 3937 if (i == atoi(argv[6])-1) break;
3938 i++; 3938 i++;
3939 } 3939 }
3940 if (i != atoi(argv[6])-1) { 3940 if (i != atoi(argv[6])-1) {
3941 printmsg("Phonebook entry not found in file\n"); 3941 printmsg("Phonebook entry not found in file\n");
3942 exit(-1); 3942 exit(-1);
3943 } 3943 }
3944 pbk = Backup.SIMPhonebook[i]; 3944 pbk = Backup.SIMPhonebook[i];
3945 } else if (mystrncasecmp(argv[5],"ME",0)) { 3945 } else if (mystrncasecmp(argv[5],"ME",0)) {
3946 while (Backup.PhonePhonebook[i]!=NULL) { 3946 while (Backup.PhonePhonebook[i]!=NULL) {
3947 if (i == atoi(argv[6])-1) break; 3947 if (i == atoi(argv[6])-1) break;
3948 i++; 3948 i++;
3949 } 3949 }
3950 if (i != atoi(argv[6])-1) { 3950 if (i != atoi(argv[6])-1) {
3951 printmsg("Phonebook entry not found in file\n"); 3951 printmsg("Phonebook entry not found in file\n");
3952 exit(-1); 3952 exit(-1);
3953 } 3953 }
3954 pbk = Backup.PhonePhonebook[i]; 3954 pbk = Backup.PhonePhonebook[i];
3955 } else { 3955 } else {
3956 printmsg("Unknown memory type: \"%s\"\n",argv[5]); 3956 printmsg("Unknown memory type: \"%s\"\n",argv[5]);
3957 exit(-1); 3957 exit(-1);
3958 } 3958 }
3959 j = 0; 3959 j = 0;
3960 if (mystrncasecmp(argv[2],"VCARD10",0)) { 3960 if (mystrncasecmp(argv[2],"VCARD10",0)) {
3961 GSM_EncodeVCARD(Buffer,&j,pbk,true,Nokia_VCard10); 3961 GSM_EncodeVCARD(Buffer,&j,pbk,true,Nokia_VCard10);
3962 } else { 3962 } else {
3963 GSM_EncodeVCARD(Buffer,&j,pbk,true,Nokia_VCard21); 3963 GSM_EncodeVCARD(Buffer,&j,pbk,true,Nokia_VCard21);
3964 } 3964 }
3965 } else { 3965 } else {
3966 printmsg("What format of file (\"%s\") ?\n",argv[2]); 3966 printmsg("What format of file (\"%s\") ?\n",argv[2]);
3967 exit(-1); 3967 exit(-1);
3968 } 3968 }
3969 3969
3970 file = fopen(argv[3],"wb"); 3970 file = fopen(argv[3],"wb");
3971 fwrite(Buffer,1,j,file); 3971 fwrite(Buffer,1,j,file);
3972 fclose(file); 3972 fclose(file);
3973} 3973}
3974 3974
3975static void Backup(int argc, char *argv[]) 3975static void Backup(int argc, char *argv[])
3976{ 3976{
3977 int i, used; 3977 int i, used;
3978 GSM_MemoryStatusMemStatus; 3978 GSM_MemoryStatusMemStatus;
3979 GSM_ToDoEntry ToDo; 3979 GSM_ToDoEntry ToDo;
3980 GSM_ToDoStatus ToDoStatus; 3980 GSM_ToDoStatus ToDoStatus;
3981 GSM_MemoryEntry Pbk; 3981 GSM_MemoryEntry Pbk;
3982 GSM_CalendarEntryCalendar; 3982 GSM_CalendarEntryCalendar;
3983 GSM_Bitmap Bitmap; 3983 GSM_Bitmap Bitmap;
3984 GSM_WAPBookmark Bookmark; 3984 GSM_WAPBookmark Bookmark;
3985 GSM_Profile Profile; 3985 GSM_Profile Profile;
3986 GSM_MultiWAPSettingsSettings; 3986 GSM_MultiWAPSettingsSettings;
3987 GSM_SyncMLSettingsSyncML; 3987 GSM_SyncMLSettingsSyncML;
3988 GSM_ChatSettingsChat; 3988 GSM_ChatSettingsChat;
3989 GSM_Ringtone Ringtone; 3989 GSM_Ringtone Ringtone;
3990 GSM_SMSC SMSC; 3990 GSM_SMSC SMSC;
3991 GSM_Backup Backup; 3991 GSM_Backup Backup;
3992 GSM_NoteEntry Note; 3992 GSM_NoteEntry Note;
3993 GSM_Backup_Info Info; 3993 GSM_Backup_Info Info;
3994 GSM_FMStation FMStation; 3994 GSM_FMStation FMStation;
3995 GSM_GPRSAccessPointGPRSPoint; 3995 GSM_GPRSAccessPointGPRSPoint;
3996 bool DoBackup; 3996 bool DoBackup;
3997 3997
3998 if (argc == 4 && mystrncasecmp(argv[3],"-yes",0)) always_answer_yes = true; 3998 if (argc == 4 && mystrncasecmp(argv[3],"-yes",0)) always_answer_yes = true;
3999 3999
4000 GSM_ClearBackup(&Backup); 4000 GSM_ClearBackup(&Backup);
4001 GSM_GetBackupFormatFeatures(argv[2],&Info); 4001 GSM_GetBackupFormatFeatures(argv[2],&Info);
4002 4002
4003 sprintf(Backup.Creator,"Gammu %s",VERSION); 4003 sprintf(Backup.Creator,"Gammu %s",VERSION);
4004 if (strlen(GetOS()) != 0) { 4004 if (strlen(GetOS()) != 0) {
4005 strcat(Backup.Creator+strlen(Backup.Creator),", "); 4005 strcat(Backup.Creator+strlen(Backup.Creator),", ");
4006 strcat(Backup.Creator+strlen(Backup.Creator),GetOS()); 4006 strcat(Backup.Creator+strlen(Backup.Creator),GetOS());
4007 } 4007 }
4008 if (strlen(GetCompiler()) != 0) { 4008 if (strlen(GetCompiler()) != 0) {
4009 strcat(Backup.Creator+strlen(Backup.Creator),", "); 4009 strcat(Backup.Creator+strlen(Backup.Creator),", ");
4010 strcat(Backup.Creator+strlen(Backup.Creator),GetCompiler()); 4010 strcat(Backup.Creator+strlen(Backup.Creator),GetCompiler());
4011 } 4011 }
4012 4012
4013 signal(SIGINT, interrupt); 4013 signal(SIGINT, interrupt);
4014 printmsgerr("Press Ctrl+C to break...\n"); 4014 printmsgerr("Press Ctrl+C to break...\n");
4015 4015
4016 GSM_Init(true); 4016 GSM_Init(true);
4017 4017
4018 if (Info.UseUnicode) { 4018 if (Info.UseUnicode) {
4019 Info.UseUnicode=answer_yes("Use Unicode subformat of backup file"); 4019 Info.UseUnicode=answer_yes("Use Unicode subformat of backup file");
4020 } 4020 }
4021 if (Info.DateTime) { 4021 if (Info.DateTime) {
4022 GSM_GetCurrentDateTime (&Backup.DateTime); 4022 GSM_GetCurrentDateTime (&Backup.DateTime);
4023 Backup.DateTimeAvailable=true; 4023 Backup.DateTimeAvailable=true;
4024 } 4024 }
4025 if (Info.Model) { 4025 if (Info.Model) {
4026 error=Phone->GetManufacturer(&s); 4026 error=Phone->GetManufacturer(&s);
4027 Print_Error(error); 4027 Print_Error(error);
4028 sprintf(Backup.Model,"%s ",s.Phone.Data.Manufacturer); 4028 sprintf(Backup.Model,"%s ",s.Phone.Data.Manufacturer);
4029 if (s.Phone.Data.ModelInfo->model[0]!=0) { 4029 if (s.Phone.Data.ModelInfo->model[0]!=0) {
4030 strcat(Backup.Model,s.Phone.Data.ModelInfo->model); 4030 strcat(Backup.Model,s.Phone.Data.ModelInfo->model);
4031 } else { 4031 } else {
4032 strcat(Backup.Model,s.Phone.Data.Model); 4032 strcat(Backup.Model,s.Phone.Data.Model);
4033 } 4033 }
4034 strcat(Backup.Model," "); 4034 strcat(Backup.Model," ");
4035 strcat(Backup.Model,s.Phone.Data.Version); 4035 strcat(Backup.Model,s.Phone.Data.Version);
4036 } 4036 }
4037 if (Info.IMEI) { 4037 if (Info.IMEI) {
4038 error=Phone->GetIMEI(&s); 4038 error=Phone->GetIMEI(&s);
4039 if (error != ERR_NOTSUPPORTED) { 4039 if (error != ERR_NOTSUPPORTED) {
4040 strcpy(Backup.IMEI, s.Phone.Data.IMEI); 4040 strcpy(Backup.IMEI, s.Phone.Data.IMEI);
4041 Print_Error(error); 4041 Print_Error(error);
4042 } else { 4042 } else {
4043 Backup.IMEI[0] = 0; 4043 Backup.IMEI[0] = 0;
4044 } 4044 }
4045 } 4045 }
4046 printf("\n"); 4046 printf("\n");
4047 4047
4048 DoBackup = false; 4048 DoBackup = false;
4049 if (Info.PhonePhonebook) { 4049 if (Info.PhonePhonebook) {
4050 printmsg("Checking phone phonebook\n"); 4050 printmsg("Checking phone phonebook\n");
4051 MemStatus.MemoryType = MEM_ME; 4051 MemStatus.MemoryType = MEM_ME;
4052 error=Phone->GetMemoryStatus(&s, &MemStatus); 4052 error=Phone->GetMemoryStatus(&s, &MemStatus);
4053 if (error==ERR_NONE && MemStatus.MemoryUsed != 0) { 4053 if (error==ERR_NONE && MemStatus.MemoryUsed != 0) {
4054 if (answer_yes(" Backup phone phonebook")) DoBackup = true; 4054 /*LRif (answer_yes(" Backup phone phonebook")) */DoBackup = true;
4055 } 4055 }
4056 } 4056 }
4057 if (DoBackup) { 4057 if (DoBackup) {
4058 Pbk.MemoryType = MEM_ME; 4058 Pbk.MemoryType = MEM_ME;
4059 i = 1; 4059 i = 1;
4060 used = 0; 4060 used = 0;
4061 while (used != MemStatus.MemoryUsed) { 4061 while (used != MemStatus.MemoryUsed) {
4062 Pbk.Location = i; 4062 Pbk.Location = i;
4063 error=Phone->GetMemory(&s, &Pbk); 4063 error=Phone->GetMemory(&s, &Pbk);
4064 if (error != ERR_EMPTY) { 4064 if (error != ERR_EMPTY) {
4065 Print_Error(error); 4065 Print_Error(error);
4066 if (used < GSM_BACKUP_MAX_PHONEPHONEBOOK) { 4066 if (used < GSM_BACKUP_MAX_PHONEPHONEBOOK) {
4067 Backup.PhonePhonebook[used] = malloc(sizeof(GSM_MemoryEntry)); 4067 Backup.PhonePhonebook[used] = malloc(sizeof(GSM_MemoryEntry));
4068 if (Backup.PhonePhonebook[used] == NULL) Print_Error(ERR_MOREMEMORY); 4068 if (Backup.PhonePhonebook[used] == NULL) Print_Error(ERR_MOREMEMORY);
4069 Backup.PhonePhonebook[used+1] = NULL; 4069 Backup.PhonePhonebook[used+1] = NULL;
4070 } else { 4070 } else {
4071 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_PHONEPHONEBOOK"); 4071 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_PHONEPHONEBOOK");
4072 GSM_Terminate(); 4072 GSM_Terminate();
4073 exit(-1); 4073 exit(-1);
4074 } 4074 }
4075 *Backup.PhonePhonebook[used]=Pbk; 4075 *Backup.PhonePhonebook[used]=Pbk;
4076 used++; 4076 used++;
4077 } 4077 }
4078 printmsgerr("%c Reading: %i percent",13,used*100/MemStatus.MemoryUsed); 4078 printmsgerr("%c Reading: %i percent",13,used*100/MemStatus.MemoryUsed);
4079 i++; 4079 i++;
4080 if (gshutdown) { 4080 if (gshutdown) {
4081 GSM_Terminate(); 4081 GSM_Terminate();
4082 exit(0); 4082 exit(0);
4083 } 4083 }
4084 } 4084 }
4085 printmsgerr("\n"); 4085 printmsgerr("\n");
4086 } 4086 }
4087 DoBackup = false; 4087 DoBackup = false;
4088 if (Info.SIMPhonebook) { 4088 if (Info.SIMPhonebook) {
4089 printmsg("Checking SIM phonebook\n"); 4089 printmsg("Checking SIM phonebook\n");
4090 MemStatus.MemoryType = MEM_SM; 4090 MemStatus.MemoryType = MEM_SM;
4091 error=Phone->GetMemoryStatus(&s, &MemStatus); 4091 error=Phone->GetMemoryStatus(&s, &MemStatus);
4092 if (error==ERR_NONE && MemStatus.MemoryUsed != 0) { 4092 if (error==ERR_NONE && MemStatus.MemoryUsed != 0) {
4093 if (answer_yes(" Backup SIM phonebook")) DoBackup=true; 4093 if (answer_yes(" Backup SIM phonebook")) DoBackup=true;
4094 } 4094 }
4095 } 4095 }
4096 if (DoBackup) { 4096 if (DoBackup) {
4097 Pbk.MemoryType = MEM_SM; 4097 Pbk.MemoryType = MEM_SM;
4098 i = 1; 4098 i = 1;
4099 used = 0; 4099 used = 0;
4100 while (used != MemStatus.MemoryUsed) { 4100 while (used != MemStatus.MemoryUsed) {
4101 Pbk.Location = i; 4101 Pbk.Location = i;
4102 error=Phone->GetMemory(&s, &Pbk); 4102 error=Phone->GetMemory(&s, &Pbk);
4103 if (error != ERR_EMPTY) { 4103 if (error != ERR_EMPTY) {
4104 Print_Error(error); 4104 Print_Error(error);
4105 if (used < GSM_BACKUP_MAX_SIMPHONEBOOK) { 4105 if (used < GSM_BACKUP_MAX_SIMPHONEBOOK) {
4106 Backup.SIMPhonebook[used] = malloc(sizeof(GSM_MemoryEntry)); 4106 Backup.SIMPhonebook[used] = malloc(sizeof(GSM_MemoryEntry));
4107 if (Backup.SIMPhonebook[used] == NULL) Print_Error(ERR_MOREMEMORY); 4107 if (Backup.SIMPhonebook[used] == NULL) Print_Error(ERR_MOREMEMORY);
4108 Backup.SIMPhonebook[used + 1] = NULL; 4108 Backup.SIMPhonebook[used + 1] = NULL;
4109 } else { 4109 } else {
4110 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_SIMPHONEBOOK"); 4110 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_SIMPHONEBOOK");
4111 GSM_Terminate(); 4111 GSM_Terminate();
4112 exit(-1); 4112 exit(-1);
4113 } 4113 }
4114 *Backup.SIMPhonebook[used]=Pbk; 4114 *Backup.SIMPhonebook[used]=Pbk;
4115 used++; 4115 used++;
4116 } 4116 }
4117 printmsgerr("%c Reading: %i percent",13,used*100/MemStatus.MemoryUsed); 4117 printmsgerr("%c Reading: %i percent",13,used*100/MemStatus.MemoryUsed);
4118 i++; 4118 i++;
4119 if (gshutdown) { 4119 if (gshutdown) {
4120 GSM_Terminate(); 4120 GSM_Terminate();
4121 exit(0); 4121 exit(0);
4122 } 4122 }
4123 } 4123 }
4124 printmsgerr("\n"); 4124 printmsgerr("\n");
4125 } 4125 }
4126 DoBackup = false; 4126 DoBackup = false;
4127 if (Info.Calendar) { 4127 if (Info.Calendar) {
4128 printmsg("Checking calendar\n"); 4128 printmsg("Checking calendar\n");
4129 error=Phone->GetNextCalendar(&s,&Calendar,true); 4129 error=Phone->GetNextCalendar(&s,&Calendar,true);
4130 if (error==ERR_NONE) { 4130 if (error==ERR_NONE) {
4131 if (answer_yes(" Backup calendar notes")) DoBackup = true; 4131 if (answer_yes(" Backup calendar notes")) DoBackup = true;
4132 } 4132 }
4133 } 4133 }
4134 if (DoBackup) { 4134 if (DoBackup) {
4135 used = 0; 4135 used = 0;
4136 printmsgerr(" Reading : "); 4136 printmsgerr(" Reading : ");
4137 while (error == ERR_NONE) { 4137 while (error == ERR_NONE) {
4138 if (used < GSM_MAXCALENDARTODONOTES) { 4138 if (used < GSM_MAXCALENDARTODONOTES) {
4139 Backup.Calendar[used] = malloc(sizeof(GSM_CalendarEntry)); 4139 Backup.Calendar[used] = malloc(sizeof(GSM_CalendarEntry));
4140 if (Backup.Calendar[used] == NULL) Print_Error(ERR_MOREMEMORY); 4140 if (Backup.Calendar[used] == NULL) Print_Error(ERR_MOREMEMORY);
4141 Backup.Calendar[used+1] = NULL; 4141 Backup.Calendar[used+1] = NULL;
4142 } else { 4142 } else {
4143 printmsg(" Increase %s\n" , "GSM_MAXCALENDARTODONOTES"); 4143 printmsg(" Increase %s\n" , "GSM_MAXCALENDARTODONOTES");
4144 GSM_Terminate(); 4144 GSM_Terminate();
4145 exit(-1); 4145 exit(-1);
4146 } 4146 }
4147 *Backup.Calendar[used]=Calendar; 4147 *Backup.Calendar[used]=Calendar;
4148 used ++; 4148 used ++;
4149 error=Phone->GetNextCalendar(&s,&Calendar,false); 4149 error=Phone->GetNextCalendar(&s,&Calendar,false);
4150 printmsgerr("*"); 4150 printmsgerr("*");
4151 if (gshutdown) { 4151 if (gshutdown) {
4152 GSM_Terminate(); 4152 GSM_Terminate();
4153 exit(0); 4153 exit(0);
4154 } 4154 }
4155 } 4155 }
4156 printmsgerr("\n"); 4156 printmsgerr("\n");
4157 } 4157 }
4158 DoBackup = false; 4158 DoBackup = false;
4159 if (Info.ToDo) { 4159 if (Info.ToDo) {
4160 printmsg("Checking ToDo\n"); 4160 printmsg("Checking ToDo\n");
4161 error=Phone->GetToDoStatus(&s,&ToDoStatus); 4161 error=Phone->GetToDoStatus(&s,&ToDoStatus);
4162 if (error == ERR_NONE && ToDoStatus.Used != 0) { 4162 if (error == ERR_NONE && ToDoStatus.Used != 0) {
4163 if (answer_yes(" Backup ToDo")) DoBackup = true; 4163 if (answer_yes(" Backup ToDo")) DoBackup = true;
4164 } 4164 }
4165 } 4165 }
4166 if (DoBackup) { 4166 if (DoBackup) {
4167 used = 0; 4167 used = 0;
4168 error=Phone->GetNextToDo(&s,&ToDo,true); 4168 error=Phone->GetNextToDo(&s,&ToDo,true);
4169 while (error == ERR_NONE) { 4169 while (error == ERR_NONE) {
4170 if (used < GSM_MAXCALENDARTODONOTES) { 4170 if (used < GSM_MAXCALENDARTODONOTES) {
4171 Backup.ToDo[used] = malloc(sizeof(GSM_ToDoEntry)); 4171 Backup.ToDo[used] = malloc(sizeof(GSM_ToDoEntry));
4172 if (Backup.ToDo[used] == NULL) Print_Error(ERR_MOREMEMORY); 4172 if (Backup.ToDo[used] == NULL) Print_Error(ERR_MOREMEMORY);
4173 Backup.ToDo[used+1] = NULL; 4173 Backup.ToDo[used+1] = NULL;
4174 } else { 4174 } else {
4175 printmsg(" Increase %s\n" , "GSM_MAXCALENDARTODONOTES"); 4175 printmsg(" Increase %s\n" , "GSM_MAXCALENDARTODONOTES");
4176 GSM_Terminate(); 4176 GSM_Terminate();
4177 exit(-1); 4177 exit(-1);
4178 } 4178 }
4179 *Backup.ToDo[used]=ToDo; 4179 *Backup.ToDo[used]=ToDo;
4180 used ++; 4180 used ++;
4181 error=Phone->GetNextToDo(&s,&ToDo,false); 4181 error=Phone->GetNextToDo(&s,&ToDo,false);
4182 printmsgerr("%c Reading: %i percent",13,used*100/ToDoStatus.Used); 4182 printmsgerr("%c Reading: %i percent",13,used*100/ToDoStatus.Used);
4183 if (gshutdown) { 4183 if (gshutdown) {
4184 GSM_Terminate(); 4184 GSM_Terminate();
4185 exit(0); 4185 exit(0);
4186 } 4186 }
4187 } 4187 }
4188 printmsgerr("\n"); 4188 printmsgerr("\n");
4189 } 4189 }
4190 DoBackup = false; 4190 DoBackup = false;
4191 if (Info.Note) { 4191 if (Info.Note) {
4192 printmsg("Checking notes\n"); 4192 printmsg("Checking notes\n");
4193 error=Phone->GetNextNote(&s,&Note,true); 4193 error=Phone->GetNextNote(&s,&Note,true);
4194 if (error==ERR_NONE) { 4194 if (error==ERR_NONE) {
4195 if (answer_yes(" Backup notes")) DoBackup = true; 4195 if (answer_yes(" Backup notes")) DoBackup = true;
4196 } 4196 }
4197 } 4197 }
4198 if (DoBackup) { 4198 if (DoBackup) {
4199 used = 0; 4199 used = 0;
4200 printmsgerr(" Reading : "); 4200 printmsgerr(" Reading : ");
4201 while (error == ERR_NONE) { 4201 while (error == ERR_NONE) {
4202 if (used < GSM_BACKUP_MAX_NOTE) { 4202 if (used < GSM_BACKUP_MAX_NOTE) {
4203 Backup.Note[used] = malloc(sizeof(GSM_NoteEntry)); 4203 Backup.Note[used] = malloc(sizeof(GSM_NoteEntry));
4204 if (Backup.Note[used] == NULL) Print_Error(ERR_MOREMEMORY); 4204 if (Backup.Note[used] == NULL) Print_Error(ERR_MOREMEMORY);
4205 Backup.Note[used+1] = NULL; 4205 Backup.Note[used+1] = NULL;
4206 } else { 4206 } else {
4207 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_NOTE"); 4207 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_NOTE");
4208 GSM_Terminate(); 4208 GSM_Terminate();
4209 exit(-1); 4209 exit(-1);
4210 } 4210 }
4211 *Backup.Note[used]=Note; 4211 *Backup.Note[used]=Note;
4212 used ++; 4212 used ++;
4213 error=Phone->GetNextNote(&s,&Note,false); 4213 error=Phone->GetNextNote(&s,&Note,false);
4214 printmsgerr("*"); 4214 printmsgerr("*");
4215 if (gshutdown) { 4215 if (gshutdown) {
4216 GSM_Terminate(); 4216 GSM_Terminate();
4217 exit(0); 4217 exit(0);
4218 } 4218 }
4219 } 4219 }
4220 printmsgerr("\n"); 4220 printmsgerr("\n");
4221 } 4221 }
4222 DoBackup = false; 4222 DoBackup = false;
4223 if (Info.CallerLogos) { 4223 if (Info.CallerLogos) {
4224 printmsg("Checking caller logos\n"); 4224 printmsg("Checking caller logos\n");
4225 Bitmap.Type = GSM_CallerGroupLogo; 4225 Bitmap.Type = GSM_CallerGroupLogo;
4226 Bitmap.Location = 1; 4226 Bitmap.Location = 1;
4227 error=Phone->GetBitmap(&s,&Bitmap); 4227 error=Phone->GetBitmap(&s,&Bitmap);
4228 if (error == ERR_NONE) { 4228 if (error == ERR_NONE) {
4229 if (answer_yes(" Backup caller groups and logos")) DoBackup = true; 4229 if (answer_yes(" Backup caller groups and logos")) DoBackup = true;
4230 } 4230 }
4231 } 4231 }
4232 if (DoBackup) { 4232 if (DoBackup) {
4233 printmsgerr(" Reading : "); 4233 printmsgerr(" Reading : ");
4234 error = ERR_NONE; 4234 error = ERR_NONE;
4235 used = 0; 4235 used = 0;
4236 while (error == ERR_NONE) { 4236 while (error == ERR_NONE) {
4237 if (used < GSM_BACKUP_MAX_CALLER) { 4237 if (used < GSM_BACKUP_MAX_CALLER) {
4238 Backup.CallerLogos[used] = malloc(sizeof(GSM_Bitmap)); 4238 Backup.CallerLogos[used] = malloc(sizeof(GSM_Bitmap));
4239 if (Backup.CallerLogos[used] == NULL) Print_Error(ERR_MOREMEMORY); 4239 if (Backup.CallerLogos[used] == NULL) Print_Error(ERR_MOREMEMORY);
4240 Backup.CallerLogos[used+1] = NULL; 4240 Backup.CallerLogos[used+1] = NULL;
4241 } else { 4241 } else {
4242 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_CALLER"); 4242 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_CALLER");
4243 GSM_Terminate(); 4243 GSM_Terminate();
4244 exit(-1); 4244 exit(-1);
4245 } 4245 }
4246 *Backup.CallerLogos[used] = Bitmap; 4246 *Backup.CallerLogos[used] = Bitmap;
4247 used ++; 4247 used ++;
4248 Bitmap.Location = used + 1; 4248 Bitmap.Location = used + 1;
4249 error=Phone->GetBitmap(&s,&Bitmap); 4249 error=Phone->GetBitmap(&s,&Bitmap);
4250 printmsgerr("*"); 4250 printmsgerr("*");
4251 if (gshutdown) { 4251 if (gshutdown) {
4252 GSM_Terminate(); 4252 GSM_Terminate();
4253 exit(0); 4253 exit(0);
4254 } 4254 }
4255 } 4255 }
4256 printmsgerr("\n"); 4256 printmsgerr("\n");
4257 } 4257 }
4258 DoBackup = false; 4258 DoBackup = false;
4259 if (Info.SMSC) { 4259 if (Info.SMSC) {
4260 printmsg("Checking SMS profiles\n"); 4260 printmsg("Checking SMS profiles\n");
4261 if (answer_yes(" Backup SMS profiles")) DoBackup = true; 4261 if (answer_yes(" Backup SMS profiles")) DoBackup = true;
4262 } 4262 }
4263 if (DoBackup) { 4263 if (DoBackup) {
4264 used = 0; 4264 used = 0;
4265 printmsgerr(" Reading: "); 4265 printmsgerr(" Reading: ");
4266 while (true) { 4266 while (true) {
4267 SMSC.Location = used + 1; 4267 SMSC.Location = used + 1;
4268 error = Phone->GetSMSC(&s,&SMSC); 4268 error = Phone->GetSMSC(&s,&SMSC);
4269 if (error != ERR_NONE) break; 4269 if (error != ERR_NONE) break;
4270 if (used < GSM_BACKUP_MAX_SMSC) { 4270 if (used < GSM_BACKUP_MAX_SMSC) {
4271 Backup.SMSC[used] = malloc(sizeof(GSM_SMSC)); 4271 Backup.SMSC[used] = malloc(sizeof(GSM_SMSC));
4272 if (Backup.SMSC[used] == NULL) Print_Error(ERR_MOREMEMORY); 4272 if (Backup.SMSC[used] == NULL) Print_Error(ERR_MOREMEMORY);
4273 Backup.SMSC[used + 1] = NULL; 4273 Backup.SMSC[used + 1] = NULL;
4274 } else { 4274 } else {
4275 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_SMSC"); 4275 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_SMSC");
4276 GSM_Terminate(); 4276 GSM_Terminate();
4277 exit(-1); 4277 exit(-1);
4278 } 4278 }
4279 *Backup.SMSC[used]=SMSC; 4279 *Backup.SMSC[used]=SMSC;
4280 used++; 4280 used++;
4281 printmsgerr("*"); 4281 printmsgerr("*");
4282 } 4282 }
4283 printmsgerr("\n"); 4283 printmsgerr("\n");
4284 } 4284 }
4285 DoBackup = false; 4285 DoBackup = false;
4286 if (Info.StartupLogo) { 4286 if (Info.StartupLogo) {
4287 printmsg("Checking startup text\n"); 4287 printmsg("Checking startup text\n");
4288 Bitmap.Type = GSM_WelcomeNote_Text; 4288 Bitmap.Type = GSM_WelcomeNote_Text;
4289 error = Phone->GetBitmap(&s,&Bitmap); 4289 error = Phone->GetBitmap(&s,&Bitmap);
4290 if (error == ERR_NONE) { 4290 if (error == ERR_NONE) {
4291 if (answer_yes(" Backup startup logo/text")) DoBackup = true; 4291 if (answer_yes(" Backup startup logo/text")) DoBackup = true;
4292 } 4292 }
4293 } 4293 }
4294 if (DoBackup) { 4294 if (DoBackup) {
4295 Backup.StartupLogo = malloc(sizeof(GSM_Bitmap)); 4295 Backup.StartupLogo = malloc(sizeof(GSM_Bitmap));
4296 if (Backup.StartupLogo == NULL) Print_Error(ERR_MOREMEMORY); 4296 if (Backup.StartupLogo == NULL) Print_Error(ERR_MOREMEMORY);
4297 *Backup.StartupLogo = Bitmap; 4297 *Backup.StartupLogo = Bitmap;
4298 if (Bitmap.Text[0]==0 && Bitmap.Text[1]==0) { 4298 if (Bitmap.Text[0]==0 && Bitmap.Text[1]==0) {
4299 Bitmap.Type = GSM_StartupLogo; 4299 Bitmap.Type = GSM_StartupLogo;
4300 error = Phone->GetBitmap(&s,&Bitmap); 4300 error = Phone->GetBitmap(&s,&Bitmap);
4301 if (error == ERR_NONE) *Backup.StartupLogo = Bitmap; 4301 if (error == ERR_NONE) *Backup.StartupLogo = Bitmap;
4302 } 4302 }
4303 } 4303 }
4304 DoBackup = false; 4304 DoBackup = false;
4305 if (Info.OperatorLogo) { 4305 if (Info.OperatorLogo) {
4306 printmsg("Checking operator logo\n"); 4306 printmsg("Checking operator logo\n");
4307 Bitmap.Type = GSM_OperatorLogo; 4307 Bitmap.Type = GSM_OperatorLogo;
4308 error=Phone->GetBitmap(&s,&Bitmap); 4308 error=Phone->GetBitmap(&s,&Bitmap);
4309 if (error == ERR_NONE) { 4309 if (error == ERR_NONE) {
4310 if (strcmp(Bitmap.NetworkCode,"000 00")!=0) { 4310 if (strcmp(Bitmap.NetworkCode,"000 00")!=0) {
4311 if (answer_yes(" Backup operator logo")) DoBackup = true; 4311 if (answer_yes(" Backup operator logo")) DoBackup = true;
4312 } 4312 }
4313 } 4313 }
4314 } 4314 }
4315 if (DoBackup) { 4315 if (DoBackup) {
4316 Backup.OperatorLogo = malloc(sizeof(GSM_Bitmap)); 4316 Backup.OperatorLogo = malloc(sizeof(GSM_Bitmap));
4317 if (Backup.OperatorLogo == NULL) Print_Error(ERR_MOREMEMORY); 4317 if (Backup.OperatorLogo == NULL) Print_Error(ERR_MOREMEMORY);
4318 *Backup.OperatorLogo = Bitmap; 4318 *Backup.OperatorLogo = Bitmap;
4319 } 4319 }
4320 DoBackup = false; 4320 DoBackup = false;
4321 if (Info.WAPBookmark) { 4321 if (Info.WAPBookmark) {
4322 printmsg("Checking WAP bookmarks\n"); 4322 printmsg("Checking WAP bookmarks\n");
4323 Bookmark.Location = 1; 4323 Bookmark.Location = 1;
4324 error=Phone->GetWAPBookmark(&s,&Bookmark); 4324 error=Phone->GetWAPBookmark(&s,&Bookmark);
4325 if (error==ERR_NONE) { 4325 if (error==ERR_NONE) {
4326 if (answer_yes(" Backup WAP bookmarks")) DoBackup = true; 4326 if (answer_yes(" Backup WAP bookmarks")) DoBackup = true;
4327 } 4327 }
4328 } 4328 }
4329 if (DoBackup) { 4329 if (DoBackup) {
4330 used = 0; 4330 used = 0;
4331 printmsgerr(" Reading : "); 4331 printmsgerr(" Reading : ");
4332 while (error == ERR_NONE) { 4332 while (error == ERR_NONE) {
4333 if (used < GSM_BACKUP_MAX_WAPBOOKMARK) { 4333 if (used < GSM_BACKUP_MAX_WAPBOOKMARK) {
4334 Backup.WAPBookmark[used] = malloc(sizeof(GSM_WAPBookmark)); 4334 Backup.WAPBookmark[used] = malloc(sizeof(GSM_WAPBookmark));
4335 if (Backup.WAPBookmark[used] == NULL) Print_Error(ERR_MOREMEMORY); 4335 if (Backup.WAPBookmark[used] == NULL) Print_Error(ERR_MOREMEMORY);
4336 Backup.WAPBookmark[used+1] = NULL; 4336 Backup.WAPBookmark[used+1] = NULL;
4337 } else { 4337 } else {
4338 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_WAPBOOKMARK"); 4338 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_WAPBOOKMARK");
4339 GSM_Terminate(); 4339 GSM_Terminate();
4340 exit(-1); 4340 exit(-1);
4341 } 4341 }
4342 *Backup.WAPBookmark[used]=Bookmark; 4342 *Backup.WAPBookmark[used]=Bookmark;
4343 used ++; 4343 used ++;
4344 Bookmark.Location = used+1; 4344 Bookmark.Location = used+1;
4345 error=Phone->GetWAPBookmark(&s,&Bookmark); 4345 error=Phone->GetWAPBookmark(&s,&Bookmark);
4346 printmsgerr("*"); 4346 printmsgerr("*");
4347 if (gshutdown) { 4347 if (gshutdown) {
4348 GSM_Terminate(); 4348 GSM_Terminate();
4349 exit(0); 4349 exit(0);
4350 } 4350 }
4351 } 4351 }
4352 printmsgerr("\n"); 4352 printmsgerr("\n");
4353 } 4353 }
4354 DoBackup = false; 4354 DoBackup = false;
4355 if (Info.WAPSettings) { 4355 if (Info.WAPSettings) {
4356 printmsg("Checking WAP settings\n"); 4356 printmsg("Checking WAP settings\n");
4357 Settings.Location = 1; 4357 Settings.Location = 1;
4358 error=Phone->GetWAPSettings(&s,&Settings); 4358 error=Phone->GetWAPSettings(&s,&Settings);
4359 if (error==ERR_NONE) { 4359 if (error==ERR_NONE) {
4360 if (answer_yes(" Backup WAP settings")) DoBackup = true; 4360 if (answer_yes(" Backup WAP settings")) DoBackup = true;
4361 } 4361 }
4362 } 4362 }
4363 if (DoBackup) { 4363 if (DoBackup) {
4364 used = 0; 4364 used = 0;
4365 printmsgerr(" Reading : "); 4365 printmsgerr(" Reading : ");
4366 while (error == ERR_NONE) { 4366 while (error == ERR_NONE) {
4367 if (used < GSM_BACKUP_MAX_WAPSETTINGS) { 4367 if (used < GSM_BACKUP_MAX_WAPSETTINGS) {
4368 Backup.WAPSettings[used] = malloc(sizeof(GSM_MultiWAPSettings)); 4368 Backup.WAPSettings[used] = malloc(sizeof(GSM_MultiWAPSettings));
4369 if (Backup.WAPSettings[used] == NULL) Print_Error(ERR_MOREMEMORY); 4369 if (Backup.WAPSettings[used] == NULL) Print_Error(ERR_MOREMEMORY);
4370 Backup.WAPSettings[used+1] = NULL; 4370 Backup.WAPSettings[used+1] = NULL;
4371 } else { 4371 } else {
4372 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_WAPSETTINGS"); 4372 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_WAPSETTINGS");
4373 GSM_Terminate(); 4373 GSM_Terminate();
4374 exit(-1); 4374 exit(-1);
4375 } 4375 }
4376 *Backup.WAPSettings[used]=Settings; 4376 *Backup.WAPSettings[used]=Settings;
4377 used ++; 4377 used ++;
4378 Settings.Location = used+1; 4378 Settings.Location = used+1;
4379 error=Phone->GetWAPSettings(&s,&Settings); 4379 error=Phone->GetWAPSettings(&s,&Settings);
4380 printmsgerr("*"); 4380 printmsgerr("*");
4381 if (gshutdown) { 4381 if (gshutdown) {
4382 GSM_Terminate(); 4382 GSM_Terminate();
4383 exit(0); 4383 exit(0);
4384 } 4384 }
4385 } 4385 }
4386 printmsgerr("\n"); 4386 printmsgerr("\n");
4387 } 4387 }
4388 DoBackup = false; 4388 DoBackup = false;
4389 if (Info.MMSSettings) { 4389 if (Info.MMSSettings) {
4390 printmsg("Checking MMS settings\n"); 4390 printmsg("Checking MMS settings\n");
4391 Settings.Location = 1; 4391 Settings.Location = 1;
4392 error=Phone->GetMMSSettings(&s,&Settings); 4392 error=Phone->GetMMSSettings(&s,&Settings);
4393 if (error==ERR_NONE) { 4393 if (error==ERR_NONE) {
4394 if (answer_yes(" Backup MMS settings")) DoBackup = true; 4394 if (answer_yes(" Backup MMS settings")) DoBackup = true;
4395 } 4395 }
4396 } 4396 }
4397 if (DoBackup) { 4397 if (DoBackup) {
4398 used = 0; 4398 used = 0;
4399 printmsgerr(" Reading : "); 4399 printmsgerr(" Reading : ");
4400 while (error == ERR_NONE) { 4400 while (error == ERR_NONE) {
4401 if (used < GSM_BACKUP_MAX_MMSSETTINGS) { 4401 if (used < GSM_BACKUP_MAX_MMSSETTINGS) {
4402 Backup.MMSSettings[used] = malloc(sizeof(GSM_MultiWAPSettings)); 4402 Backup.MMSSettings[used] = malloc(sizeof(GSM_MultiWAPSettings));
4403 if (Backup.MMSSettings[used] == NULL) Print_Error(ERR_MOREMEMORY); 4403 if (Backup.MMSSettings[used] == NULL) Print_Error(ERR_MOREMEMORY);
4404 Backup.MMSSettings[used+1] = NULL; 4404 Backup.MMSSettings[used+1] = NULL;
4405 } else { 4405 } else {
4406 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_MMSSETTINGS"); 4406 printmsg(" Increase %s\n" , "GSM_BACKUP_MAX_MMSSETTINGS");
4407 GSM_Terminate(); 4407 GSM_Terminate();
4408 exit(-1); 4408 exit(-1);
4409 } 4409 }
4410 *Backup.MMSSettings[used]=Settings; 4410 *Backup.MMSSettings[used]=Settings;
4411 used ++; 4411 used ++;
4412 Settings.Location = used+1; 4412 Settings.Location = used+1;
4413 error=Phone->GetMMSSettings(&s,&Settings); 4413 error=Phone->GetMMSSettings(&s,&Settings);
4414 printmsgerr("*"); 4414 printmsgerr("*");
4415 if (gshutdown) { 4415 if (gshutdown) {
4416 GSM_Terminate(); 4416 GSM_Terminate();
4417 exit(0); 4417 exit(0);
4418 } 4418 }
4419 } 4419 }
4420 printmsgerr("\n"); 4420 printmsgerr("\n");
4421 } 4421 }
4422 DoBackup = false; 4422 DoBackup = false;
4423 if (Info.ChatSettings) { 4423 if (Info.ChatSettings) {
4424 printmsg("Checking Chat settings\n"); 4424 printmsg("Checking Chat settings\n");
4425 Chat.Location = 1; 4425 Chat.Location = 1;
4426 error=Phone->GetChatSettings(&s,&Chat); 4426 error=Phone->GetChatSettings(&s,&Chat);
4427 if (error==ERR_NONE) { 4427 if (error==ERR_NONE) {
4428 if (answer_yes(" Backup Chat settings")) DoBackup = true; 4428 if (answer_yes(" Backup Chat settings")) DoBackup = true;
4429 } 4429 }
4430 } 4430 }
4431 if (DoBackup) { 4431 if (DoBackup) {
4432 used = 0; 4432 used = 0;
4433 printmsgerr(" Reading : "); 4433 printmsgerr(" Reading : ");
4434 while (error == ERR_NONE) { 4434 while (error == ERR_NONE) {
4435 if (used < GSM_BACKUP_MAX_CHATSETTINGS) { 4435 if (used < GSM_BACKUP_MAX_CHATSETTINGS) {
4436 Backup.ChatSettings[used] = malloc(sizeof(GSM_ChatSettings)); 4436 Backup.ChatSettings[used] = malloc(sizeof(GSM_ChatSettings));
4437 if (Backup.ChatSettings[used] == NULL) Print_Error(ERR_MOREMEMORY); 4437 if (Backup.ChatSettings[used] == NULL) Print_Error(ERR_MOREMEMORY);
4438 Backup.ChatSettings[used+1] = NULL; 4438 Backup.ChatSettings[used+1] = NULL;
diff --git a/kammu.control b/phoneaccess.control
index 07559e7..07559e7 100644
--- a/kammu.control
+++ b/phoneaccess.control