summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-04-03 21:03:06 (UTC)
committer zautrix <zautrix>2005-04-03 21:03:06 (UTC)
commitf3707f1dcc3d42d43c9e6b649a9a68b2e706051e (patch) (unidiff)
treecad8019b110d59bd76a2901494259f2971c160b7
parent2d83daf3568bb829db2530baa917db5a4cbf0768 (diff)
downloadkdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.zip
kdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.tar.gz
kdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.tar.bz2
static fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile566
-rw-r--r--kabc/plugins/dir/dir.pro2
-rw-r--r--kabc/plugins/file/file.pro2
-rw-r--r--kabc/plugins/qtopia/qtopia.pro2
-rw-r--r--kaddressbook/kaddressbook.pro11
-rw-r--r--korganizer/korganizer.pro14
-rw-r--r--microkde/kresources/factory.cpp26
-rw-r--r--microkde/kresources/managerimpl.cpp2
-rw-r--r--microkde/microkde.pro8
9 files changed, 246 insertions, 387 deletions
diff --git a/Makefile b/Makefile
index 594d47d..b873179 100644
--- a/Makefile
+++ b/Makefile
@@ -1,385 +1,183 @@
1export KDEPIMDIR = $(shell pwd) 1#############################################################################
2 2# Makefile for building: kdepim-desktop
3export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version) 3# Generated by qmake (1.07a) (Qt 3.3.4) on: Sun Apr 3 21:52:20 2005
4 4# Project: kdepim-desktop.pro
5ifeq ($(PLATFORM) , zaurus) 5# Template: subdirs
6 BUILD_NO_LDAP_PLUGIN=1 6# Command: $(QMAKE) -o Makefile kdepim-desktop.pro
7endif 7#############################################################################
8 8
9ifneq ($(PLATFORM) , zaurus) 9 MAKEFILE =Makefile
10 BUILD_NO_SHARP_PLUGIN=1 10 QMAKE =qmake
11endif 11DEL_FILE = rm -f
12 12CHK_DIR_EXISTS= test -d
13#opie plugin is deprecated. The qtopia plugin handles the task from now on. 13MKDIR = mkdir -p
14BUILD_NO_OPIE_PLUGIN=1 14INSTALL_FILE=
15 15INSTALL_DIR =
16SUBDIRS_MICROKDE = \ 16 SUBTARGETS = \
17 libical/src/libical \ 17 sub-libical \
18 libical/src/libicalss \ 18 sub-libkcal \
19 qtcompat \ 19 sub-kabc \
20 microkde \ 20 sub-libkdepim \
21 libkcal \ 21 sub-microkde \
22 libkdepim \ 22 sub-korganizer \
23 kabc \ 23 sub-kaddressbook \
24 kabc/formats/binary \ 24 sub-kabc-plugins-file \
25 kabc/plugins/file \ 25 sub-kabc-plugins-dir \
26 kabc/plugins/dir \ 26 sub-kabc-plugins-qtopia \
27 korganizer \ 27 sub-gammu-emb-common \
28 kalarmd \ 28 sub-gammu-emb-gammu
29 kaddressbook 29
30 30first: all
31SUBDIRS_QTOPIA_PLUGIN = \ 31
32 kabc/plugins/qtopia 32all: Makefile $(SUBTARGETS)
33 33
34SUBDIRS_OPIE_PLUGIN = \ 34libical/$(MAKEFILE):
35 kabc/plugins/opie 35 @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical"
36 36 cd libical && $(QMAKE) libical.pro -o $(MAKEFILE)
37SUBDIRS_SHARP_PLUGIN = \ 37sub-libical: libical/$(MAKEFILE) FORCE
38 kabc/plugins/sharpdtm 38 cd libical && $(MAKE) -f $(MAKEFILE)
39 39
40SUBDIRS_LDAP_PLUGIN = \ 40libkcal/$(MAKEFILE):
41 kabc/plugins/ldap 41 @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal"
42 42 cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE)
43SUBDIRS_MICROMAIL = \ 43sub-libkcal: libkcal/$(MAKEFILE) FORCE
44 libetpan \ 44 cd libkcal && $(MAKE) -f $(MAKEFILE)
45 kmicromail/libmailwrapper \ 45
46 kmicromail 46kabc/$(MAKEFILE):
47 47 @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc"
48SUBDIRS_GAMMU = \ 48 cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE)
49 gammu/emb/common \ 49sub-kabc: kabc/$(MAKEFILE) FORCE
50 gammu/emb/gammu 50 cd kabc && $(MAKE) -f $(MAKEFILE)
51 51
52SUBDIRS_PWMANAGER = \ 52libkdepim/$(MAKEFILE):
53 pwmanager/libcrypt/mpi \ 53 @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim"
54 pwmanager/libcrypt/error \ 54 cd libkdepim && $(QMAKE) libkdepim.pro -o $(MAKEFILE)
55 pwmanager/libcrypt/cipher \ 55sub-libkdepim: libkdepim/$(MAKEFILE) FORCE
56 pwmanager/libcrypt/zlib \ 56 cd libkdepim && $(MAKE) -f $(MAKEFILE)
57 pwmanager/pwmanager 57
58 58microkde/$(MAKEFILE):
59SUBDIRS = \ 59 @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde"
60 $(SUBDIRS_MICROKDE) \ 60 cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE)
61 $(SUBDIRS_QTOPIA_PLUGIN) \ 61sub-microkde: microkde/$(MAKEFILE) FORCE
62 $(SUBDIRS_OPIE_PLUGIN) \ 62 cd microkde && $(MAKE) -f $(MAKEFILE)
63 $(SUBDIRS_SHARP_PLUGIN) \ 63
64 $(SUBDIRS_LDAP_PLUGIN) \ 64korganizer/$(MAKEFILE):
65 $(SUBDIRS_MICROMAIL) \ 65 @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer"
66 $(SUBDIRS_GAMMU) \ 66 cd korganizer && $(QMAKE) korganizer.pro -o $(MAKEFILE)
67 $(SUBDIRS_PWMANAGER) 67sub-korganizer: korganizer/$(MAKEFILE) FORCE
68 68 cd korganizer && $(MAKE) -f $(MAKEFILE)
69 69
70all: build_microkde \ 70kaddressbook/$(MAKEFILE):
71 build_qtopia_plugin \ 71 @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook"
72 build_opie_plugin \ 72 cd kaddressbook && $(QMAKE) kaddressbook.pro -o $(MAKEFILE)
73 build_sharp_plugin \ 73sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE
74 build_ldap_plugin \ 74 cd kaddressbook && $(MAKE) -f $(MAKEFILE)
75 build_micromail \ 75
76 build_gammu \ 76kabc/plugins/file/$(MAKEFILE):
77 build_pwmanager 77 @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file"
78 78 cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE)
79 79sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE
80build_microkde: variable_test tmake 80 cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE)
81 for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ 81
82 make -f Makefile$(PLATFORM) || exit 1; popd; \ 82kabc/plugins/dir/$(MAKEFILE):
83 done 83 @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir"
84 84 cd kabc/plugins/dir && $(QMAKE) dir.pro -o $(MAKEFILE)
85build_qtopia_plugin: build_microkde 85sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE
86 ifdef BUILD_NO_QTOPIA_PLUGIN 86 cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE)
87 @echo == qtopia plugin not build. 87
88 else 88kabc/plugins/qtopia/$(MAKEFILE):
89 for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ 89 @$(CHK_DIR_EXISTS) "kabc/plugins/qtopia" || $(MKDIR) "kabc/plugins/qtopia"
90 make -f Makefile$(PLATFORM) || exit 1; popd; \ 90 cd kabc/plugins/qtopia && $(QMAKE) qtopia.pro -o $(MAKEFILE)
91 done 91sub-kabc-plugins-qtopia: kabc/plugins/qtopia/$(MAKEFILE) FORCE
92 endif 92 cd kabc/plugins/qtopia && $(MAKE) -f $(MAKEFILE)
93 93
94build_opie_plugin: build_microkde 94gammu/emb/common/$(MAKEFILE):
95 ifdef BUILD_NO_OPIE_PLUGIN 95 @$(CHK_DIR_EXISTS) "gammu/emb/common" || $(MKDIR) "gammu/emb/common"
96 @echo == opie plugin not build. 96 cd gammu/emb/common && $(QMAKE) common.pro -o $(MAKEFILE)
97 else 97sub-gammu-emb-common: gammu/emb/common/$(MAKEFILE) FORCE
98 for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ 98 cd gammu/emb/common && $(MAKE) -f $(MAKEFILE)
99 make -f Makefile$(PLATFORM) || exit 1; popd; \ 99
100 done 100gammu/emb/gammu/$(MAKEFILE):
101 endif 101 @$(CHK_DIR_EXISTS) "gammu/emb/gammu" || $(MKDIR) "gammu/emb/gammu"
102 102 cd gammu/emb/gammu && $(QMAKE) gammu.pro -o $(MAKEFILE)
103build_sharp_plugin: build_microkde 103sub-gammu-emb-gammu: gammu/emb/gammu/$(MAKEFILE) FORCE
104 ifdef BUILD_NO_SHARP_PLUGIN 104 cd gammu/emb/gammu && $(MAKE) -f $(MAKEFILE)
105 @echo == ldap plugin not build. 105
106 else 106Makefile: kdepim-desktop.pro /usr/lib/qt3/mkspecs/default/qmake.conf variables.pri
107 for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ 107 $(QMAKE) -o Makefile kdepim-desktop.pro
108 make -f Makefile$(PLATFORM) || exit 1; popd; \ 108qmake: qmake_all
109 done 109 @$(QMAKE) -o Makefile kdepim-desktop.pro
110 endif 110
111 111all: $(SUBTARGETS)
112build_ldap_plugin: build_microkde 112qmake_all: libical/$(MAKEFILE) libkcal/$(MAKEFILE) kabc/$(MAKEFILE) libkdepim/$(MAKEFILE) microkde/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) kabc/plugins/qtopia/$(MAKEFILE) gammu/emb/common/$(MAKEFILE) gammu/emb/gammu/$(MAKEFILE)
113 ifdef BUILD_NO_LDAP_PLUGIN 113 ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
114 @echo == ldap plugin not build. 114 ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
115 else 115 ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
116 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 116 ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
117 make -f Makefile$(PLATFORM) || exit 1; popd; \ 117 ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
118 done 118 ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
119 endif 119 ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
120 120 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
121 121 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
122build_micromail: build_microkde 122 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
123 ifdef BUILD_NO_MICROMAIL 123 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
124 @echo == kmicromail not build. 124 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
125 else 125clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
126 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 126 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true
127 make -f Makefile$(PLATFORM) || exit 1; popd; \ 127 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true
128 done 128 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true
129 endif 129 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true
130 130 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true
131build_gammu: variable_test tmake 131 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true
132 ifdef BUILD_NO_GAMMU 132 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true
133 @echo == gammu not build. 133 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true
134 else 134 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true
135 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 135 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; ) || true
136 make -f Makefile$(PLATFORM) || exit 1; popd; \ 136 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; ) || true
137 done 137 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; ) || true
138 endif 138uninstall_subdirs: qmake_all FORCE
139 139 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
140build_pwmanager: build_microkde 140 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
141 ifdef BUILD_NO_PWMANAGER 141 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
142 @echo == pwmanager not build. 142 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
143 else 143 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
144 for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ 144 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
145 make -f Makefile$(PLATFORM) || exit 1; popd; \ 145 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
146 done 146 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
147 endif 147 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
148 148 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
149 149 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
150variable_info: 150 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
151 @echo -------------------------------------- 151install_subdirs: qmake_all FORCE
152 @echo KDEPIM buildsystem, variableinfo... 152 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true
153 @echo KDEPIMDIR=$(KDEPIMDIR) 153 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true
154 @echo QTDIR=$(QTDIR) 154 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true
155 @echo QPEDIR=$(QPEDIR) 155 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true
156 @echo OPIEDIR=$(OPIEDIR) 156 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true
157 @echo PLATFORM=$(PLATFORM) 157 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true
158 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 158 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true
159 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 159 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true
160 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 160 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true
161 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 161 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) install; ) || true
162 @echo BUILD_NO_QTOPIA_PLUGIN=$(BUILD_NO_QTOPIA_PLUGIN) 162 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) install; ) || true
163 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 163 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) install; ) || true
164 ifndef BUILD_NO_SHARP_PLUGIN 164distclean: qmake_all FORCE
165 @echo SHARPDTMSDK=$(SHARPDTMSDK) 165 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
166 endif 166 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
167 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 167 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
168 @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) 168 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
169 @echo -------------------------------------- 169 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
170 170 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
171variable_test: variable_info 171 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
172 @echo KDEPIM buildsystem, variablecheck... 172 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
173 ifndef KDEPIMDIR 173 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
174 @echo KDEPIMDIR is not defined. 174 ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
175 $(error KDEPIMDIR is not defined) 175 ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
176 endif 176 ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
177 ifndef PLATFORM 177
178 @echo PLATFORM is not defined. 178install: install_subdirs
179 $(error PLATFORM is not defined) 179
180 endif 180uninstall: uninstall_subdirs
181 ifdef BUILD_NO_LDAP_PLUGIN 181
182 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 182FORCE:
183 endif
184 ifdef BUILD_NO_OPIE_PLUGIN
185 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
186 endif
187 ifdef BUILD_NO_QTOPIA_PLUGIN
188 @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN)
189 endif
190 ifdef BUILD_NO_MICROMAIL
191 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
192 endif
193 ifdef BUILD_NO_SHARP_PLUGIN
194 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
195 else
196 ifndef SHARPDTMSDK
197 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
198 $(error SHARPDTMSDK is not defined)
199 endif
200 endif
201 ifdef BUILD_NO_GAMMU
202 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
203 endif
204 ifdef BUILD_NO_PWMANAGER
205 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
206 endif
207 @echo --------------------------------------
208
209
210objects:
211 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
212 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
213 mkdir -p libical/lib/$(PLATFORM)
214 mkdir -p dest
215 mkdir -p dest$(LIBICAL_PATH)
216 mkdir -p pwmanager/libcrypt/$(PLATFORM)
217
218clean:
219 rm -rf libical/lib/$(PLATFORM)/*;
220 rm -rf pwmanager/libcrypt/$(PLATFORM)/*;
221 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
222 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
223 done
224
225pac:
226 rm -f $(QPEDIR)/lib/libmicro*
227 rm -f $(QPEDIR)/plugins/applets/libkopi*
228 make
229 make install
230 make dist
231install:
232
233 cd bin/kdepim; make install
234 cp -r Pim $(QPEDIR)/apps
235 cp db2file/db2file $(QPEDIR)/bin/db2file
236 chmod ugo+x $(QPEDIR)/bin/db2file
237 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
238 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
239 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
240 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
241
242dist:
243 @echo Dont forget to do "make install" before "make dist"
244 rm -f *arm.ipk
245 rm -f *ipk.zip
246 rm -rf ../kdepimpi_$(KDEPIM_VERSION)/*
247 rm -f *~
248 cd ..;mkdir -p kdepimpi_$(KDEPIM_VERSION)
249 cd ../kdepimpi_$(KDEPIM_VERSION);mkdir -p ipk
250 cd ..; tar czf kdepimpi-$(KDEPIM_VERSION).tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
251 mkipks kmicrokdelibs.control
252 mkipks korganizer.control
253 mkipks kaddressbook.control
254 ifndef BUILD_NO_MICROMAIL
255 mkipks kopiemail.control
256 endif
257 ifndef BUILD_NO_SHARP_PLUGIN
258 mkipks ksharpPIM-DTMaccess.control
259 endif
260 mkipks korganizer-alarm.control
261 ifndef BUILD_NO_GAMMU
262 mkipks kmobilephoneaccess.control
263 endif
264 ifndef BUILD_NO_PWMANAGER
265 mkipks pwmanager.control
266 endif
267 mkipks pimTABicon.control
268 zip kdepim_$(KDEPIM_VERSION)_for_SharpRom.ipk.zip *.ipk ReleaseNotes.txt
269 mv *.ipk ../kdepimpi_$(KDEPIM_VERSION)/ipk/
270 mv *for_SharpRom.ipk.zip ../kdepimpi_$(KDEPIM_VERSION)/
271 mv ../kdepimpi-$(KDEPIM_VERSION).tar.gz ../kdepimpi_$(KDEPIM_VERSION)/
272
273tmake: objects \
274 qtcompat/Makefile$(PLATFORM) \
275 microkde/Makefile$(PLATFORM) \
276 libkcal/Makefile$(PLATFORM) \
277 libkdepim/Makefile$(PLATFORM) \
278 korganizer/Makefile$(PLATFORM) \
279 kalarmd/Makefile$(PLATFORM) \
280 libical/src/libical/Makefile$(PLATFORM) \
281 libical/src/libicalss/Makefile$(PLATFORM) \
282 kabc/Makefile$(PLATFORM) \
283 kabc/formats/binary/Makefile$(PLATFORM) \
284 kabc/plugins/file/Makefile$(PLATFORM) \
285 kabc/plugins/dir/Makefile$(PLATFORM) \
286 kabc/plugins/ldap/Makefile$(PLATFORM) \
287 kabc/plugins/opie/Makefile$(PLATFORM) \
288 kabc/plugins/qtopia/Makefile$(PLATFORM) \
289 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
290 kaddressbook/Makefile$(PLATFORM) \
291 kmicromail/Makefile$(PLATFORM) \
292 libetpan/Makefile$(PLATFORM) \
293 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
294 gammu/emb/common/Makefile$(PLATFORM) \
295 gammu/emb/gammu/Makefile$(PLATFORM) \
296 pwmanager/pwmanager/Makefile$(PLATFORM) \
297 pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \
298 pwmanager/libcrypt/error/Makefile$(PLATFORM) \
299 pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \
300 pwmanager/libcrypt/zlib/Makefile$(PLATFORM)
301
302qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
303 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
304
305microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
306 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
307
308libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
309 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
310
311
312libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
313 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
314
315kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
316 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
317
318korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
319 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)
320
321libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
322 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM)
323
324libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
325 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM)
326
327kabc/Makefile$(PLATFORM): kabc/kabcE.pro
328 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM)
329
330kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
331 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
332
333kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
334 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM)
335
336kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
337 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM)
338
339kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
340 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM)
341
342kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
343 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM)
344
345kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
346 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM)
347
348kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
349 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM)
350
351kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
352 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM)
353
354kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro
355 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM)
356
357libetpan/Makefile$(PLATFORM): libetpan/libetpanE.pro
358 cd libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM)
359
360kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro
361 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM)
362
363gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro
364 cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM)
365
366gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro
367 cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM)
368
369pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro
370 cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM)
371
372
373pwmanager/libcrypt/mpi/Makefile$(PLATFORM): pwmanager/libcrypt/mpi/mpi.pro
374 cd pwmanager/libcrypt/mpi;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" mpi.pro -o Makefile$(PLATFORM)
375
376pwmanager/libcrypt/error/Makefile$(PLATFORM): pwmanager/libcrypt/error/error.pro
377 cd pwmanager/libcrypt/error;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" error.pro -o Makefile$(PLATFORM)
378
379pwmanager/libcrypt/cipher/Makefile$(PLATFORM): pwmanager/libcrypt/cipher/cipher.pro
380 cd pwmanager/libcrypt/cipher;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" cipher.pro -o Makefile$(PLATFORM)
381
382pwmanager/libcrypt/zlib/Makefile$(PLATFORM): pwmanager/libcrypt/zlib/zlib.pro
383 cd pwmanager/libcrypt/zlib;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" zlib.pro -o Makefile$(PLATFORM)
384
385 183
diff --git a/kabc/plugins/dir/dir.pro b/kabc/plugins/dir/dir.pro
index a7c1503..3e18594 100644
--- a/kabc/plugins/dir/dir.pro
+++ b/kabc/plugins/dir/dir.pro
@@ -1,34 +1,36 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2CONFIG += qt warn_on release 2CONFIG += qt warn_on release
3#release debug 3#release debug
4 4
5include( ../../../variables.pri )
6
5TARGET = microkabc_dir 7TARGET = microkabc_dir
6INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat 8INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat
7DESTDIR = ../../../bin 9DESTDIR = ../../../bin
8#LIBS += -lmicrokde -lmicrokabc 10#LIBS += -lmicrokde -lmicrokabc
9#LIBS += -L$(QPEDIR)/lib 11#LIBS += -L$(QPEDIR)/lib
10 12
11INTERFACES = \ 13INTERFACES = \
12 14
13HEADERS = \ 15HEADERS = \
14 resourcedir.h \ 16 resourcedir.h \
15 resourcedirconfig.h 17 resourcedirconfig.h
16 18
17SOURCES = \ 19SOURCES = \
18 resourcedir.cpp \ 20 resourcedir.cpp \
19 resourcedirconfig.cpp 21 resourcedirconfig.cpp
20 22
21unix : { 23unix : {
22OBJECTS_DIR = obj/unix 24OBJECTS_DIR = obj/unix
23MOC_DIR = moc/unix 25MOC_DIR = moc/unix
24} 26}
25win32: { 27win32: {
26CONFIG += dll 28CONFIG += dll
27DEFINES += _WIN32_ 29DEFINES += _WIN32_
28OBJECTS_DIR = obj/win 30OBJECTS_DIR = obj/win
29MOC_DIR = moc/win 31MOC_DIR = moc/win
30LIBS += ../../../bin/microkdepim.lib 32LIBS += ../../../bin/microkdepim.lib
31LIBS += ../../../bin/microkcal.lib 33LIBS += ../../../bin/microkcal.lib
32LIBS += ../../../bin/microkde.lib 34LIBS += ../../../bin/microkde.lib
33LIBS += ../../../bin/microkabc.lib 35LIBS += ../../../bin/microkabc.lib
34} 36}
diff --git a/kabc/plugins/file/file.pro b/kabc/plugins/file/file.pro
index 154ef2a..2d17313 100644
--- a/kabc/plugins/file/file.pro
+++ b/kabc/plugins/file/file.pro
@@ -1,35 +1,37 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2CONFIG += qt warn_on release 2CONFIG += qt warn_on release
3#release debug 3#release debug
4 4
5include( ../../../variables.pri )
6
5TARGET = microkabc_file 7TARGET = microkabc_file
6INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat 8INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat
7 9
8DESTDIR = ../../../bin 10DESTDIR = ../../../bin
9#LIBS += -lmicrokde -lmicrokabc 11#LIBS += -lmicrokde -lmicrokabc
10#LIBS += -L$(QPEDIR)/lib 12#LIBS += -L$(QPEDIR)/lib
11 13
12INTERFACES = \ 14INTERFACES = \
13 15
14HEADERS = \ 16HEADERS = \
15 resourcefile.h \ 17 resourcefile.h \
16 resourcefileconfig.h 18 resourcefileconfig.h
17 19
18SOURCES = \ 20SOURCES = \
19 resourcefile.cpp \ 21 resourcefile.cpp \
20 resourcefileconfig.cpp 22 resourcefileconfig.cpp
21 23
22unix : { 24unix : {
23OBJECTS_DIR = obj/unix 25OBJECTS_DIR = obj/unix
24MOC_DIR = moc/unix 26MOC_DIR = moc/unix
25} 27}
26win32: { 28win32: {
27CONFIG += dll 29CONFIG += dll
28DEFINES += _WIN32_ 30DEFINES += _WIN32_
29OBJECTS_DIR = obj/win 31OBJECTS_DIR = obj/win
30MOC_DIR = moc/win 32MOC_DIR = moc/win
31LIBS += ../../../bin/microkdepim.lib 33LIBS += ../../../bin/microkdepim.lib
32LIBS += ../../../bin/microkcal.lib 34LIBS += ../../../bin/microkcal.lib
33LIBS += ../../../bin/microkde.lib 35LIBS += ../../../bin/microkde.lib
34LIBS += ../../../bin/microkabc.lib 36LIBS += ../../../bin/microkabc.lib
35} 37}
diff --git a/kabc/plugins/qtopia/qtopia.pro b/kabc/plugins/qtopia/qtopia.pro
index 0360abf..64d1abc 100644
--- a/kabc/plugins/qtopia/qtopia.pro
+++ b/kabc/plugins/qtopia/qtopia.pro
@@ -1,41 +1,43 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2CONFIG += qt warn_on release 2CONFIG += qt warn_on release
3 3
4include( ../../../variables.pri )
5
4TARGET = microkabc_qtopia 6TARGET = microkabc_qtopia
5 7
6INCLUDEPATH += ../.. ../../.. ../../../kabc ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources 8INCLUDEPATH += ../.. ../../.. ../../../kabc ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources
7 9
8DESTDIR = ../../../bin 10DESTDIR = ../../../bin
9#LIBS += -lmicrokde 11#LIBS += -lmicrokde
10#LIBS += -lkamicrokabc 12#LIBS += -lkamicrokabc
11 13
12DEFINES += KAB_EMBEDDED DESKTOP_VERSION 14DEFINES += KAB_EMBEDDED DESKTOP_VERSION
13 15
14INTERFACES = \ 16INTERFACES = \
15 17
16HEADERS = \ 18HEADERS = \
17 resourceqtopia.h \ 19 resourceqtopia.h \
18 resourceqtopiaconfig.h \ 20 resourceqtopiaconfig.h \
19 qtopiaconverter.h 21 qtopiaconverter.h
20 22
21SOURCES = \ 23SOURCES = \
22 resourceqtopia.cpp \ 24 resourceqtopia.cpp \
23 resourceqtopiaconfig.cpp \ 25 resourceqtopiaconfig.cpp \
24 qtopiaconverter.cpp 26 qtopiaconverter.cpp
25 27
26 28
27 29
28unix : { 30unix : {
29OBJECTS_DIR = obj/unix 31OBJECTS_DIR = obj/unix
30MOC_DIR = moc/unix 32MOC_DIR = moc/unix
31} 33}
32win32: { 34win32: {
33CONFIG += dll 35CONFIG += dll
34DEFINES += _WIN32_ 36DEFINES += _WIN32_
35OBJECTS_DIR = obj/win 37OBJECTS_DIR = obj/win
36MOC_DIR = moc/win 38MOC_DIR = moc/win
37LIBS += ../../../bin/microkdepim.lib 39LIBS += ../../../bin/microkdepim.lib
38LIBS += ../../../bin/microkcal.lib 40LIBS += ../../../bin/microkcal.lib
39LIBS += ../../../bin/microkde.lib 41LIBS += ../../../bin/microkde.lib
40LIBS += ../../../bin/microkabc.lib 42LIBS += ../../../bin/microkabc.lib
41} 43}
diff --git a/kaddressbook/kaddressbook.pro b/kaddressbook/kaddressbook.pro
index 2534835..7203eb3 100644
--- a/kaddressbook/kaddressbook.pro
+++ b/kaddressbook/kaddressbook.pro
@@ -1,187 +1,198 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG = qt warn_on 2 CONFIG = qt warn_on
3 TARGET = kapi 3 TARGET = kapi
4DESTDIR= ../bin 4DESTDIR= ../bin
5 5
6include( ../variables.pri ) 6include( ../variables.pri )
7 7
8 8
9INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../ interfaces 9INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../ interfaces
10DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION 10DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION
11 11
12unix : { 12unix : {
13 13
14staticlib: { 14staticlib: {
15LIBS += ../bin/libmicrokabc_qtopia.a
16LIBS += ../bin/libmicrokabc_file.a
17LIBS += ../bin/libmicrokabc_dir.a
18LIBS += ../bin/libmicrokdepim.a
19LIBS += ../bin/libmicrokcal.a
20LIBS += ../bin/libmicrokabc.a
21LIBS += ../bin/libmicrokde.a
22LIBS += ../bin/libmicrokabc_qtopia.a
23LIBS += ../bin/libmicrokabc_file.a
24LIBS += ../bin/libmicrokabc_dir.a
15LIBS += ../bin/libmicrokdepim.a 25LIBS += ../bin/libmicrokdepim.a
16LIBS += ../bin/libmicrokcal.a 26LIBS += ../bin/libmicrokcal.a
17LIBS += ../bin/libmicrokabc.a 27LIBS += ../bin/libmicrokabc.a
18LIBS += ../bin/libmicrokde.a 28LIBS += ../bin/libmicrokde.a
19LIBS += ../libical/lib/libical.a 29LIBS += ../libical/lib/libical.a
20LIBS += ../libical/lib/libicalss.a 30LIBS += ../libical/lib/libicalss.a
31
21} else { 32} else {
22LIBS += ../bin/libmicrokdepim.so 33LIBS += ../bin/libmicrokdepim.so
23LIBS += ../bin/libmicrokde.so 34LIBS += ../bin/libmicrokde.so
24LIBS += ../bin/libmicrokabc.so 35LIBS += ../bin/libmicrokabc.so
25LIBS += ../bin/libmicrokcal.so 36LIBS += ../bin/libmicrokcal.so
26#LIBS += -lldap 37#LIBS += -lldap
27} 38}
28OBJECTS_DIR = obj/unix 39OBJECTS_DIR = obj/unix
29MOC_DIR = moc/unix 40MOC_DIR = moc/unix
30} 41}
31win32: { 42win32: {
32RC_FILE = winicons.rc 43RC_FILE = winicons.rc
33DEFINES += _WIN32_ 44DEFINES += _WIN32_
34LIBS += ../bin/microkdepim.lib 45LIBS += ../bin/microkdepim.lib
35LIBS += ../bin/microkcal.lib 46LIBS += ../bin/microkcal.lib
36LIBS += ../bin/microkde.lib 47LIBS += ../bin/microkde.lib
37LIBS += ../bin/microkabc.lib 48LIBS += ../bin/microkabc.lib
38QMAKE_LINK += /NODEFAULTLIB:LIBC 49QMAKE_LINK += /NODEFAULTLIB:LIBC
39OBJECTS_DIR = obj/win 50OBJECTS_DIR = obj/win
40MOC_DIR = moc/win 51MOC_DIR = moc/win
41#olimport section 52#olimport section
42#blabla: { 53#blabla: {
43 54
44LIBS += mfc71u.lib 55LIBS += mfc71u.lib
45DEFINES += _OL_IMPORT_ 56DEFINES += _OL_IMPORT_
46HEADERS = ../outport/msoutl9.h \ 57HEADERS = ../outport/msoutl9.h \
47 kaimportoldialog.h 58 kaimportoldialog.h
48SOURCES = ../outport/msoutl9.cpp \ 59SOURCES = ../outport/msoutl9.cpp \
49 kaimportoldialog.cpp 60 kaimportoldialog.cpp
50#} 61#}
51#olimport section end 62#olimport section end
52} 63}
53 64
54INTERFACES = \ 65INTERFACES = \
55# filteredit_base.ui \ 66# filteredit_base.ui \
56# kofilterview_base.ui \ 67# kofilterview_base.ui \
57 68
58HEADERS += \ 69HEADERS += \
59features/mergewidget.h \ 70features/mergewidget.h \
60features/distributionlistwidget.h \ 71features/distributionlistwidget.h \
61kcmconfigs/addresseewidget.h \ 72kcmconfigs/addresseewidget.h \
62kcmconfigs/extensionconfigdialog.h \ 73kcmconfigs/extensionconfigdialog.h \
63kcmconfigs/kcmkabconfig.h \ 74kcmconfigs/kcmkabconfig.h \
64kcmconfigs/kabconfigwidget.h \ 75kcmconfigs/kabconfigwidget.h \
65addresseeeditordialog.h \ 76addresseeeditordialog.h \
66addresseeeditorwidget.h \ 77addresseeeditorwidget.h \
67addresseditwidget.h \ 78addresseditwidget.h \
68addresseeconfig.h \ 79addresseeconfig.h \
69addresseeutil.h \ 80addresseeutil.h \
70emaileditwidget.h \ 81emaileditwidget.h \
71filtereditdialog.h \ 82filtereditdialog.h \
72kaddressbookmain.h \ 83kaddressbookmain.h \
73kabprefs.h \ 84kabprefs.h \
74kabcore.h \ 85kabcore.h \
75viewmanager.h \ 86viewmanager.h \
76extensionmanager.h \ 87extensionmanager.h \
77extensionwidget.h \ 88extensionwidget.h \
78kaddressbookview.h \ 89kaddressbookview.h \
79geowidget.h \ 90geowidget.h \
80imagewidget.h \ 91imagewidget.h \
81incsearchwidget.h \ 92incsearchwidget.h \
82jumpbuttonbar.h \ 93jumpbuttonbar.h \
83phoneeditwidget.h \ 94phoneeditwidget.h \
84secrecywidget.h \ 95secrecywidget.h \
85keywidget.h \ 96keywidget.h \
86nameeditdialog.h \ 97nameeditdialog.h \
87filter.h \ 98filter.h \
88addviewdialog.h \ 99addviewdialog.h \
89configurewidget.h \ 100configurewidget.h \
90viewconfigurewidget.h \ 101viewconfigurewidget.h \
91viewconfigurefieldspage.h \ 102viewconfigurefieldspage.h \
92viewconfigurefilterpage.h \ 103viewconfigurefilterpage.h \
93typecombo.h \ 104typecombo.h \
94undo.h \ 105undo.h \
95undocmds.h \ 106undocmds.h \
96xxportmanager.h \ 107xxportmanager.h \
97xxportobject.h \ 108xxportobject.h \
98xxportselectdialog.h \ 109xxportselectdialog.h \
99details/detailsviewcontainer.h \ 110details/detailsviewcontainer.h \
100details/look_basic.h \ 111details/look_basic.h \
101details/look_html.h \ 112details/look_html.h \
102views/kaddressbookiconview.h \ 113views/kaddressbookiconview.h \
103views/kaddressbooktableview.h \ 114views/kaddressbooktableview.h \
104views/kaddressbookcardview.h \ 115views/kaddressbookcardview.h \
105views/configuretableviewdialog.h \ 116views/configuretableviewdialog.h \
106views/configurecardviewdialog.h \ 117views/configurecardviewdialog.h \
107views/cardview.h \ 118views/cardview.h \
108views/colorlistbox.h \ 119views/colorlistbox.h \
109views/contactlistview.h \ 120views/contactlistview.h \
110xxport/vcard_xxport.h \ 121xxport/vcard_xxport.h \
111xxport/kde2_xxport.h \ 122xxport/kde2_xxport.h \
112xxport/csv_xxport.h \ 123xxport/csv_xxport.h \
113xxport/csvimportdialog.h \ 124xxport/csvimportdialog.h \
114xxport/opie_xxport.h \ 125xxport/opie_xxport.h \
115xxport/qtopia_xxport.h \ 126xxport/qtopia_xxport.h \
116xxport/sharpdtm_xxport.h \ 127xxport/sharpdtm_xxport.h \
117#details/look_details.h \ 128#details/look_details.h \
118#mainwindoiw.h \ 129#mainwindoiw.h \
119# alarmclient.h \ 130# alarmclient.h \
120# calendarview.h \ 131# calendarview.h \
121# customlistviewitem.h \ 132# customlistviewitem.h \
122# datenavigator.h 133# datenavigator.h
123 134
124SOURCES += \ 135SOURCES += \
125addresseeeditordialog.cpp \ 136addresseeeditordialog.cpp \
126addresseeeditorwidget.cpp \ 137addresseeeditorwidget.cpp \
127addresseditwidget.cpp \ 138addresseditwidget.cpp \
128addresseeconfig.cpp \ 139addresseeconfig.cpp \
129addresseeutil.cpp \ 140addresseeutil.cpp \
130extensionmanager.cpp \ 141extensionmanager.cpp \
131features/mergewidget.cpp \ 142features/mergewidget.cpp \
132features/distributionlistwidget.cpp \ 143features/distributionlistwidget.cpp \
133kcmconfigs/addresseewidget.cpp \ 144kcmconfigs/addresseewidget.cpp \
134kcmconfigs/extensionconfigdialog.cpp \ 145kcmconfigs/extensionconfigdialog.cpp \
135kcmconfigs/kcmkabconfig.cpp \ 146kcmconfigs/kcmkabconfig.cpp \
136kcmconfigs/kabconfigwidget.cpp \ 147kcmconfigs/kabconfigwidget.cpp \
137emaileditwidget.cpp \ 148emaileditwidget.cpp \
138filtereditdialog.cpp \ 149filtereditdialog.cpp \
139mainembedded.cpp \ 150mainembedded.cpp \
140kaddressbookmain.cpp \ 151kaddressbookmain.cpp \
141kabcore.cpp \ 152kabcore.cpp \
142kabprefs.cpp \ 153kabprefs.cpp \
143viewmanager.cpp \ 154viewmanager.cpp \
144kaddressbookview.cpp \ 155kaddressbookview.cpp \
145extensionwidget.cpp \ 156extensionwidget.cpp \
146geowidget.cpp \ 157geowidget.cpp \
147imagewidget.cpp \ 158imagewidget.cpp \
148incsearchwidget.cpp \ 159incsearchwidget.cpp \
149jumpbuttonbar.cpp \ 160jumpbuttonbar.cpp \
150phoneeditwidget.cpp \ 161phoneeditwidget.cpp \
151secrecywidget.cpp \ 162secrecywidget.cpp \
152keywidget.cpp \ 163keywidget.cpp \
153nameeditdialog.cpp \ 164nameeditdialog.cpp \
154filter.cpp \ 165filter.cpp \
155addviewdialog.cpp \ 166addviewdialog.cpp \
156configurewidget.cpp \ 167configurewidget.cpp \
157viewconfigurewidget.cpp \ 168viewconfigurewidget.cpp \
158viewconfigurefieldspage.cpp \ 169viewconfigurefieldspage.cpp \
159viewconfigurefilterpage.cpp \ 170viewconfigurefilterpage.cpp \
160undo.cpp \ 171undo.cpp \
161undocmds.cpp \ 172undocmds.cpp \
162xxportmanager.cpp \ 173xxportmanager.cpp \
163xxportobject.cpp \ 174xxportobject.cpp \
164xxportselectdialog.cpp \ 175xxportselectdialog.cpp \
165details/detailsviewcontainer.cpp \ 176details/detailsviewcontainer.cpp \
166details/look_basic.cpp \ 177details/look_basic.cpp \
167details/look_html.cpp \ 178details/look_html.cpp \
168views/kaddressbookiconview.cpp \ 179views/kaddressbookiconview.cpp \
169views/kaddressbooktableview.cpp \ 180views/kaddressbooktableview.cpp \
170views/kaddressbookcardview.cpp \ 181views/kaddressbookcardview.cpp \
171views/configuretableviewdialog.cpp \ 182views/configuretableviewdialog.cpp \
172views/configurecardviewdialog.cpp \ 183views/configurecardviewdialog.cpp \
173views/cardview.cpp \ 184views/cardview.cpp \
174views/contactlistview.cpp \ 185views/contactlistview.cpp \
175views/colorlistbox.cpp \ 186views/colorlistbox.cpp \
176xxport/vcard_xxport.cpp \ 187xxport/vcard_xxport.cpp \
177xxport/kde2_xxport.cpp \ 188xxport/kde2_xxport.cpp \
178xxport/csv_xxport.cpp \ 189xxport/csv_xxport.cpp \
179xxport/csvimportdialog.cpp \ 190xxport/csvimportdialog.cpp \
180xxport/opie_xxport.cpp \ 191xxport/opie_xxport.cpp \
181xxport/qtopia_xxport.cpp \ 192xxport/qtopia_xxport.cpp \
182xxport/sharpdtm_xxport.cpp \ 193xxport/sharpdtm_xxport.cpp \
183#details/look_details.cpp \ 194#details/look_details.cpp \
184#mainwindow.cpp \ 195#mainwindow.cpp \
185# calendarview.cpp \ 196# calendarview.cpp \
186# timespanview.cpp 197# timespanview.cpp
187 198
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro
index 59a1a84..1a81c7d 100644
--- a/korganizer/korganizer.pro
+++ b/korganizer/korganizer.pro
@@ -1,200 +1,210 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG += qt warn_on 2 CONFIG = qt warn_on
3 TARGET = kopi 3 TARGET = kopi
4OBJECTS_DIR = _obj/ 4OBJECTS_DIR = _obj/
5MOC_DIR = _moc 5MOC_DIR = _moc
6DESTDIR= ../bin 6DESTDIR= ../bin
7 7
8include( ../variables.pri ) 8include( ../variables.pri )
9 9
10INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim 10INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim
11#../qtcompat 11#../qtcompat
12DEFINES += KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL 12DEFINES += KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL
13DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER 13DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER
14#KORG_NOPRINTER KORG_NOKABC KORG_NODND 14#KORG_NOPRINTER KORG_NOKABC KORG_NODND
15DEFINES += KORG_NOLVALTERNATION 15DEFINES += KORG_NOLVALTERNATION
16DEFINES += DESKTOP_VERSION 16DEFINES += DESKTOP_VERSION
17unix : { 17unix : {
18staticlib: { 18staticlib: {
19LIBS += ../bin/libmicrokabc_qtopia.a
20LIBS += ../bin/libmicrokabc_file.a
21LIBS += ../bin/libmicrokabc_dir.a
22LIBS += ../bin/libmicrokdepim.a
23LIBS += ../bin/libmicrokcal.a
24LIBS += ../bin/libmicrokabc.a
25LIBS += ../bin/libmicrokde.a
26LIBS += ../bin/libmicrokabc_qtopia.a
27LIBS += ../bin/libmicrokabc_file.a
28LIBS += ../bin/libmicrokabc_dir.a
19LIBS += ../bin/libmicrokdepim.a 29LIBS += ../bin/libmicrokdepim.a
20LIBS += ../bin/libmicrokcal.a 30LIBS += ../bin/libmicrokcal.a
21LIBS += ../bin/libmicrokabc.a 31LIBS += ../bin/libmicrokabc.a
22LIBS += ../bin/libmicrokde.a 32LIBS += ../bin/libmicrokde.a
23LIBS += ../libical/lib/libical.a 33LIBS += ../libical/lib/libical.a
24LIBS += ../libical/lib/libicalss.a 34LIBS += ../libical/lib/libicalss.a
25} else { 35} else {
26LIBS += ../bin/libmicrokdepim.so 36LIBS += ../bin/libmicrokdepim.so
27LIBS += ../bin/libmicrokcal.so 37LIBS += ../bin/libmicrokcal.so
28LIBS += ../bin/libmicrokde.so 38LIBS += ../bin/libmicrokde.so
29LIBS += ../bin/libmicrokabc.so 39LIBS += ../bin/libmicrokabc.so
30#LIBS += -lbluetooth 40#LIBS += -lbluetooth
31#LIBS += -lsdp 41#LIBS += -lsdp
32 42
33#LIBS += -lldap 43#LIBS += -lldap
34} 44}
35OBJECTS_DIR = obj/unix 45OBJECTS_DIR = obj/unix
36MOC_DIR = moc/unix 46MOC_DIR = moc/unix
37} 47}
38win32: { 48win32: {
39RC_FILE = winicons.rc 49RC_FILE = winicons.rc
40DEFINES += _WIN32_ 50DEFINES += _WIN32_
41LIBS += ../bin/microkdepim.lib 51LIBS += ../bin/microkdepim.lib
42LIBS += ../bin/microkcal.lib 52LIBS += ../bin/microkcal.lib
43LIBS += ../bin/microkde.lib 53LIBS += ../bin/microkde.lib
44LIBS += ../bin/microkabc.lib 54LIBS += ../bin/microkabc.lib
45LIBS += ../libical/lib/ical.lib 55LIBS += ../libical/lib/ical.lib
46LIBS += ../libical/lib/icalss.lib 56LIBS += ../libical/lib/icalss.lib
47#LIBS += atls.lib 57#LIBS += atls.lib
48QMAKE_LINK += /NODEFAULTLIB:LIBC 58QMAKE_LINK += /NODEFAULTLIB:LIBC
49#QMAKE_LINK += /NODEFAULTLIB:MSVCRT 59#QMAKE_LINK += /NODEFAULTLIB:MSVCRT
50#QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib 60#QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib
51OBJECTS_DIR = obj/win 61OBJECTS_DIR = obj/win
52MOC_DIR = moc/win 62MOC_DIR = moc/win
53#olimport section 63#olimport section
54#blabla: { 64#blabla: {
55LIBS += mfc71u.lib 65LIBS += mfc71u.lib
56DEFINES += _OL_IMPORT_ 66DEFINES += _OL_IMPORT_
57 67
58HEADERS += ../outport/msoutl9.h \ 68HEADERS += ../outport/msoutl9.h \
59 koimportoldialog.h 69 koimportoldialog.h
60SOURCES += ../outport/msoutl9.cpp \ 70SOURCES += ../outport/msoutl9.cpp \
61 koimportoldialog.cpp 71 koimportoldialog.cpp
62#} 72#}
63#olimport section end 73#olimport section end
64 74
65} 75}
66 76
67 77
68INTERFACES = kofilterview_base.ui 78INTERFACES = kofilterview_base.ui
69#filteredit_base.ui 79#filteredit_base.ui
70 80
71# kdateedit.h \ 81# kdateedit.h \
72 82
73HEADERS += datenavigatorcontainer.h \ 83HEADERS += datenavigatorcontainer.h \
74 filteredit_base.h \ 84 filteredit_base.h \
75 alarmclient.h \ 85 alarmclient.h \
76 calendarview.h \ 86 calendarview.h \
77 customlistviewitem.h \ 87 customlistviewitem.h \
78 datenavigator.h \ 88 datenavigator.h \
79 docprefs.h \ 89 docprefs.h \
80 filtereditdialog.h \ 90 filtereditdialog.h \
81 incomingdialog.h \ 91 incomingdialog.h \
82 incomingdialog_base.h \ 92 incomingdialog_base.h \
83 interfaces/korganizer/baseview.h \ 93 interfaces/korganizer/baseview.h \
84 interfaces/korganizer/calendarviewbase.h \ 94 interfaces/korganizer/calendarviewbase.h \
85 journalentry.h \ 95 journalentry.h \
86 kdatenavigator.h \ 96 kdatenavigator.h \
87 koagenda.h \ 97 koagenda.h \
88 koagendaitem.h \ 98 koagendaitem.h \
89 koagendaview.h \ 99 koagendaview.h \
90 kocounterdialog.h \ 100 kocounterdialog.h \
91 kodaymatrix.h \ 101 kodaymatrix.h \
92 kodialogmanager.h \ 102 kodialogmanager.h \
93 koeditordetails.h \ 103 koeditordetails.h \
94 koeditorgeneral.h \ 104 koeditorgeneral.h \
95 koeditorgeneralevent.h \ 105 koeditorgeneralevent.h \
96 koeditorgeneraltodo.h \ 106 koeditorgeneraltodo.h \
97 koeditorrecurrence.h \ 107 koeditorrecurrence.h \
98 koeventeditor.h \ 108 koeventeditor.h \
99 koeventpopupmenu.h \ 109 koeventpopupmenu.h \
100 koeventview.h \ 110 koeventview.h \
101 koeventviewer.h \ 111 koeventviewer.h \
102 koeventviewerdialog.h \ 112 koeventviewerdialog.h \
103 kofilterview.h \ 113 kofilterview.h \
104 koglobals.h \ 114 koglobals.h \
105 koincidenceeditor.h \ 115 koincidenceeditor.h \
106 kojournalview.h \ 116 kojournalview.h \
107 kolistview.h \ 117 kolistview.h \
108 kolocationbox.h \ 118 kolocationbox.h \
109 komonthview.h \ 119 komonthview.h \
110 koprefs.h \ 120 koprefs.h \
111 koprefsdialog.h \ 121 koprefsdialog.h \
112 kotimespanview.h \ 122 kotimespanview.h \
113 kotodoeditor.h \ 123 kotodoeditor.h \
114 kotodoview.h \ 124 kotodoview.h \
115 kotodoviewitem.h \ 125 kotodoviewitem.h \
116 koviewmanager.h \ 126 koviewmanager.h \
117 kowhatsnextview.h \ 127 kowhatsnextview.h \
118 ktimeedit.h \ 128 ktimeedit.h \
119 lineview.h \ 129 lineview.h \
120 mainwindow.h \ 130 mainwindow.h \
121 navigatorbar.h \ 131 navigatorbar.h \
122 outgoingdialog.h \ 132 outgoingdialog.h \
123 outgoingdialog_base.h \ 133 outgoingdialog_base.h \
124 publishdialog.h \ 134 publishdialog.h \
125 publishdialog_base.h \ 135 publishdialog_base.h \
126 savetemplatedialog.h \ 136 savetemplatedialog.h \
127 searchdialog.h \ 137 searchdialog.h \
128 simplealarmclient.h \ 138 simplealarmclient.h \
129 statusdialog.h \ 139 statusdialog.h \
130 timeline.h \ 140 timeline.h \
131 timespanview.h \ 141 timespanview.h \
132 version.h \ 142 version.h \
133 ../kalarmd/alarmdialog.h \ 143 ../kalarmd/alarmdialog.h \
134 144
135 145
136SOURCES += datenavigatorcontainer.cpp \ 146SOURCES += datenavigatorcontainer.cpp \
137filteredit_base.cpp \ 147filteredit_base.cpp \
138 calendarview.cpp \ 148 calendarview.cpp \
139 datenavigator.cpp \ 149 datenavigator.cpp \
140 docprefs.cpp \ 150 docprefs.cpp \
141 filtereditdialog.cpp \ 151 filtereditdialog.cpp \
142 incomingdialog.cpp \ 152 incomingdialog.cpp \
143 incomingdialog_base.cpp \ 153 incomingdialog_base.cpp \
144 journalentry.cpp \ 154 journalentry.cpp \
145 kdatenavigator.cpp \ 155 kdatenavigator.cpp \
146 koagenda.cpp \ 156 koagenda.cpp \
147 koagendaitem.cpp \ 157 koagendaitem.cpp \
148 koagendaview.cpp \ 158 koagendaview.cpp \
149 kocounterdialog.cpp \ 159 kocounterdialog.cpp \
150 kodaymatrix.cpp \ 160 kodaymatrix.cpp \
151 kodialogmanager.cpp \ 161 kodialogmanager.cpp \
152 koeditordetails.cpp \ 162 koeditordetails.cpp \
153 koeditorgeneral.cpp \ 163 koeditorgeneral.cpp \
154 koeditorgeneralevent.cpp \ 164 koeditorgeneralevent.cpp \
155 koeditorgeneraltodo.cpp \ 165 koeditorgeneraltodo.cpp \
156 koeditorrecurrence.cpp \ 166 koeditorrecurrence.cpp \
157 koeventeditor.cpp \ 167 koeventeditor.cpp \
158 koeventpopupmenu.cpp \ 168 koeventpopupmenu.cpp \
159 koeventview.cpp \ 169 koeventview.cpp \
160 koeventviewer.cpp \ 170 koeventviewer.cpp \
161 koeventviewerdialog.cpp \ 171 koeventviewerdialog.cpp \
162 kofilterview.cpp \ 172 kofilterview.cpp \
163 koglobals.cpp \ 173 koglobals.cpp \
164 koincidenceeditor.cpp \ 174 koincidenceeditor.cpp \
165 kojournalview.cpp \ 175 kojournalview.cpp \
166 kolistview.cpp \ 176 kolistview.cpp \
167 kolocationbox.cpp \ 177 kolocationbox.cpp \
168 komonthview.cpp \ 178 komonthview.cpp \
169 koprefs.cpp \ 179 koprefs.cpp \
170 koprefsdialog.cpp \ 180 koprefsdialog.cpp \
171 kotimespanview.cpp \ 181 kotimespanview.cpp \
172 kotodoeditor.cpp \ 182 kotodoeditor.cpp \
173 kotodoview.cpp \ 183 kotodoview.cpp \
174 kotodoviewitem.cpp \ 184 kotodoviewitem.cpp \
175 koviewmanager.cpp \ 185 koviewmanager.cpp \
176 kowhatsnextview.cpp \ 186 kowhatsnextview.cpp \
177 ktimeedit.cpp \ 187 ktimeedit.cpp \
178 lineview.cpp \ 188 lineview.cpp \
179 main.cpp \ 189 main.cpp \
180 mainwindow.cpp \ 190 mainwindow.cpp \
181 navigatorbar.cpp \ 191 navigatorbar.cpp \
182 outgoingdialog.cpp \ 192 outgoingdialog.cpp \
183 outgoingdialog_base.cpp \ 193 outgoingdialog_base.cpp \
184 publishdialog.cpp \ 194 publishdialog.cpp \
185 publishdialog_base.cpp \ 195 publishdialog_base.cpp \
186 savetemplatedialog.cpp \ 196 savetemplatedialog.cpp \
187 searchdialog.cpp \ 197 searchdialog.cpp \
188 simplealarmclient.cpp \ 198 simplealarmclient.cpp \
189 statusdialog.cpp \ 199 statusdialog.cpp \
190 timeline.cpp \ 200 timeline.cpp \
191 timespanview.cpp \ 201 timespanview.cpp \
192 ../kalarmd/alarmdialog.cpp 202 ../kalarmd/alarmdialog.cpp
193 203
194HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h 204HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h
195INTERFACES += calprintdayconfig_base.ui \ 205INTERFACES += calprintdayconfig_base.ui \
196 calprintmonthconfig_base.ui \ 206 calprintmonthconfig_base.ui \
197 calprinttodoconfig_base.ui \ 207 calprinttodoconfig_base.ui \
198 calprintweekconfig_base.ui 208 calprintweekconfig_base.ui
199SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp 209SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp
200 210
diff --git a/microkde/kresources/factory.cpp b/microkde/kresources/factory.cpp
index a3b7fff..5fbfa68 100644
--- a/microkde/kresources/factory.cpp
+++ b/microkde/kresources/factory.cpp
@@ -1,256 +1,282 @@
1/* 1/*
2 This file is part of libkresources. 2 This file is part of libkresources.
3 3
4 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org> 4 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org> 5 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
6 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> 6 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version. 11 version 2 of the License, or (at your option) any later version.
12 12
13 This library is distributed in the hope that it will be useful, 13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details. 16 Library General Public License for more details.
17 17
18 You should have received a copy of the GNU Library General Public License 18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to 19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. 21 Boston, MA 02111-1307, USA.
22*/ 22*/
23 23
24#include <kdebug.h> 24#include <kdebug.h>
25#include <klocale.h> 25#include <klocale.h>
26#include <ksimpleconfig.h> 26#include <ksimpleconfig.h>
27#include <kstandarddirs.h> 27#include <kstandarddirs.h>
28#include <kstaticdeleter.h> 28#include <kstaticdeleter.h>
29//#ifndef DESKTOP_VERSION 29//#ifndef DESKTOP_VERSION
30#include <klibloader.h> 30#include <klibloader.h>
31//#endif 31//#endif
32#include <qfile.h> 32#include <qfile.h>
33 33
34#include "resource.h" 34#include "resource.h"
35#include "factory.h" 35#include "factory.h"
36 36
37#ifdef STATIC_RESOURCES
38#include <file/resourcefile.h>
39#include <dir/resourcedir.h>
40#include <qtopia/resourceqtopia.h>
41#endif
37using namespace KRES; 42using namespace KRES;
38 43
39QDict<Factory> *Factory::mSelves = 0; 44QDict<Factory> *Factory::mSelves = 0;
40static KStaticDeleter< QDict<Factory> > staticDeleter; 45static KStaticDeleter< QDict<Factory> > staticDeleter;
41 46
42Factory *Factory::self( const QString& resourceFamily) 47Factory *Factory::self( const QString& resourceFamily)
43{ 48{
44 49
45 50
46 Factory *factory = 0; 51 Factory *factory = 0;
47 if ( !mSelves ) 52 if ( !mSelves )
48 { 53 {
49 mSelves = staticDeleter.setObject( new QDict<Factory> ); 54 mSelves = staticDeleter.setObject( new QDict<Factory> );
50 } 55 }
51 56
52 factory = mSelves->find( resourceFamily ); 57 factory = mSelves->find( resourceFamily );
53 58
54 if ( !factory ) { 59 if ( !factory ) {
55 factory = new Factory( resourceFamily); 60 factory = new Factory( resourceFamily);
56 mSelves->insert( resourceFamily, factory ); 61 mSelves->insert( resourceFamily, factory );
57 } 62 }
58 63
59 return factory; 64 return factory;
60} 65}
61 66
62Factory::Factory( const QString& resourceFamily) : 67Factory::Factory( const QString& resourceFamily) :
63 mResourceFamily( resourceFamily ) 68 mResourceFamily( resourceFamily )
64{ 69{
65//US so far we have three types available for resourceFamily "contact" 70//US so far we have three types available for resourceFamily "contact"
66// and that are "file", "dir", "ldap" 71// and that are "file", "dir", "ldap"
67/*US 72/*US
68 73
69 KTrader::OfferList plugins = KTrader::self()->query( "KResources/Plugin", QString( "[X-KDE-ResourceFamily] == '%1'" ) 74 KTrader::OfferList plugins = KTrader::self()->query( "KResources/Plugin", QString( "[X-KDE-ResourceFamily] == '%1'" )
70 .arg( resourceFamily ) ); 75 .arg( resourceFamily ) );
71 KTrader::OfferList::ConstIterator it; 76 KTrader::OfferList::ConstIterator it;
72 for ( it = plugins.begin(); it != plugins.end(); ++it ) { 77 for ( it = plugins.begin(); it != plugins.end(); ++it ) {
73 QVariant type = (*it)->property( "X-KDE-ResourceType" ); 78 QVariant type = (*it)->property( "X-KDE-ResourceType" );
74 if ( !type.toString().isEmpty() ) 79 if ( !type.toString().isEmpty() )
75 mTypeMap.insert( type.toString(), *it ); 80 mTypeMap.insert( type.toString(), *it );
76 } 81 }
77*/ 82*/
78 83
79//US new 84//US new
80 PluginInfo* info = new PluginInfo; 85 PluginInfo* info = new PluginInfo;
81 info->library = "microkabc_file"; 86 info->library = "microkabc_file";
82 info->nameLabel = i18n( "file" ); 87 info->nameLabel = i18n( "file" );
83 info->descriptionLabel = i18n( "One file" ); 88 info->descriptionLabel = i18n( "One file" );
84 mTypeMap.insert( "file", info ); 89 mTypeMap.insert( "file", info );
85 90
86 info = new PluginInfo; 91 info = new PluginInfo;
87 info->library = "microkabc_dir"; 92 info->library = "microkabc_dir";
88 info->nameLabel = i18n( "dir" ); 93 info->nameLabel = i18n( "dir" );
89 info->descriptionLabel = i18n( "A directory with many files" ); 94 info->descriptionLabel = i18n( "A directory with many files" );
90 mTypeMap.insert( "dir", info ); 95 mTypeMap.insert( "dir", info );
91 96
92 info = new PluginInfo; 97 info = new PluginInfo;
93 info->library = "microkabc_ldap"; 98 info->library = "microkabc_ldap";
94 info->nameLabel = i18n( "ldap" ); 99 info->nameLabel = i18n( "ldap" );
95 info->descriptionLabel = i18n( "Connect to a directory server" ); 100 info->descriptionLabel = i18n( "Connect to a directory server" );
96 mTypeMap.insert( "ldap", info ); 101 mTypeMap.insert( "ldap", info );
97 102
98 //US add opie plugin only, if the library exists. 103 //US add opie plugin only, if the library exists.
99 /*US 104 /*US
100 QString libname = "microkabc_opie"; 105 QString libname = "microkabc_opie";
101 QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); 106 QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) );
102 if ( !path.isEmpty() ) 107 if ( !path.isEmpty() )
103 { 108 {
104 info = new PluginInfo; 109 info = new PluginInfo;
105 info->library = libname; 110 info->library = libname;
106 info->nameLabel = i18n( "opie" ); 111 info->nameLabel = i18n( "opie" );
107 info->descriptionLabel = i18n( "Opie PIM Addressbook." ); 112 info->descriptionLabel = i18n( "Opie PIM Addressbook." );
108 mTypeMap.insert( "opie", info ); 113 mTypeMap.insert( "opie", info );
109 } 114 }
110 */ 115 */
111 //US add qtopia plugin only, if the library exists. 116 //US add qtopia plugin only, if the library exists.
112 QString libname = "microkabc_qtopia"; 117 QString libname = "microkabc_qtopia";
113 QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); 118 QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) );
114 if ( !path.isEmpty() ) 119 if ( !path.isEmpty() )
115 { 120 {
116 info = new PluginInfo; 121 info = new PluginInfo;
117 info->library = libname; 122 info->library = libname;
118 info->nameLabel = i18n( "qtopia" ); 123 info->nameLabel = i18n( "qtopia" );
119 info->descriptionLabel = i18n( "Qtopia PIM Addressbook." ); 124 info->descriptionLabel = i18n( "Qtopia PIM Addressbook." );
120 mTypeMap.insert( "qtopia", info ); 125 mTypeMap.insert( "qtopia", info );
121 } 126 }
122 127
123 //US add sharp plugin only, if the library exists. 128 //US add sharp plugin only, if the library exists.
124 libname = "microkabc_sharpdtm"; 129 libname = "microkabc_sharpdtm";
125 path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); 130 path = KLibLoader::findLibrary( QFile::encodeName( libname ) );
126 if ( !path.isEmpty() ) 131 if ( !path.isEmpty() )
127 { 132 {
128 info = new PluginInfo; 133 info = new PluginInfo;
129 info->library = libname; 134 info->library = libname;
130 info->nameLabel = i18n( "sharp" ); 135 info->nameLabel = i18n( "sharp" );
131 info->descriptionLabel = i18n( "Sharp DTM Addressbook." ); 136 info->descriptionLabel = i18n( "Sharp DTM Addressbook." );
132 mTypeMap.insert( "sharp", info ); 137 mTypeMap.insert( "sharp", info );
133 } 138 }
134 139
135 140
136} 141}
137 142
138Factory::~Factory() 143Factory::~Factory()
139{ 144{
140} 145}
141 146
142QStringList Factory::typeNames() const 147QStringList Factory::typeNames() const
143{ 148{
144//US method QMap::keys() not available yet. SO collect the data manually 149//US method QMap::keys() not available yet. SO collect the data manually
145//US return mTypeMap.keys(); 150//US return mTypeMap.keys();
146 151
147 QStringList result; 152 QStringList result;
148 153
149 QMap<QString, PluginInfo*>::ConstIterator it; 154 QMap<QString, PluginInfo*>::ConstIterator it;
150 for( it = mTypeMap.begin(); it != mTypeMap.end(); ++it ) { 155 for( it = mTypeMap.begin(); it != mTypeMap.end(); ++it ) {
151 result << it.key().latin1(); 156 result << it.key().latin1();
152// qDebug("Factory::typeNames() : %s ", it.key().latin1()); 157// qDebug("Factory::typeNames() : %s ", it.key().latin1());
153 158
154 } 159 }
155 return result; 160 return result;
156} 161}
157 162
158ConfigWidget *Factory::configWidget( const QString& type, QWidget *parent ) 163ConfigWidget *Factory::configWidget( const QString& type, QWidget *parent )
159{ 164{
160 if ( type.isEmpty() || !mTypeMap.contains( type ) ) 165 if ( type.isEmpty() || !mTypeMap.contains( type ) )
161 return 0; 166 return 0;
162 167
163//US KService::Ptr ptr = mTypeMap[ type ]; 168//US KService::Ptr ptr = mTypeMap[ type ];
164//US KLibFactory *factory = KLibLoader::self()->factory( ptr->library().latin1() ); 169//US KLibFactory *factory = KLibLoader::self()->factory( ptr->library().latin1() );
165 PluginInfo* pi = mTypeMap[ type ]; 170 PluginInfo* pi = mTypeMap[ type ];
166 KLibFactory *factory = (KLibFactory *)KLibLoader::self()->factory( pi->library.latin1() ); 171 KLibFactory *factory = (KLibFactory *)KLibLoader::self()->factory( pi->library.latin1() );
167 if ( !factory ) { 172 if ( !factory ) {
168 qDebug("KRES::Factory::configWidget(): Factory creation failed for library %s", pi->library.latin1()); 173 qDebug("KRES::Factory::configWidget(): Factory creation failed for library %s", pi->library.latin1());
169 kdDebug() << "KRES::Factory::configWidget(): Factory creation failed" << endl; 174 kdDebug() << "KRES::Factory::configWidget(): Factory creation failed" << endl;
170 return 0; 175 return 0;
171 } 176 }
172 177
173 PluginFactoryBase *pluginFactory = static_cast<PluginFactoryBase *>( factory ); 178 PluginFactoryBase *pluginFactory = static_cast<PluginFactoryBase *>( factory );
174 179
175 if ( !pluginFactory ) { 180 if ( !pluginFactory ) {
176 qDebug("KRES::Factory::configWidget(): no plugin factory for library %s", pi->library.latin1()); 181 qDebug("KRES::Factory::configWidget(): no plugin factory for library %s", pi->library.latin1());
177 kdDebug() << "KRES::Factory::configWidget(): no plugin factory." << endl; 182 kdDebug() << "KRES::Factory::configWidget(): no plugin factory." << endl;
178 return 0; 183 return 0;
179 } 184 }
180 185
181 ConfigWidget *wdg = pluginFactory->configWidget( parent ); 186 ConfigWidget *wdg = pluginFactory->configWidget( parent );
182 if ( !wdg ) { 187 if ( !wdg ) {
183//US kdDebug() << "'" << ptr->library() << "' is not a " + mResourceFamily + " plugin." << endl; 188//US kdDebug() << "'" << ptr->library() << "' is not a " + mResourceFamily + " plugin." << endl;
184 qDebug("%s is not a %s plugin.", pi->library.latin1(), mResourceFamily.latin1()); 189 qDebug("%s is not a %s plugin.", pi->library.latin1(), mResourceFamily.latin1());
185 return 0; 190 return 0;
186 } 191 }
187 return wdg; 192 return wdg;
188 193
189} 194}
190 195
191QString Factory::typeName( const QString &type ) const 196QString Factory::typeName( const QString &type ) const
192{ 197{
193 if ( type.isEmpty() || !mTypeMap.contains( type ) ) 198 if ( type.isEmpty() || !mTypeMap.contains( type ) )
194 return QString(); 199 return QString();
195 200
196 201
197//US KService::Ptr ptr = mTypeMap[ type ]; 202//US KService::Ptr ptr = mTypeMap[ type ];
198//US return ptr->name(); 203//US return ptr->name();
199 PluginInfo* pi = mTypeMap[ type ]; 204 PluginInfo* pi = mTypeMap[ type ];
200 return pi->nameLabel; 205 return pi->nameLabel;
201 206
202} 207}
203 208
204QString Factory::typeDescription( const QString &type ) const 209QString Factory::typeDescription( const QString &type ) const
205{ 210{
206 if ( type.isEmpty() || !mTypeMap.contains( type ) ) 211 if ( type.isEmpty() || !mTypeMap.contains( type ) )
207 return QString(); 212 return QString();
208 213
209//US KService::Ptr ptr = mTypeMap[ type ]; 214//US KService::Ptr ptr = mTypeMap[ type ];
210//US return ptr->comment(); 215//US return ptr->comment();
211 PluginInfo* pi = mTypeMap[ type ]; 216 PluginInfo* pi = mTypeMap[ type ];
212 return pi->descriptionLabel; 217 return pi->descriptionLabel;
213} 218}
214 219
215Resource *Factory::resource( const QString& type, const KConfig *config ) 220Resource *Factory::resource( const QString& type, const KConfig *config )
216{ 221{
217 222
218 223
219 if ( type.isEmpty() || !mTypeMap.contains( type ) ) 224 if ( type.isEmpty() || !mTypeMap.contains( type ) )
220 return 0; 225 return 0;
221 226
227#ifdef STATIC_RESOURCES
228 qDebug("NEW STATIC RESOURCE %s", type.latin1());
229 Resource *resource = 0;
230 if ( type == "file" ) {
231 resource = (Resource *) new KABC::ResourceFile( config );
232 } else if ( type == "dir" ) {
233 resource = new KABC::ResourceDir( config );
234 } else if ( type == "qtopia" ) {
235 resource = new KABC::ResourceQtopia( config );
236 }
237 if ( !resource)
238 qDebug("Factory::resource:: resources are statically linked. resource type %s is not supported ",type.latin1() );
239 else
240 resource->setType( type );
241 return resource;
242#else
243
244
245
222/*US load the lib not dynamicly. !! 246/*US load the lib not dynamicly. !!
223 KService::Ptr ptr = mTypeMap[ type ]; 247 KService::Ptr ptr = mTypeMap[ type ];
224 KLibFactory *factory = KLibLoader::self()->factory( ptr->library().latin1() ); 248 KLibFactory *factory = KLibLoader::self()->factory( ptr->library().latin1() );
225 if ( !factory ) { 249 if ( !factory ) {
226 kdDebug() << "KRES::Factory::resource(): Factory creation failed" << endl; 250 kdDebug() << "KRES::Factory::resource(): Factory creation failed" << endl;
227 return 0; 251 return 0;
228 } 252 }
229*/ 253*/
230 PluginInfo* pi = mTypeMap[ type ]; 254 PluginInfo* pi = mTypeMap[ type ];
231 KLibFactory *factory = (KLibFactory *)KLibLoader::self()->factory( pi->library.latin1() ); 255 KLibFactory *factory = (KLibFactory *)KLibLoader::self()->factory( pi->library.latin1() );
232 if ( !factory ) { 256 if ( !factory ) {
233 qDebug("KRES::Factory::resource(): Factory creation failed for library %s", pi->library.latin1()); 257 qDebug("KRES::Factory::resource(): Factory creation failed for library %s", pi->library.latin1());
234 kdDebug() << "KRES::Factory::resource(): Factory creation failed" << endl; 258 kdDebug() << "KRES::Factory::resource(): Factory creation failed" << endl;
235 return 0; 259 return 0;
236 } 260 }
237 261
238 PluginFactoryBase *pluginFactory = static_cast<PluginFactoryBase *>( factory ); 262 PluginFactoryBase *pluginFactory = static_cast<PluginFactoryBase *>( factory );
239 263
240 if ( !pluginFactory ) { 264 if ( !pluginFactory ) {
241 qDebug("KRES::Factory::resource(): no plugin factory for library %s", pi->library.latin1()); 265 qDebug("KRES::Factory::resource(): no plugin factory for library %s", pi->library.latin1());
242 kdDebug() << "KRES::Factory::resource(): no plugin factory." << endl; 266 kdDebug() << "KRES::Factory::resource(): no plugin factory." << endl;
243 return 0; 267 return 0;
244 } 268 }
245 269
246 Resource *resource = pluginFactory->resource( config ); 270 Resource *resource = pluginFactory->resource( config );
247 if ( !resource ) { 271 if ( !resource ) {
248//US kdDebug() << "'" << ptr->library() << "' is not a " + mResourceFamily + " plugin." << endl; 272//US kdDebug() << "'" << ptr->library() << "' is not a " + mResourceFamily + " plugin." << endl;
249 qDebug("%s is not a %s plugin.", pi->library.latin1(), mResourceFamily.latin1()); 273 qDebug("%s is not a %s plugin.", pi->library.latin1(), mResourceFamily.latin1());
250 return 0; 274 return 0;
251 } 275 }
252 276
253 resource->setType( type ); 277 resource->setType( type );
254 278
255 return resource; 279 return resource;
280
281#endif
256} 282}
diff --git a/microkde/kresources/managerimpl.cpp b/microkde/kresources/managerimpl.cpp
index 566b8f4..a6d2007 100644
--- a/microkde/kresources/managerimpl.cpp
+++ b/microkde/kresources/managerimpl.cpp
@@ -1,374 +1,376 @@
1/* 1/*
2 This file is part of libkresources. 2 This file is part of libkresources.
3 3
4 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org> 4 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org> 5 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
6 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> 6 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version. 11 version 2 of the License, or (at your option) any later version.
12 12
13 This library is distributed in the hope that it will be useful, 13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details. 16 Library General Public License for more details.
17 17
18 You should have received a copy of the GNU Library General Public License 18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to 19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. 21 Boston, MA 02111-1307, USA.
22*/ 22*/
23 23
24/* 24/*
25Enhanced Version of the file for platform independent KDE tools. 25Enhanced Version of the file for platform independent KDE tools.
26Copyright (c) 2004 Ulf Schenk 26Copyright (c) 2004 Ulf Schenk
27 27
28$Id$ 28$Id$
29*/ 29*/
30 30
31#include <kglobal.h> 31#include <kglobal.h>
32 32
33#include <kapplication.h> 33#include <kapplication.h>
34#include <kdebug.h> 34#include <kdebug.h>
35#include <kconfig.h> 35#include <kconfig.h>
36#include <kstandarddirs.h> 36#include <kstandarddirs.h>
37#include <qfile.h> 37#include <qfile.h>
38 38
39#include "resource.h" 39#include "resource.h"
40#include "factory.h" 40#include "factory.h"
41#include "managerimpl.h" 41#include "managerimpl.h"
42 42
43
44
43using namespace KRES; 45using namespace KRES;
44 46
45ManagerImpl::ManagerImpl( const QString &family ) 47ManagerImpl::ManagerImpl( const QString &family )
46 : mFamily( family ), mConfig( 0 ), mStdConfig( 0 ), mStandard( 0 ), 48 : mFamily( family ), mConfig( 0 ), mStdConfig( 0 ), mStandard( 0 ),
47 mFactory( 0 ) 49 mFactory( 0 )
48 50
49{ 51{
50 kdDebug(5650) << "ManagerImpl::ManagerImpl()" << endl; 52 kdDebug(5650) << "ManagerImpl::ManagerImpl()" << endl;
51 53
52 54
53} 55}
54 56
55ManagerImpl::~ManagerImpl() 57ManagerImpl::~ManagerImpl()
56{ 58{
57 kdDebug(5650) << "ManagerImpl::~ManagerImpl()" << endl; 59 kdDebug(5650) << "ManagerImpl::~ManagerImpl()" << endl;
58 60
59 Resource::List::ConstIterator it; 61 Resource::List::ConstIterator it;
60 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 62 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
61 delete *it; 63 delete *it;
62 } 64 }
63 65
64 delete mStdConfig; 66 delete mStdConfig;
65} 67}
66 68
67void ManagerImpl::createStandardConfig() 69void ManagerImpl::createStandardConfig()
68{ 70{
69 if ( !mStdConfig ) { 71 if ( !mStdConfig ) {
70 QString file = locateLocal( "data", KGlobal::getAppName() 72 QString file = locateLocal( "data", KGlobal::getAppName()
71 + "/kresources/" + mFamily + "rc" ); 73 + "/kresources/" + mFamily + "rc" );
72 if ( mFamily == "tmpcontact" ) { 74 if ( mFamily == "tmpcontact" ) {
73 if (QFile::exists ( file ) ){ 75 if (QFile::exists ( file ) ){
74 QFile::remove ( file ); 76 QFile::remove ( file );
75 qDebug("removed tmp rc file: %s ", file.latin1()); 77 qDebug("removed tmp rc file: %s ", file.latin1());
76 } 78 }
77 } 79 }
78 mStdConfig = new KConfig( file ); 80 mStdConfig = new KConfig( file );
79 } 81 }
80 82
81 mConfig = mStdConfig; 83 mConfig = mStdConfig;
82} 84}
83 85
84void ManagerImpl::readConfig( KConfig *cfg ) 86void ManagerImpl::readConfig( KConfig *cfg )
85{ 87{
86 kdDebug(5650) << "ManagerImpl::readConfig()" << endl; 88 kdDebug(5650) << "ManagerImpl::readConfig()" << endl;
87 89
88 delete mFactory; 90 delete mFactory;
89 mFactory = Factory::self( mFamily ); 91 mFactory = Factory::self( mFamily );
90 92
91 if ( !cfg ) { 93 if ( !cfg ) {
92 createStandardConfig(); 94 createStandardConfig();
93 } else { 95 } else {
94 mConfig = cfg; 96 mConfig = cfg;
95 } 97 }
96 98
97 mStandard = 0; 99 mStandard = 0;
98 100
99 mConfig->setGroup( "General" ); 101 mConfig->setGroup( "General" );
100 102
101 QStringList keys = mConfig->readListEntry( "ResourceKeys" ); 103 QStringList keys = mConfig->readListEntry( "ResourceKeys" );
102 keys += mConfig->readListEntry( "PassiveResourceKeys" ); 104 keys += mConfig->readListEntry( "PassiveResourceKeys" );
103 105
104 QString standardKey = mConfig->readEntry( "Standard" ); 106 QString standardKey = mConfig->readEntry( "Standard" );
105 107
106 for ( QStringList::Iterator it = keys.begin(); it != keys.end(); ++it ) { 108 for ( QStringList::Iterator it = keys.begin(); it != keys.end(); ++it ) {
107 readResourceConfig( *it, false ); 109 readResourceConfig( *it, false );
108 } 110 }
109 111
110} 112}
111 113
112void ManagerImpl::writeConfig( KConfig *cfg ) 114void ManagerImpl::writeConfig( KConfig *cfg )
113{ 115{
114//USqDebug("ManagerImpl::writeConfig begin this= %ul cfg=%ul", this, cfg); 116//USqDebug("ManagerImpl::writeConfig begin this= %ul cfg=%ul", this, cfg);
115 117
116 118
117 kdDebug(5650) << "ManagerImpl::writeConfig()" << endl; 119 kdDebug(5650) << "ManagerImpl::writeConfig()" << endl;
118 120
119 if ( !cfg ) { 121 if ( !cfg ) {
120 createStandardConfig(); 122 createStandardConfig();
121 } else { 123 } else {
122 mConfig = cfg; 124 mConfig = cfg;
123 } 125 }
124 126
125 QStringList activeKeys; 127 QStringList activeKeys;
126 QStringList passiveKeys; 128 QStringList passiveKeys;
127 129
128 // First write all keys, collect active and passive keys on the way 130 // First write all keys, collect active and passive keys on the way
129 Resource::List::Iterator it; 131 Resource::List::Iterator it;
130 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 132 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
131 writeResourceConfig( *it, false ); 133 writeResourceConfig( *it, false );
132 134
133 QString key = (*it)->identifier(); 135 QString key = (*it)->identifier();
134 if( (*it)->isActive() ) 136 if( (*it)->isActive() )
135 activeKeys.append( key ); 137 activeKeys.append( key );
136 else 138 else
137 passiveKeys.append( key ); 139 passiveKeys.append( key );
138 } 140 }
139 141
140 // And then the general group 142 // And then the general group
141 143
142 kdDebug(5650) << "Saving general info" << endl; 144 kdDebug(5650) << "Saving general info" << endl;
143 mConfig->setGroup( "General" ); 145 mConfig->setGroup( "General" );
144 mConfig->writeEntry( "ResourceKeys", activeKeys ); 146 mConfig->writeEntry( "ResourceKeys", activeKeys );
145 mConfig->writeEntry( "PassiveResourceKeys", passiveKeys ); 147 mConfig->writeEntry( "PassiveResourceKeys", passiveKeys );
146 if ( mStandard ) 148 if ( mStandard )
147 mConfig->writeEntry( "Standard", mStandard->identifier() ); 149 mConfig->writeEntry( "Standard", mStandard->identifier() );
148 else 150 else
149 mConfig->writeEntry( "Standard", "" ); 151 mConfig->writeEntry( "Standard", "" );
150 152
151 mConfig->sync(); 153 mConfig->sync();
152 kdDebug(5650) << "ManagerImpl::save() finished" << endl; 154 kdDebug(5650) << "ManagerImpl::save() finished" << endl;
153 155
154//US qDebug("ManagerImpl::writeConfig end this= %ul cfg=%ul", this, cfg); 156//US qDebug("ManagerImpl::writeConfig end this= %ul cfg=%ul", this, cfg);
155 157
156} 158}
157 159
158void ManagerImpl::add( Resource *resource, bool useDCOP ) 160void ManagerImpl::add( Resource *resource, bool useDCOP )
159{ 161{
160 //qDebug("ManagerImpl::add begin this= %ul resource=%ul", this, resource); 162 //qDebug("ManagerImpl::add begin this= %ul resource=%ul", this, resource);
161 163
162 resource->setActive( true ); 164 resource->setActive( true );
163 165
164 if ( mResources.isEmpty() ) { 166 if ( mResources.isEmpty() ) {
165 mStandard = resource; 167 mStandard = resource;
166 } 168 }
167 169
168 mResources.append( resource ); 170 mResources.append( resource );
169 171
170 writeResourceConfig( resource, true ); 172 writeResourceConfig( resource, true );
171 173
172 //qDebug("ManagerImpl::add end this= %ul resource=%ul", this, resource); 174 //qDebug("ManagerImpl::add end this= %ul resource=%ul", this, resource);
173 175
174} 176}
175 177
176void ManagerImpl::remove( Resource *resource, bool useDCOP ) 178void ManagerImpl::remove( Resource *resource, bool useDCOP )
177{ 179{
178 if ( mStandard == resource ) mStandard = 0; 180 if ( mStandard == resource ) mStandard = 0;
179 removeResource( resource ); 181 removeResource( resource );
180 182
181 mResources.remove( resource ); 183 mResources.remove( resource );
182 184
183 delete resource; 185 delete resource;
184 186
185 kdDebug(5650) << "Finished ManagerImpl::remove()" << endl; 187 kdDebug(5650) << "Finished ManagerImpl::remove()" << endl;
186} 188}
187 189
188void ManagerImpl::setActive( Resource *resource, bool active ) 190void ManagerImpl::setActive( Resource *resource, bool active )
189{ 191{
190 if ( resource && resource->isActive() != active ) { 192 if ( resource && resource->isActive() != active ) {
191 resource->setActive( active ); 193 resource->setActive( active );
192 } 194 }
193} 195}
194 196
195Resource *ManagerImpl::standardResource() 197Resource *ManagerImpl::standardResource()
196{ 198{
197 return mStandard; 199 return mStandard;
198} 200}
199 201
200void ManagerImpl::setStandardResource( Resource *resource ) 202void ManagerImpl::setStandardResource( Resource *resource )
201{ 203{
202 mStandard = resource; 204 mStandard = resource;
203} 205}
204 206
205void ManagerImpl::resourceChanged( Resource *resource ) 207void ManagerImpl::resourceChanged( Resource *resource )
206{ 208{
207 writeResourceConfig( resource, true ); 209 writeResourceConfig( resource, true );
208 210
209 211
210// ManagerIface_stub allManagers( "*", "ManagerIface_" + mFamily.utf8() ); 212// ManagerIface_stub allManagers( "*", "ManagerIface_" + mFamily.utf8() );
211// allManagers.dcopResourceModified( resource->identifier() ); 213// allManagers.dcopResourceModified( resource->identifier() );
212} 214}
213 215
214// DCOP asynchronous functions 216// DCOP asynchronous functions
215//US since we work from inside the application, we call the methods directly. 217//US since we work from inside the application, we call the methods directly.
216 218
217QStringList ManagerImpl::resourceNames() 219QStringList ManagerImpl::resourceNames()
218{ 220{
219 QStringList result; 221 QStringList result;
220 222
221 Resource::List::ConstIterator it; 223 Resource::List::ConstIterator it;
222 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 224 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
223 result.append( (*it)->resourceName() ); 225 result.append( (*it)->resourceName() );
224 } 226 }
225 return result; 227 return result;
226} 228}
227 229
228Resource::List *ManagerImpl::resourceList() 230Resource::List *ManagerImpl::resourceList()
229{ 231{
230 return &mResources; 232 return &mResources;
231} 233}
232 234
233QPtrList<Resource> ManagerImpl::resources() 235QPtrList<Resource> ManagerImpl::resources()
234{ 236{
235 QPtrList<Resource> result; 237 QPtrList<Resource> result;
236 238
237 Resource::List::ConstIterator it; 239 Resource::List::ConstIterator it;
238 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 240 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
239 result.append( *it ); 241 result.append( *it );
240 } 242 }
241 return result; 243 return result;
242} 244}
243 245
244QPtrList<Resource> ManagerImpl::resources( bool active ) 246QPtrList<Resource> ManagerImpl::resources( bool active )
245{ 247{
246 QPtrList<Resource> result; 248 QPtrList<Resource> result;
247 249
248 Resource::List::ConstIterator it; 250 Resource::List::ConstIterator it;
249 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 251 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
250 if ( (*it)->isActive() == active ) { 252 if ( (*it)->isActive() == active ) {
251 result.append( *it ); 253 result.append( *it );
252 } 254 }
253 } 255 }
254 return result; 256 return result;
255} 257}
256 258
257void ManagerImpl::setListener( ManagerImplListener *listener ) 259void ManagerImpl::setListener( ManagerImplListener *listener )
258{ 260{
259 mListener = listener; 261 mListener = listener;
260} 262}
261 263
262Resource* ManagerImpl::readResourceConfig( const QString& identifier, 264Resource* ManagerImpl::readResourceConfig( const QString& identifier,
263 bool checkActive ) 265 bool checkActive )
264{ 266{
265 kdDebug() << "ManagerImpl::readResourceConfig() " << identifier << endl; 267 kdDebug() << "ManagerImpl::readResourceConfig() " << identifier << endl;
266 268
267// qDebug("ManagerImpl::readResourceConfig() %s", identifier.latin1()); 269// qDebug("ManagerImpl::readResourceConfig() %s", identifier.latin1());
268 270
269 mConfig->setGroup( "Resource_" + identifier ); 271 mConfig->setGroup( "Resource_" + identifier );
270#ifdef _WIN32_ 272#ifdef _WIN32_
271 // we use plugins on win32. the group is stored in a static variable 273 // we use plugins on win32. the group is stored in a static variable
272 // such that gourp info not avail on win32 plugins 274 // such that gourp info not avail on win32 plugins
273 // to fix that, it would be a looooot of work 275 // to fix that, it would be a looooot of work
274 mConfig->setTempGroup( "Resource_" + identifier ); 276 mConfig->setTempGroup( "Resource_" + identifier );
275#endif 277#endif
276 QString type = mConfig->readEntry( "ResourceType" ); 278 QString type = mConfig->readEntry( "ResourceType" );
277 QString name = mConfig->readEntry( "ResourceName" ); 279 QString name = mConfig->readEntry( "ResourceName" );
278 Resource *resource = mFactory->resource( type, mConfig ); 280 Resource *resource = mFactory->resource( type, mConfig );
279 if ( !resource ) { 281 if ( !resource ) {
280 qDebug("Failed to create resource with id %s ",identifier.latin1() ); 282 qDebug("Failed to create resource with id %s ",identifier.latin1() );
281 return 0; 283 return 0;
282 } 284 }
283 285
284 if ( resource->identifier().isEmpty() ) 286 if ( resource->identifier().isEmpty() )
285 resource->setIdentifier( identifier ); 287 resource->setIdentifier( identifier );
286 288
287 mConfig->setGroup( "General" ); 289 mConfig->setGroup( "General" );
288 290
289 QString standardKey = mConfig->readEntry( "Standard" ); 291 QString standardKey = mConfig->readEntry( "Standard" );
290 if ( standardKey == identifier ) { 292 if ( standardKey == identifier ) {
291 mStandard = resource; 293 mStandard = resource;
292 } 294 }
293 295
294 if ( checkActive ) { 296 if ( checkActive ) {
295 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" ); 297 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
296 resource->setActive( activeKeys.contains( identifier ) ); 298 resource->setActive( activeKeys.contains( identifier ) );
297 } 299 }
298 mResources.append( resource ); 300 mResources.append( resource );
299 301
300 return resource; 302 return resource;
301} 303}
302 304
303void ManagerImpl::writeResourceConfig( Resource *resource, 305void ManagerImpl::writeResourceConfig( Resource *resource,
304 bool checkActive ) 306 bool checkActive )
305{ 307{
306 QString key = resource->identifier(); 308 QString key = resource->identifier();
307 309
308 kdDebug(5650) << "Saving resource " << key << endl; 310 kdDebug(5650) << "Saving resource " << key << endl;
309 311
310 if ( !mConfig ) createStandardConfig(); 312 if ( !mConfig ) createStandardConfig();
311 313
312 mConfig->setGroup( "Resource_" + key ); 314 mConfig->setGroup( "Resource_" + key );
313 resource->writeConfig( mConfig ); 315 resource->writeConfig( mConfig );
314 316
315 mConfig->setGroup( "General" ); 317 mConfig->setGroup( "General" );
316 QString standardKey = mConfig->readEntry( "Standard" ); 318 QString standardKey = mConfig->readEntry( "Standard" );
317 319
318 if ( resource == mStandard && standardKey != key ) 320 if ( resource == mStandard && standardKey != key )
319 mConfig->writeEntry( "Standard", resource->identifier() ); 321 mConfig->writeEntry( "Standard", resource->identifier() );
320 else if ( resource != mStandard && standardKey == key ) 322 else if ( resource != mStandard && standardKey == key )
321 mConfig->writeEntry( "Standard", "" ); 323 mConfig->writeEntry( "Standard", "" );
322 324
323 if ( checkActive ) { 325 if ( checkActive ) {
324 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" ); 326 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
325 if ( resource->isActive() && !activeKeys.contains( key ) ) { 327 if ( resource->isActive() && !activeKeys.contains( key ) ) {
326 activeKeys.append( resource->identifier() ); 328 activeKeys.append( resource->identifier() );
327 mConfig->writeEntry( "ResourceKeys", activeKeys ); 329 mConfig->writeEntry( "ResourceKeys", activeKeys );
328 } else if ( !resource->isActive() && activeKeys.contains( key ) ) { 330 } else if ( !resource->isActive() && activeKeys.contains( key ) ) {
329 activeKeys.remove( key ); 331 activeKeys.remove( key );
330 mConfig->writeEntry( "ResourceKeys", activeKeys ); 332 mConfig->writeEntry( "ResourceKeys", activeKeys );
331 } 333 }
332 } 334 }
333 335
334 mConfig->sync(); 336 mConfig->sync();
335} 337}
336 338
337void ManagerImpl::removeResource( Resource *resource ) 339void ManagerImpl::removeResource( Resource *resource )
338{ 340{
339 QString key = resource->identifier(); 341 QString key = resource->identifier();
340 342
341 if ( !mConfig ) createStandardConfig(); 343 if ( !mConfig ) createStandardConfig();
342 344
343 mConfig->setGroup( "General" ); 345 mConfig->setGroup( "General" );
344 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" ); 346 QStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
345 if ( activeKeys.contains( key ) ) { 347 if ( activeKeys.contains( key ) ) {
346 activeKeys.remove( key ); 348 activeKeys.remove( key );
347 mConfig->writeEntry( "ResourceKeys", activeKeys ); 349 mConfig->writeEntry( "ResourceKeys", activeKeys );
348 } else { 350 } else {
349 QStringList passiveKeys = mConfig->readListEntry( "PassiveResourceKeys" ); 351 QStringList passiveKeys = mConfig->readListEntry( "PassiveResourceKeys" );
350 passiveKeys.remove( key ); 352 passiveKeys.remove( key );
351 mConfig->writeEntry( "PassiveResourceKeys", passiveKeys ); 353 mConfig->writeEntry( "PassiveResourceKeys", passiveKeys );
352 } 354 }
353 355
354 QString standardKey = mConfig->readEntry( "Standard" ); 356 QString standardKey = mConfig->readEntry( "Standard" );
355 if ( standardKey == key ) { 357 if ( standardKey == key ) {
356 mConfig->writeEntry( "Standard", "" ); 358 mConfig->writeEntry( "Standard", "" );
357 } 359 }
358 360
359 mConfig->deleteGroup( "Resource_" + resource->identifier() ); 361 mConfig->deleteGroup( "Resource_" + resource->identifier() );
360 362
361 mConfig->sync(); 363 mConfig->sync();
362} 364}
363 365
364Resource* ManagerImpl::getResource( const QString& identifier ) 366Resource* ManagerImpl::getResource( const QString& identifier )
365{ 367{
366 Resource::List::ConstIterator it; 368 Resource::List::ConstIterator it;
367 for ( it = mResources.begin(); it != mResources.end(); ++it ) { 369 for ( it = mResources.begin(); it != mResources.end(); ++it ) {
368 if ( (*it)->identifier() == identifier ) 370 if ( (*it)->identifier() == identifier )
369 return *it; 371 return *it;
370 } 372 }
371 return 0; 373 return 0;
372} 374}
373 375
374 376
diff --git a/microkde/microkde.pro b/microkde/microkde.pro
index 9016260..783ec34 100644
--- a/microkde/microkde.pro
+++ b/microkde/microkde.pro
@@ -1,174 +1,180 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2 CONFIG += qt warn_on 2 CONFIG += qt warn_on
3include( ../variables.pri )
3#INCLUDEPATH += $(QTDIR)/include . 4#INCLUDEPATH += $(QTDIR)/include .
4#DEPENDPATH += $(QTDIR)/include 5#DEPENDPATH += $(QTDIR)/include
5INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio 6INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio
6#LIBS += -lqtcompat 7#LIBS += -lqtcompat
7 8
8 TARGET = microkde 9 TARGET = microkde
9DESTDIR= ../bin 10DESTDIR= ../bin
10DEFINES += DESKTOP_VERSION KDE_QT_ONLY 11DEFINES += DESKTOP_VERSION KDE_QT_ONLY
11unix : { 12unix : {
13staticlib: {
14INCLUDEPATH += ../kabc/plugins
15DEFINES += STATIC_RESOURCES
16}
17
18
12OBJECTS_DIR = obj/unix 19OBJECTS_DIR = obj/unix
13MOC_DIR = moc/unix 20MOC_DIR = moc/unix
14} 21}
15win32: { 22win32: {
16DEFINES += _WIN32_ 23DEFINES += _WIN32_
17OBJECTS_DIR = obj/win 24OBJECTS_DIR = obj/win
18MOC_DIR = moc/win 25MOC_DIR = moc/win
19} 26}
20include( ../variables.pri )
21 27
22 28
23 29
24HEADERS = \ 30HEADERS = \
25qlayoutengine_p.h \ 31qlayoutengine_p.h \
26KDGanttMinimizeSplitter.h \ 32KDGanttMinimizeSplitter.h \
27 kapplication.h \ 33 kapplication.h \
28 kaudioplayer.h \ 34 kaudioplayer.h \
29 kcalendarsystem.h \ 35 kcalendarsystem.h \
30 kcalendarsystemgregorian.h \ 36 kcalendarsystemgregorian.h \
31 kcolorbutton.h \ 37 kcolorbutton.h \
32 kcolordialog.h \ 38 kcolordialog.h \
33 kcombobox.h \ 39 kcombobox.h \
34 kconfig.h \ 40 kconfig.h \
35 kdatetbl.h \ 41 kdatetbl.h \
36 kdebug.h \ 42 kdebug.h \
37 kdialog.h \ 43 kdialog.h \
38 kdialogbase.h \ 44 kdialogbase.h \
39 keditlistbox.h \ 45 keditlistbox.h \
40 kemailsettings.h \ 46 kemailsettings.h \
41 kfiledialog.h \ 47 kfiledialog.h \
42 kfontdialog.h \ 48 kfontdialog.h \
43 kglobal.h \ 49 kglobal.h \
44 kglobalsettings.h \ 50 kglobalsettings.h \
45 kiconloader.h \ 51 kiconloader.h \
46 klineedit.h \ 52 klineedit.h \
47 klineeditdlg.h \ 53 klineeditdlg.h \
48 kmessagebox.h \ 54 kmessagebox.h \
49 knotifyclient.h \ 55 knotifyclient.h \
50 kprinter.h \ 56 kprinter.h \
51 kprocess.h \ 57 kprocess.h \
52 krestrictedline.h \ 58 krestrictedline.h \
53 krun.h \ 59 krun.h \
54 ksimpleconfig.h \ 60 ksimpleconfig.h \
55 kstaticdeleter.h \ 61 kstaticdeleter.h \
56 ksystemtray.h \ 62 ksystemtray.h \
57 ktempfile.h \ 63 ktempfile.h \
58 ktextedit.h \ 64 ktextedit.h \
59 kunload.h \ 65 kunload.h \
60 kurl.h \ 66 kurl.h \
61 kdeui/kguiitem.h \ 67 kdeui/kguiitem.h \
62 kdeui/kcmodule.h \ 68 kdeui/kcmodule.h \
63 kdeui/kbuttonbox.h \ 69 kdeui/kbuttonbox.h \
64 kdeui/klistbox.h \ 70 kdeui/klistbox.h \
65 kdeui/klistview.h \ 71 kdeui/klistview.h \
66 kdeui/kjanuswidget.h \ 72 kdeui/kjanuswidget.h \
67 kdeui/kseparator.h \ 73 kdeui/kseparator.h \
68 kdeui/knuminput.h \ 74 kdeui/knuminput.h \
69 kdeui/knumvalidator.h \ 75 kdeui/knumvalidator.h \
70 kdeui/ksqueezedtextlabel.h \ 76 kdeui/ksqueezedtextlabel.h \
71 kio/job.h \ 77 kio/job.h \
72 kio/kio/kdirwatch.h \ 78 kio/kio/kdirwatch.h \
73 kio/kio/kdirwatch_p.h \ 79 kio/kio/kdirwatch_p.h \
74 kio/kfile/kurlrequester.h \ 80 kio/kfile/kurlrequester.h \
75 kresources/resource.h \ 81 kresources/resource.h \
76 kresources/factory.h \ 82 kresources/factory.h \
77 kresources/managerimpl.h \ 83 kresources/managerimpl.h \
78 kresources/manager.h \ 84 kresources/manager.h \
79 kresources/selectdialog.h \ 85 kresources/selectdialog.h \
80 kresources/configpage.h \ 86 kresources/configpage.h \
81 kresources/configwidget.h \ 87 kresources/configwidget.h \
82 kresources/configdialog.h \ 88 kresources/configdialog.h \
83 kresources/kcmkresources.h \ 89 kresources/kcmkresources.h \
84 kdecore/kmdcodec.h \ 90 kdecore/kmdcodec.h \
85 kdecore/kconfigbase.h \ 91 kdecore/kconfigbase.h \
86 kdecore/klocale.h \ 92 kdecore/klocale.h \
87 kdecore/kcatalogue.h \ 93 kdecore/kcatalogue.h \
88 kdecore/ksharedptr.h \ 94 kdecore/ksharedptr.h \
89 kdecore/kshell.h \ 95 kdecore/kshell.h \
90 kdecore/kstandarddirs.h \ 96 kdecore/kstandarddirs.h \
91 kdecore/kstringhandler.h \ 97 kdecore/kstringhandler.h \
92 kdecore/kshortcut.h \ 98 kdecore/kshortcut.h \
93 kutils/kcmultidialog.h \ 99 kutils/kcmultidialog.h \
94 kdeui/kxmlguiclient.h \ 100 kdeui/kxmlguiclient.h \
95 kdeui/kstdaction.h \ 101 kdeui/kstdaction.h \
96 kdeui/kmainwindow.h \ 102 kdeui/kmainwindow.h \
97 kdeui/ktoolbar.h \ 103 kdeui/ktoolbar.h \
98 kdeui/ktoolbarbutton.h \ 104 kdeui/ktoolbarbutton.h \
99 kdeui/ktoolbarhandler.h \ 105 kdeui/ktoolbarhandler.h \
100 kdeui/kaction.h \ 106 kdeui/kaction.h \
101 kdeui/kactionclasses.h \ 107 kdeui/kactionclasses.h \
102 kdeui/kactioncollection.h \ 108 kdeui/kactioncollection.h \
103 kdecore/kprefs.h \ 109 kdecore/kprefs.h \
104 kdecore/klibloader.h \ 110 kdecore/klibloader.h \
105 kidmanager.h 111 kidmanager.h
106 112
107 113
108# kdecore/klibloader.h \ 114# kdecore/klibloader.h \
109 115
110 116
111SOURCES = \ 117SOURCES = \
112KDGanttMinimizeSplitter.cpp \ 118KDGanttMinimizeSplitter.cpp \
113 kapplication.cpp \ 119 kapplication.cpp \
114 kcalendarsystem.cpp \ 120 kcalendarsystem.cpp \
115 kcalendarsystemgregorian.cpp \ 121 kcalendarsystemgregorian.cpp \
116 kcolorbutton.cpp \ 122 kcolorbutton.cpp \
117 kcolordialog.cpp \ 123 kcolordialog.cpp \
118 kconfig.cpp \ 124 kconfig.cpp \
119 kdatetbl.cpp \ 125 kdatetbl.cpp \
120 kdialog.cpp \ 126 kdialog.cpp \
121 kdialogbase.cpp \ 127 kdialogbase.cpp \
122 keditlistbox.cpp \ 128 keditlistbox.cpp \
123 kemailsettings.cpp \ 129 kemailsettings.cpp \
124 kfontdialog.cpp \ 130 kfontdialog.cpp \
125 kfiledialog.cpp \ 131 kfiledialog.cpp \
126 kglobal.cpp \ 132 kglobal.cpp \
127 kglobalsettings.cpp \ 133 kglobalsettings.cpp \
128 kiconloader.cpp \ 134 kiconloader.cpp \
129 kmessagebox.cpp \ 135 kmessagebox.cpp \
130 ktextedit.cpp \ 136 ktextedit.cpp \
131 kprocess.cpp \ 137 kprocess.cpp \
132 krun.cpp \ 138 krun.cpp \
133 ksystemtray.cpp \ 139 ksystemtray.cpp \
134 ktempfile.cpp \ 140 ktempfile.cpp \
135 kurl.cpp \ 141 kurl.cpp \
136 kdecore/kcatalogue.cpp \ 142 kdecore/kcatalogue.cpp \
137 kdecore/klocale.cpp \ 143 kdecore/klocale.cpp \
138 kdecore/kmdcodec.cpp \ 144 kdecore/kmdcodec.cpp \
139 kdecore/kshell.cpp \ 145 kdecore/kshell.cpp \
140 kdecore/kstandarddirs.cpp \ 146 kdecore/kstandarddirs.cpp \
141 kdecore/kstringhandler.cpp \ 147 kdecore/kstringhandler.cpp \
142 kdeui/kbuttonbox.cpp \ 148 kdeui/kbuttonbox.cpp \
143 kdeui/kcmodule.cpp \ 149 kdeui/kcmodule.cpp \
144 kdeui/kguiitem.cpp \ 150 kdeui/kguiitem.cpp \
145 kdeui/kjanuswidget.cpp \ 151 kdeui/kjanuswidget.cpp \
146 kdeui/klistbox.cpp \ 152 kdeui/klistbox.cpp \
147 kdeui/klistview.cpp \ 153 kdeui/klistview.cpp \
148 kdeui/knuminput.cpp \ 154 kdeui/knuminput.cpp \
149 kdeui/knumvalidator.cpp \ 155 kdeui/knumvalidator.cpp \
150 kdeui/kseparator.cpp \ 156 kdeui/kseparator.cpp \
151 kdeui/ksqueezedtextlabel.cpp \ 157 kdeui/ksqueezedtextlabel.cpp \
152 kio/kio/kdirwatch.cpp \ 158 kio/kio/kdirwatch.cpp \
153 kio/kfile/kurlrequester.cpp \ 159 kio/kfile/kurlrequester.cpp \
154 kresources/configpage.cpp \ 160 kresources/configpage.cpp \
155 kresources/configdialog.cpp \ 161 kresources/configdialog.cpp \
156 kresources/configwidget.cpp \ 162 kresources/configwidget.cpp \
157 kresources/factory.cpp \ 163 kresources/factory.cpp \
158 kresources/kcmkresources.cpp \ 164 kresources/kcmkresources.cpp \
159 kresources/managerimpl.cpp \ 165 kresources/managerimpl.cpp \
160 kresources/resource.cpp \ 166 kresources/resource.cpp \
161 kresources/selectdialog.cpp \ 167 kresources/selectdialog.cpp \
162 kutils/kcmultidialog.cpp \ 168 kutils/kcmultidialog.cpp \
163 kdeui/kaction.cpp \ 169 kdeui/kaction.cpp \
164 kdeui/kactionclasses.cpp \ 170 kdeui/kactionclasses.cpp \
165 kdeui/kactioncollection.cpp \ 171 kdeui/kactioncollection.cpp \
166 kdeui/kmainwindow.cpp \ 172 kdeui/kmainwindow.cpp \
167 kdeui/ktoolbar.cpp \ 173 kdeui/ktoolbar.cpp \
168 kdeui/ktoolbarbutton.cpp \ 174 kdeui/ktoolbarbutton.cpp \
169 kdeui/ktoolbarhandler.cpp \ 175 kdeui/ktoolbarhandler.cpp \
170 kdeui/kstdaction.cpp \ 176 kdeui/kstdaction.cpp \
171 kdeui/kxmlguiclient.cpp \ 177 kdeui/kxmlguiclient.cpp \
172 kdecore/kprefs.cpp \ 178 kdecore/kprefs.cpp \
173 kdecore/klibloader.cpp \ 179 kdecore/klibloader.cpp \
174 kidmanager.cpp 180 kidmanager.cpp