author | zautrix <zautrix> | 2005-04-03 21:03:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-03 21:03:06 (UTC) |
commit | f3707f1dcc3d42d43c9e6b649a9a68b2e706051e (patch) (unidiff) | |
tree | cad8019b110d59bd76a2901494259f2971c160b7 | |
parent | 2d83daf3568bb829db2530baa917db5a4cbf0768 (diff) | |
download | kdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.zip kdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.tar.gz kdepimpi-f3707f1dcc3d42d43c9e6b649a9a68b2e706051e.tar.bz2 |
static fix
-rw-r--r-- | Makefile | 566 | ||||
-rw-r--r-- | kabc/plugins/dir/dir.pro | 2 | ||||
-rw-r--r-- | kabc/plugins/file/file.pro | 2 | ||||
-rw-r--r-- | kabc/plugins/qtopia/qtopia.pro | 2 | ||||
-rw-r--r-- | kaddressbook/kaddressbook.pro | 11 | ||||
-rw-r--r-- | korganizer/korganizer.pro | 14 | ||||
-rw-r--r-- | microkde/kresources/factory.cpp | 26 | ||||
-rw-r--r-- | microkde/kresources/managerimpl.cpp | 2 | ||||
-rw-r--r-- | microkde/microkde.pro | 8 |
9 files changed, 246 insertions, 387 deletions
@@ -1,385 +1,183 @@ | |||
1 | export KDEPIMDIR = $(shell pwd) | 1 | ############################################################################# |
2 | 2 | # Makefile for building: kdepim-desktop | |
3 | export 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 | |
5 | ifeq ($(PLATFORM) , zaurus) | 5 | # Template: subdirs |
6 | BUILD_NO_LDAP_PLUGIN=1 | 6 | # Command: $(QMAKE) -o Makefile kdepim-desktop.pro |
7 | endif | 7 | ############################################################################# |
8 | 8 | ||
9 | ifneq ($(PLATFORM) , zaurus) | 9 | MAKEFILE =Makefile |
10 | BUILD_NO_SHARP_PLUGIN=1 | 10 | QMAKE =qmake |
11 | endif | 11 | DEL_FILE = rm -f |
12 | 12 | CHK_DIR_EXISTS= test -d | |
13 | #opie plugin is deprecated. The qtopia plugin handles the task from now on. | 13 | MKDIR = mkdir -p |
14 | BUILD_NO_OPIE_PLUGIN=1 | 14 | INSTALL_FILE= |
15 | 15 | INSTALL_DIR = | |
16 | SUBDIRS_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 | 30 | first: all | |
31 | SUBDIRS_QTOPIA_PLUGIN = \ | 31 | |
32 | kabc/plugins/qtopia | 32 | all: Makefile $(SUBTARGETS) |
33 | 33 | ||
34 | SUBDIRS_OPIE_PLUGIN = \ | 34 | libical/$(MAKEFILE): |
35 | kabc/plugins/opie | 35 | @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" |
36 | 36 | cd libical && $(QMAKE) libical.pro -o $(MAKEFILE) | |
37 | SUBDIRS_SHARP_PLUGIN = \ | 37 | sub-libical: libical/$(MAKEFILE) FORCE |
38 | kabc/plugins/sharpdtm | 38 | cd libical && $(MAKE) -f $(MAKEFILE) |
39 | 39 | ||
40 | SUBDIRS_LDAP_PLUGIN = \ | 40 | libkcal/$(MAKEFILE): |
41 | kabc/plugins/ldap | 41 | @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" |
42 | 42 | cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE) | |
43 | SUBDIRS_MICROMAIL = \ | 43 | sub-libkcal: libkcal/$(MAKEFILE) FORCE |
44 | libetpan \ | 44 | cd libkcal && $(MAKE) -f $(MAKEFILE) |
45 | kmicromail/libmailwrapper \ | 45 | |
46 | kmicromail | 46 | kabc/$(MAKEFILE): |
47 | 47 | @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" | |
48 | SUBDIRS_GAMMU = \ | 48 | cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE) |
49 | gammu/emb/common \ | 49 | sub-kabc: kabc/$(MAKEFILE) FORCE |
50 | gammu/emb/gammu | 50 | cd kabc && $(MAKE) -f $(MAKEFILE) |
51 | 51 | ||
52 | SUBDIRS_PWMANAGER = \ | 52 | libkdepim/$(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 \ | 55 | sub-libkdepim: libkdepim/$(MAKEFILE) FORCE |
56 | pwmanager/libcrypt/zlib \ | 56 | cd libkdepim && $(MAKE) -f $(MAKEFILE) |
57 | pwmanager/pwmanager | 57 | |
58 | 58 | microkde/$(MAKEFILE): | |
59 | SUBDIRS = \ | 59 | @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" |
60 | $(SUBDIRS_MICROKDE) \ | 60 | cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE) |
61 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 61 | sub-microkde: microkde/$(MAKEFILE) FORCE |
62 | $(SUBDIRS_OPIE_PLUGIN) \ | 62 | cd microkde && $(MAKE) -f $(MAKEFILE) |
63 | $(SUBDIRS_SHARP_PLUGIN) \ | 63 | |
64 | $(SUBDIRS_LDAP_PLUGIN) \ | 64 | korganizer/$(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) | 67 | sub-korganizer: korganizer/$(MAKEFILE) FORCE |
68 | 68 | cd korganizer && $(MAKE) -f $(MAKEFILE) | |
69 | 69 | ||
70 | all: build_microkde \ | 70 | kaddressbook/$(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 \ | 73 | sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE |
74 | build_ldap_plugin \ | 74 | cd kaddressbook && $(MAKE) -f $(MAKEFILE) |
75 | build_micromail \ | 75 | |
76 | build_gammu \ | 76 | kabc/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 | 79 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE | |
80 | build_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; \ | 82 | kabc/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) | |
85 | build_qtopia_plugin: build_microkde | 85 | sub-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 | 88 | kabc/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 | 91 | sub-kabc-plugins-qtopia: kabc/plugins/qtopia/$(MAKEFILE) FORCE |
92 | endif | 92 | cd kabc/plugins/qtopia && $(MAKE) -f $(MAKEFILE) |
93 | 93 | ||
94 | build_opie_plugin: build_microkde | 94 | gammu/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 | 97 | sub-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 | 100 | gammu/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) | |
103 | build_sharp_plugin: build_microkde | 103 | sub-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 | 106 | Makefile: 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; \ | 108 | qmake: qmake_all |
109 | done | 109 | @$(QMAKE) -o Makefile kdepim-desktop.pro |
110 | endif | 110 | |
111 | 111 | all: $(SUBTARGETS) | |
112 | build_ldap_plugin: build_microkde | 112 | qmake_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 | |
122 | build_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 | 125 | clean 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 | |
131 | build_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 | 138 | uninstall_subdirs: qmake_all FORCE |
139 | 139 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | |
140 | build_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 | |
150 | variable_info: | 150 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
151 | @echo -------------------------------------- | 151 | install_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 | 164 | distclean: 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 | |
171 | variable_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. | 178 | install: install_subdirs |
179 | $(error PLATFORM is not defined) | 179 | |
180 | endif | 180 | uninstall: 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) | 182 | FORCE: |
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 | |||
210 | objects: | ||
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 | |||
218 | clean: | ||
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 | |||
225 | pac: | ||
226 | rm -f $(QPEDIR)/lib/libmicro* | ||
227 | rm -f $(QPEDIR)/plugins/applets/libkopi* | ||
228 | make | ||
229 | make install | ||
230 | make dist | ||
231 | install: | ||
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 | |||
242 | dist: | ||
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 | |||
273 | tmake: 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 | |||
302 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | ||
303 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) | ||
304 | |||
305 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | ||
306 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) | ||
307 | |||
308 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | ||
309 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) | ||
310 | |||
311 | |||
312 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | ||
313 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) | ||
314 | |||
315 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | ||
316 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) | ||
317 | |||
318 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | ||
319 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) | ||
320 | |||
321 | libical/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 | |||
324 | libical/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 | |||
327 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | ||
328 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM) | ||
329 | |||
330 | kabc/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 | |||
333 | kabc/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 | |||
336 | kabc/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 | |||
339 | kabc/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 | |||
342 | kabc/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 | |||
345 | kabc/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 | |||
348 | kabc/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 | |||
351 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | ||
352 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM) | ||
353 | |||
354 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | ||
355 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM) | ||
356 | |||
357 | libetpan/Makefile$(PLATFORM): libetpan/libetpanE.pro | ||
358 | cd libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM) | ||
359 | |||
360 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | ||
361 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) | ||
362 | |||
363 | gammu/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 | |||
366 | gammu/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 | |||
369 | pwmanager/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 | |||
373 | pwmanager/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 | |||
376 | pwmanager/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 | |||
379 | pwmanager/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 | |||
382 | pwmanager/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 |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | include( ../../../variables.pri ) | ||
6 | |||
5 | TARGET = microkabc_dir | 7 | TARGET = microkabc_dir |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat | 8 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat |
7 | DESTDIR = ../../../bin | 9 | DESTDIR = ../../../bin |
8 | #LIBS += -lmicrokde -lmicrokabc | 10 | #LIBS += -lmicrokde -lmicrokabc |
9 | #LIBS += -L$(QPEDIR)/lib | 11 | #LIBS += -L$(QPEDIR)/lib |
10 | 12 | ||
11 | INTERFACES = \ | 13 | INTERFACES = \ |
12 | 14 | ||
13 | HEADERS = \ | 15 | HEADERS = \ |
14 | resourcedir.h \ | 16 | resourcedir.h \ |
15 | resourcedirconfig.h | 17 | resourcedirconfig.h |
16 | 18 | ||
17 | SOURCES = \ | 19 | SOURCES = \ |
18 | resourcedir.cpp \ | 20 | resourcedir.cpp \ |
19 | resourcedirconfig.cpp | 21 | resourcedirconfig.cpp |
20 | 22 | ||
21 | unix : { | 23 | unix : { |
22 | OBJECTS_DIR = obj/unix | 24 | OBJECTS_DIR = obj/unix |
23 | MOC_DIR = moc/unix | 25 | MOC_DIR = moc/unix |
24 | } | 26 | } |
25 | win32: { | 27 | win32: { |
26 | CONFIG += dll | 28 | CONFIG += dll |
27 | DEFINES += _WIN32_ | 29 | DEFINES += _WIN32_ |
28 | OBJECTS_DIR = obj/win | 30 | OBJECTS_DIR = obj/win |
29 | MOC_DIR = moc/win | 31 | MOC_DIR = moc/win |
30 | LIBS += ../../../bin/microkdepim.lib | 32 | LIBS += ../../../bin/microkdepim.lib |
31 | LIBS += ../../../bin/microkcal.lib | 33 | LIBS += ../../../bin/microkcal.lib |
32 | LIBS += ../../../bin/microkde.lib | 34 | LIBS += ../../../bin/microkde.lib |
33 | LIBS += ../../../bin/microkabc.lib | 35 | LIBS += ../../../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 |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | #release debug | 3 | #release debug |
4 | 4 | ||
5 | include( ../../../variables.pri ) | ||
6 | |||
5 | TARGET = microkabc_file | 7 | TARGET = microkabc_file |
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat | 8 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources ../../../qtcompat |
7 | 9 | ||
8 | DESTDIR = ../../../bin | 10 | DESTDIR = ../../../bin |
9 | #LIBS += -lmicrokde -lmicrokabc | 11 | #LIBS += -lmicrokde -lmicrokabc |
10 | #LIBS += -L$(QPEDIR)/lib | 12 | #LIBS += -L$(QPEDIR)/lib |
11 | 13 | ||
12 | INTERFACES = \ | 14 | INTERFACES = \ |
13 | 15 | ||
14 | HEADERS = \ | 16 | HEADERS = \ |
15 | resourcefile.h \ | 17 | resourcefile.h \ |
16 | resourcefileconfig.h | 18 | resourcefileconfig.h |
17 | 19 | ||
18 | SOURCES = \ | 20 | SOURCES = \ |
19 | resourcefile.cpp \ | 21 | resourcefile.cpp \ |
20 | resourcefileconfig.cpp | 22 | resourcefileconfig.cpp |
21 | 23 | ||
22 | unix : { | 24 | unix : { |
23 | OBJECTS_DIR = obj/unix | 25 | OBJECTS_DIR = obj/unix |
24 | MOC_DIR = moc/unix | 26 | MOC_DIR = moc/unix |
25 | } | 27 | } |
26 | win32: { | 28 | win32: { |
27 | CONFIG += dll | 29 | CONFIG += dll |
28 | DEFINES += _WIN32_ | 30 | DEFINES += _WIN32_ |
29 | OBJECTS_DIR = obj/win | 31 | OBJECTS_DIR = obj/win |
30 | MOC_DIR = moc/win | 32 | MOC_DIR = moc/win |
31 | LIBS += ../../../bin/microkdepim.lib | 33 | LIBS += ../../../bin/microkdepim.lib |
32 | LIBS += ../../../bin/microkcal.lib | 34 | LIBS += ../../../bin/microkcal.lib |
33 | LIBS += ../../../bin/microkde.lib | 35 | LIBS += ../../../bin/microkde.lib |
34 | LIBS += ../../../bin/microkabc.lib | 36 | LIBS += ../../../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 |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | 3 | ||
4 | include( ../../../variables.pri ) | ||
5 | |||
4 | TARGET = microkabc_qtopia | 6 | TARGET = microkabc_qtopia |
5 | 7 | ||
6 | INCLUDEPATH += ../.. ../../.. ../../../kabc ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources | 8 | INCLUDEPATH += ../.. ../../.. ../../../kabc ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../microkde/kresources |
7 | 9 | ||
8 | DESTDIR = ../../../bin | 10 | DESTDIR = ../../../bin |
9 | #LIBS += -lmicrokde | 11 | #LIBS += -lmicrokde |
10 | #LIBS += -lkamicrokabc | 12 | #LIBS += -lkamicrokabc |
11 | 13 | ||
12 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION | 14 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION |
13 | 15 | ||
14 | INTERFACES = \ | 16 | INTERFACES = \ |
15 | 17 | ||
16 | HEADERS = \ | 18 | HEADERS = \ |
17 | resourceqtopia.h \ | 19 | resourceqtopia.h \ |
18 | resourceqtopiaconfig.h \ | 20 | resourceqtopiaconfig.h \ |
19 | qtopiaconverter.h | 21 | qtopiaconverter.h |
20 | 22 | ||
21 | SOURCES = \ | 23 | SOURCES = \ |
22 | resourceqtopia.cpp \ | 24 | resourceqtopia.cpp \ |
23 | resourceqtopiaconfig.cpp \ | 25 | resourceqtopiaconfig.cpp \ |
24 | qtopiaconverter.cpp | 26 | qtopiaconverter.cpp |
25 | 27 | ||
26 | 28 | ||
27 | 29 | ||
28 | unix : { | 30 | unix : { |
29 | OBJECTS_DIR = obj/unix | 31 | OBJECTS_DIR = obj/unix |
30 | MOC_DIR = moc/unix | 32 | MOC_DIR = moc/unix |
31 | } | 33 | } |
32 | win32: { | 34 | win32: { |
33 | CONFIG += dll | 35 | CONFIG += dll |
34 | DEFINES += _WIN32_ | 36 | DEFINES += _WIN32_ |
35 | OBJECTS_DIR = obj/win | 37 | OBJECTS_DIR = obj/win |
36 | MOC_DIR = moc/win | 38 | MOC_DIR = moc/win |
37 | LIBS += ../../../bin/microkdepim.lib | 39 | LIBS += ../../../bin/microkdepim.lib |
38 | LIBS += ../../../bin/microkcal.lib | 40 | LIBS += ../../../bin/microkcal.lib |
39 | LIBS += ../../../bin/microkde.lib | 41 | LIBS += ../../../bin/microkde.lib |
40 | LIBS += ../../../bin/microkabc.lib | 42 | LIBS += ../../../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 |
4 | DESTDIR= ../bin | 4 | DESTDIR= ../bin |
5 | 5 | ||
6 | include( ../variables.pri ) | 6 | include( ../variables.pri ) |
7 | 7 | ||
8 | 8 | ||
9 | INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../ interfaces | 9 | INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../ interfaces |
10 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION | 10 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER DESKTOP_VERSION |
11 | 11 | ||
12 | unix : { | 12 | unix : { |
13 | 13 | ||
14 | staticlib: { | 14 | staticlib: { |
15 | LIBS += ../bin/libmicrokabc_qtopia.a | ||
16 | LIBS += ../bin/libmicrokabc_file.a | ||
17 | LIBS += ../bin/libmicrokabc_dir.a | ||
18 | LIBS += ../bin/libmicrokdepim.a | ||
19 | LIBS += ../bin/libmicrokcal.a | ||
20 | LIBS += ../bin/libmicrokabc.a | ||
21 | LIBS += ../bin/libmicrokde.a | ||
22 | LIBS += ../bin/libmicrokabc_qtopia.a | ||
23 | LIBS += ../bin/libmicrokabc_file.a | ||
24 | LIBS += ../bin/libmicrokabc_dir.a | ||
15 | LIBS += ../bin/libmicrokdepim.a | 25 | LIBS += ../bin/libmicrokdepim.a |
16 | LIBS += ../bin/libmicrokcal.a | 26 | LIBS += ../bin/libmicrokcal.a |
17 | LIBS += ../bin/libmicrokabc.a | 27 | LIBS += ../bin/libmicrokabc.a |
18 | LIBS += ../bin/libmicrokde.a | 28 | LIBS += ../bin/libmicrokde.a |
19 | LIBS += ../libical/lib/libical.a | 29 | LIBS += ../libical/lib/libical.a |
20 | LIBS += ../libical/lib/libicalss.a | 30 | LIBS += ../libical/lib/libicalss.a |
31 | |||
21 | } else { | 32 | } else { |
22 | LIBS += ../bin/libmicrokdepim.so | 33 | LIBS += ../bin/libmicrokdepim.so |
23 | LIBS += ../bin/libmicrokde.so | 34 | LIBS += ../bin/libmicrokde.so |
24 | LIBS += ../bin/libmicrokabc.so | 35 | LIBS += ../bin/libmicrokabc.so |
25 | LIBS += ../bin/libmicrokcal.so | 36 | LIBS += ../bin/libmicrokcal.so |
26 | #LIBS += -lldap | 37 | #LIBS += -lldap |
27 | } | 38 | } |
28 | OBJECTS_DIR = obj/unix | 39 | OBJECTS_DIR = obj/unix |
29 | MOC_DIR = moc/unix | 40 | MOC_DIR = moc/unix |
30 | } | 41 | } |
31 | win32: { | 42 | win32: { |
32 | RC_FILE = winicons.rc | 43 | RC_FILE = winicons.rc |
33 | DEFINES += _WIN32_ | 44 | DEFINES += _WIN32_ |
34 | LIBS += ../bin/microkdepim.lib | 45 | LIBS += ../bin/microkdepim.lib |
35 | LIBS += ../bin/microkcal.lib | 46 | LIBS += ../bin/microkcal.lib |
36 | LIBS += ../bin/microkde.lib | 47 | LIBS += ../bin/microkde.lib |
37 | LIBS += ../bin/microkabc.lib | 48 | LIBS += ../bin/microkabc.lib |
38 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 49 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
39 | OBJECTS_DIR = obj/win | 50 | OBJECTS_DIR = obj/win |
40 | MOC_DIR = moc/win | 51 | MOC_DIR = moc/win |
41 | #olimport section | 52 | #olimport section |
42 | #blabla: { | 53 | #blabla: { |
43 | 54 | ||
44 | LIBS += mfc71u.lib | 55 | LIBS += mfc71u.lib |
45 | DEFINES += _OL_IMPORT_ | 56 | DEFINES += _OL_IMPORT_ |
46 | HEADERS = ../outport/msoutl9.h \ | 57 | HEADERS = ../outport/msoutl9.h \ |
47 | kaimportoldialog.h | 58 | kaimportoldialog.h |
48 | SOURCES = ../outport/msoutl9.cpp \ | 59 | SOURCES = ../outport/msoutl9.cpp \ |
49 | kaimportoldialog.cpp | 60 | kaimportoldialog.cpp |
50 | #} | 61 | #} |
51 | #olimport section end | 62 | #olimport section end |
52 | } | 63 | } |
53 | 64 | ||
54 | INTERFACES = \ | 65 | INTERFACES = \ |
55 | # filteredit_base.ui \ | 66 | # filteredit_base.ui \ |
56 | # kofilterview_base.ui \ | 67 | # kofilterview_base.ui \ |
57 | 68 | ||
58 | HEADERS += \ | 69 | HEADERS += \ |
59 | features/mergewidget.h \ | 70 | features/mergewidget.h \ |
60 | features/distributionlistwidget.h \ | 71 | features/distributionlistwidget.h \ |
61 | kcmconfigs/addresseewidget.h \ | 72 | kcmconfigs/addresseewidget.h \ |
62 | kcmconfigs/extensionconfigdialog.h \ | 73 | kcmconfigs/extensionconfigdialog.h \ |
63 | kcmconfigs/kcmkabconfig.h \ | 74 | kcmconfigs/kcmkabconfig.h \ |
64 | kcmconfigs/kabconfigwidget.h \ | 75 | kcmconfigs/kabconfigwidget.h \ |
65 | addresseeeditordialog.h \ | 76 | addresseeeditordialog.h \ |
66 | addresseeeditorwidget.h \ | 77 | addresseeeditorwidget.h \ |
67 | addresseditwidget.h \ | 78 | addresseditwidget.h \ |
68 | addresseeconfig.h \ | 79 | addresseeconfig.h \ |
69 | addresseeutil.h \ | 80 | addresseeutil.h \ |
70 | emaileditwidget.h \ | 81 | emaileditwidget.h \ |
71 | filtereditdialog.h \ | 82 | filtereditdialog.h \ |
72 | kaddressbookmain.h \ | 83 | kaddressbookmain.h \ |
73 | kabprefs.h \ | 84 | kabprefs.h \ |
74 | kabcore.h \ | 85 | kabcore.h \ |
75 | viewmanager.h \ | 86 | viewmanager.h \ |
76 | extensionmanager.h \ | 87 | extensionmanager.h \ |
77 | extensionwidget.h \ | 88 | extensionwidget.h \ |
78 | kaddressbookview.h \ | 89 | kaddressbookview.h \ |
79 | geowidget.h \ | 90 | geowidget.h \ |
80 | imagewidget.h \ | 91 | imagewidget.h \ |
81 | incsearchwidget.h \ | 92 | incsearchwidget.h \ |
82 | jumpbuttonbar.h \ | 93 | jumpbuttonbar.h \ |
83 | phoneeditwidget.h \ | 94 | phoneeditwidget.h \ |
84 | secrecywidget.h \ | 95 | secrecywidget.h \ |
85 | keywidget.h \ | 96 | keywidget.h \ |
86 | nameeditdialog.h \ | 97 | nameeditdialog.h \ |
87 | filter.h \ | 98 | filter.h \ |
88 | addviewdialog.h \ | 99 | addviewdialog.h \ |
89 | configurewidget.h \ | 100 | configurewidget.h \ |
90 | viewconfigurewidget.h \ | 101 | viewconfigurewidget.h \ |
91 | viewconfigurefieldspage.h \ | 102 | viewconfigurefieldspage.h \ |
92 | viewconfigurefilterpage.h \ | 103 | viewconfigurefilterpage.h \ |
93 | typecombo.h \ | 104 | typecombo.h \ |
94 | undo.h \ | 105 | undo.h \ |
95 | undocmds.h \ | 106 | undocmds.h \ |
96 | xxportmanager.h \ | 107 | xxportmanager.h \ |
97 | xxportobject.h \ | 108 | xxportobject.h \ |
98 | xxportselectdialog.h \ | 109 | xxportselectdialog.h \ |
99 | details/detailsviewcontainer.h \ | 110 | details/detailsviewcontainer.h \ |
100 | details/look_basic.h \ | 111 | details/look_basic.h \ |
101 | details/look_html.h \ | 112 | details/look_html.h \ |
102 | views/kaddressbookiconview.h \ | 113 | views/kaddressbookiconview.h \ |
103 | views/kaddressbooktableview.h \ | 114 | views/kaddressbooktableview.h \ |
104 | views/kaddressbookcardview.h \ | 115 | views/kaddressbookcardview.h \ |
105 | views/configuretableviewdialog.h \ | 116 | views/configuretableviewdialog.h \ |
106 | views/configurecardviewdialog.h \ | 117 | views/configurecardviewdialog.h \ |
107 | views/cardview.h \ | 118 | views/cardview.h \ |
108 | views/colorlistbox.h \ | 119 | views/colorlistbox.h \ |
109 | views/contactlistview.h \ | 120 | views/contactlistview.h \ |
110 | xxport/vcard_xxport.h \ | 121 | xxport/vcard_xxport.h \ |
111 | xxport/kde2_xxport.h \ | 122 | xxport/kde2_xxport.h \ |
112 | xxport/csv_xxport.h \ | 123 | xxport/csv_xxport.h \ |
113 | xxport/csvimportdialog.h \ | 124 | xxport/csvimportdialog.h \ |
114 | xxport/opie_xxport.h \ | 125 | xxport/opie_xxport.h \ |
115 | xxport/qtopia_xxport.h \ | 126 | xxport/qtopia_xxport.h \ |
116 | xxport/sharpdtm_xxport.h \ | 127 | xxport/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 | ||
124 | SOURCES += \ | 135 | SOURCES += \ |
125 | addresseeeditordialog.cpp \ | 136 | addresseeeditordialog.cpp \ |
126 | addresseeeditorwidget.cpp \ | 137 | addresseeeditorwidget.cpp \ |
127 | addresseditwidget.cpp \ | 138 | addresseditwidget.cpp \ |
128 | addresseeconfig.cpp \ | 139 | addresseeconfig.cpp \ |
129 | addresseeutil.cpp \ | 140 | addresseeutil.cpp \ |
130 | extensionmanager.cpp \ | 141 | extensionmanager.cpp \ |
131 | features/mergewidget.cpp \ | 142 | features/mergewidget.cpp \ |
132 | features/distributionlistwidget.cpp \ | 143 | features/distributionlistwidget.cpp \ |
133 | kcmconfigs/addresseewidget.cpp \ | 144 | kcmconfigs/addresseewidget.cpp \ |
134 | kcmconfigs/extensionconfigdialog.cpp \ | 145 | kcmconfigs/extensionconfigdialog.cpp \ |
135 | kcmconfigs/kcmkabconfig.cpp \ | 146 | kcmconfigs/kcmkabconfig.cpp \ |
136 | kcmconfigs/kabconfigwidget.cpp \ | 147 | kcmconfigs/kabconfigwidget.cpp \ |
137 | emaileditwidget.cpp \ | 148 | emaileditwidget.cpp \ |
138 | filtereditdialog.cpp \ | 149 | filtereditdialog.cpp \ |
139 | mainembedded.cpp \ | 150 | mainembedded.cpp \ |
140 | kaddressbookmain.cpp \ | 151 | kaddressbookmain.cpp \ |
141 | kabcore.cpp \ | 152 | kabcore.cpp \ |
142 | kabprefs.cpp \ | 153 | kabprefs.cpp \ |
143 | viewmanager.cpp \ | 154 | viewmanager.cpp \ |
144 | kaddressbookview.cpp \ | 155 | kaddressbookview.cpp \ |
145 | extensionwidget.cpp \ | 156 | extensionwidget.cpp \ |
146 | geowidget.cpp \ | 157 | geowidget.cpp \ |
147 | imagewidget.cpp \ | 158 | imagewidget.cpp \ |
148 | incsearchwidget.cpp \ | 159 | incsearchwidget.cpp \ |
149 | jumpbuttonbar.cpp \ | 160 | jumpbuttonbar.cpp \ |
150 | phoneeditwidget.cpp \ | 161 | phoneeditwidget.cpp \ |
151 | secrecywidget.cpp \ | 162 | secrecywidget.cpp \ |
152 | keywidget.cpp \ | 163 | keywidget.cpp \ |
153 | nameeditdialog.cpp \ | 164 | nameeditdialog.cpp \ |
154 | filter.cpp \ | 165 | filter.cpp \ |
155 | addviewdialog.cpp \ | 166 | addviewdialog.cpp \ |
156 | configurewidget.cpp \ | 167 | configurewidget.cpp \ |
157 | viewconfigurewidget.cpp \ | 168 | viewconfigurewidget.cpp \ |
158 | viewconfigurefieldspage.cpp \ | 169 | viewconfigurefieldspage.cpp \ |
159 | viewconfigurefilterpage.cpp \ | 170 | viewconfigurefilterpage.cpp \ |
160 | undo.cpp \ | 171 | undo.cpp \ |
161 | undocmds.cpp \ | 172 | undocmds.cpp \ |
162 | xxportmanager.cpp \ | 173 | xxportmanager.cpp \ |
163 | xxportobject.cpp \ | 174 | xxportobject.cpp \ |
164 | xxportselectdialog.cpp \ | 175 | xxportselectdialog.cpp \ |
165 | details/detailsviewcontainer.cpp \ | 176 | details/detailsviewcontainer.cpp \ |
166 | details/look_basic.cpp \ | 177 | details/look_basic.cpp \ |
167 | details/look_html.cpp \ | 178 | details/look_html.cpp \ |
168 | views/kaddressbookiconview.cpp \ | 179 | views/kaddressbookiconview.cpp \ |
169 | views/kaddressbooktableview.cpp \ | 180 | views/kaddressbooktableview.cpp \ |
170 | views/kaddressbookcardview.cpp \ | 181 | views/kaddressbookcardview.cpp \ |
171 | views/configuretableviewdialog.cpp \ | 182 | views/configuretableviewdialog.cpp \ |
172 | views/configurecardviewdialog.cpp \ | 183 | views/configurecardviewdialog.cpp \ |
173 | views/cardview.cpp \ | 184 | views/cardview.cpp \ |
174 | views/contactlistview.cpp \ | 185 | views/contactlistview.cpp \ |
175 | views/colorlistbox.cpp \ | 186 | views/colorlistbox.cpp \ |
176 | xxport/vcard_xxport.cpp \ | 187 | xxport/vcard_xxport.cpp \ |
177 | xxport/kde2_xxport.cpp \ | 188 | xxport/kde2_xxport.cpp \ |
178 | xxport/csv_xxport.cpp \ | 189 | xxport/csv_xxport.cpp \ |
179 | xxport/csvimportdialog.cpp \ | 190 | xxport/csvimportdialog.cpp \ |
180 | xxport/opie_xxport.cpp \ | 191 | xxport/opie_xxport.cpp \ |
181 | xxport/qtopia_xxport.cpp \ | 192 | xxport/qtopia_xxport.cpp \ |
182 | xxport/sharpdtm_xxport.cpp \ | 193 | xxport/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 |
4 | OBJECTS_DIR = _obj/ | 4 | OBJECTS_DIR = _obj/ |
5 | MOC_DIR = _moc | 5 | MOC_DIR = _moc |
6 | DESTDIR= ../bin | 6 | DESTDIR= ../bin |
7 | 7 | ||
8 | include( ../variables.pri ) | 8 | include( ../variables.pri ) |
9 | 9 | ||
10 | INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim | 10 | INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio ../libkdepim |
11 | #../qtcompat | 11 | #../qtcompat |
12 | DEFINES += KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL | 12 | DEFINES += KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL |
13 | DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER | 13 | DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER |
14 | #KORG_NOPRINTER KORG_NOKABC KORG_NODND | 14 | #KORG_NOPRINTER KORG_NOKABC KORG_NODND |
15 | DEFINES += KORG_NOLVALTERNATION | 15 | DEFINES += KORG_NOLVALTERNATION |
16 | DEFINES += DESKTOP_VERSION | 16 | DEFINES += DESKTOP_VERSION |
17 | unix : { | 17 | unix : { |
18 | staticlib: { | 18 | staticlib: { |
19 | LIBS += ../bin/libmicrokabc_qtopia.a | ||
20 | LIBS += ../bin/libmicrokabc_file.a | ||
21 | LIBS += ../bin/libmicrokabc_dir.a | ||
22 | LIBS += ../bin/libmicrokdepim.a | ||
23 | LIBS += ../bin/libmicrokcal.a | ||
24 | LIBS += ../bin/libmicrokabc.a | ||
25 | LIBS += ../bin/libmicrokde.a | ||
26 | LIBS += ../bin/libmicrokabc_qtopia.a | ||
27 | LIBS += ../bin/libmicrokabc_file.a | ||
28 | LIBS += ../bin/libmicrokabc_dir.a | ||
19 | LIBS += ../bin/libmicrokdepim.a | 29 | LIBS += ../bin/libmicrokdepim.a |
20 | LIBS += ../bin/libmicrokcal.a | 30 | LIBS += ../bin/libmicrokcal.a |
21 | LIBS += ../bin/libmicrokabc.a | 31 | LIBS += ../bin/libmicrokabc.a |
22 | LIBS += ../bin/libmicrokde.a | 32 | LIBS += ../bin/libmicrokde.a |
23 | LIBS += ../libical/lib/libical.a | 33 | LIBS += ../libical/lib/libical.a |
24 | LIBS += ../libical/lib/libicalss.a | 34 | LIBS += ../libical/lib/libicalss.a |
25 | } else { | 35 | } else { |
26 | LIBS += ../bin/libmicrokdepim.so | 36 | LIBS += ../bin/libmicrokdepim.so |
27 | LIBS += ../bin/libmicrokcal.so | 37 | LIBS += ../bin/libmicrokcal.so |
28 | LIBS += ../bin/libmicrokde.so | 38 | LIBS += ../bin/libmicrokde.so |
29 | LIBS += ../bin/libmicrokabc.so | 39 | LIBS += ../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 | } |
35 | OBJECTS_DIR = obj/unix | 45 | OBJECTS_DIR = obj/unix |
36 | MOC_DIR = moc/unix | 46 | MOC_DIR = moc/unix |
37 | } | 47 | } |
38 | win32: { | 48 | win32: { |
39 | RC_FILE = winicons.rc | 49 | RC_FILE = winicons.rc |
40 | DEFINES += _WIN32_ | 50 | DEFINES += _WIN32_ |
41 | LIBS += ../bin/microkdepim.lib | 51 | LIBS += ../bin/microkdepim.lib |
42 | LIBS += ../bin/microkcal.lib | 52 | LIBS += ../bin/microkcal.lib |
43 | LIBS += ../bin/microkde.lib | 53 | LIBS += ../bin/microkde.lib |
44 | LIBS += ../bin/microkabc.lib | 54 | LIBS += ../bin/microkabc.lib |
45 | LIBS += ../libical/lib/ical.lib | 55 | LIBS += ../libical/lib/ical.lib |
46 | LIBS += ../libical/lib/icalss.lib | 56 | LIBS += ../libical/lib/icalss.lib |
47 | #LIBS += atls.lib | 57 | #LIBS += atls.lib |
48 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 58 | QMAKE_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 |
51 | OBJECTS_DIR = obj/win | 61 | OBJECTS_DIR = obj/win |
52 | MOC_DIR = moc/win | 62 | MOC_DIR = moc/win |
53 | #olimport section | 63 | #olimport section |
54 | #blabla: { | 64 | #blabla: { |
55 | LIBS += mfc71u.lib | 65 | LIBS += mfc71u.lib |
56 | DEFINES += _OL_IMPORT_ | 66 | DEFINES += _OL_IMPORT_ |
57 | 67 | ||
58 | HEADERS += ../outport/msoutl9.h \ | 68 | HEADERS += ../outport/msoutl9.h \ |
59 | koimportoldialog.h | 69 | koimportoldialog.h |
60 | SOURCES += ../outport/msoutl9.cpp \ | 70 | SOURCES += ../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 | ||
68 | INTERFACES = kofilterview_base.ui | 78 | INTERFACES = kofilterview_base.ui |
69 | #filteredit_base.ui | 79 | #filteredit_base.ui |
70 | 80 | ||
71 | # kdateedit.h \ | 81 | # kdateedit.h \ |
72 | 82 | ||
73 | HEADERS += datenavigatorcontainer.h \ | 83 | HEADERS += 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 | ||
136 | SOURCES += datenavigatorcontainer.cpp \ | 146 | SOURCES += datenavigatorcontainer.cpp \ |
137 | filteredit_base.cpp \ | 147 | filteredit_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 | ||
194 | HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h | 204 | HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h |
195 | INTERFACES += calprintdayconfig_base.ui \ | 205 | INTERFACES += 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 |
199 | SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp | 209 | SOURCES += 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 | ||
37 | using namespace KRES; | 42 | using namespace KRES; |
38 | 43 | ||
39 | QDict<Factory> *Factory::mSelves = 0; | 44 | QDict<Factory> *Factory::mSelves = 0; |
40 | static KStaticDeleter< QDict<Factory> > staticDeleter; | 45 | static KStaticDeleter< QDict<Factory> > staticDeleter; |
41 | 46 | ||
42 | Factory *Factory::self( const QString& resourceFamily) | 47 | Factory *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 | ||
62 | Factory::Factory( const QString& resourceFamily) : | 67 | Factory::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 | ||
138 | Factory::~Factory() | 143 | Factory::~Factory() |
139 | { | 144 | { |
140 | } | 145 | } |
141 | 146 | ||
142 | QStringList Factory::typeNames() const | 147 | QStringList 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 | ||
158 | ConfigWidget *Factory::configWidget( const QString& type, QWidget *parent ) | 163 | ConfigWidget *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 | ||
191 | QString Factory::typeName( const QString &type ) const | 196 | QString 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 | ||
204 | QString Factory::typeDescription( const QString &type ) const | 209 | QString 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 | ||
215 | Resource *Factory::resource( const QString& type, const KConfig *config ) | 220 | Resource *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 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (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 | |||
43 | using namespace KRES; | 45 | using namespace KRES; |
44 | 46 | ||
45 | ManagerImpl::ManagerImpl( const QString &family ) | 47 | ManagerImpl::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 | ||
55 | ManagerImpl::~ManagerImpl() | 57 | ManagerImpl::~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 | ||
67 | void ManagerImpl::createStandardConfig() | 69 | void 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 | ||
84 | void ManagerImpl::readConfig( KConfig *cfg ) | 86 | void 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 | ||
112 | void ManagerImpl::writeConfig( KConfig *cfg ) | 114 | void 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 | ||
158 | void ManagerImpl::add( Resource *resource, bool useDCOP ) | 160 | void 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 | ||
176 | void ManagerImpl::remove( Resource *resource, bool useDCOP ) | 178 | void 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 | ||
188 | void ManagerImpl::setActive( Resource *resource, bool active ) | 190 | void 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 | ||
195 | Resource *ManagerImpl::standardResource() | 197 | Resource *ManagerImpl::standardResource() |
196 | { | 198 | { |
197 | return mStandard; | 199 | return mStandard; |
198 | } | 200 | } |
199 | 201 | ||
200 | void ManagerImpl::setStandardResource( Resource *resource ) | 202 | void ManagerImpl::setStandardResource( Resource *resource ) |
201 | { | 203 | { |
202 | mStandard = resource; | 204 | mStandard = resource; |
203 | } | 205 | } |
204 | 206 | ||
205 | void ManagerImpl::resourceChanged( Resource *resource ) | 207 | void 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 | ||
217 | QStringList ManagerImpl::resourceNames() | 219 | QStringList 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 | ||
228 | Resource::List *ManagerImpl::resourceList() | 230 | Resource::List *ManagerImpl::resourceList() |
229 | { | 231 | { |
230 | return &mResources; | 232 | return &mResources; |
231 | } | 233 | } |
232 | 234 | ||
233 | QPtrList<Resource> ManagerImpl::resources() | 235 | QPtrList<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 | ||
244 | QPtrList<Resource> ManagerImpl::resources( bool active ) | 246 | QPtrList<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 | ||
257 | void ManagerImpl::setListener( ManagerImplListener *listener ) | 259 | void ManagerImpl::setListener( ManagerImplListener *listener ) |
258 | { | 260 | { |
259 | mListener = listener; | 261 | mListener = listener; |
260 | } | 262 | } |
261 | 263 | ||
262 | Resource* ManagerImpl::readResourceConfig( const QString& identifier, | 264 | Resource* 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 | ||
303 | void ManagerImpl::writeResourceConfig( Resource *resource, | 305 | void 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 | ||
337 | void ManagerImpl::removeResource( Resource *resource ) | 339 | void 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 | ||
364 | Resource* ManagerImpl::getResource( const QString& identifier ) | 366 | Resource* 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 |
3 | include( ../variables.pri ) | ||
3 | #INCLUDEPATH += $(QTDIR)/include . | 4 | #INCLUDEPATH += $(QTDIR)/include . |
4 | #DEPENDPATH += $(QTDIR)/include | 5 | #DEPENDPATH += $(QTDIR)/include |
5 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio | 6 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio |
6 | #LIBS += -lqtcompat | 7 | #LIBS += -lqtcompat |
7 | 8 | ||
8 | TARGET = microkde | 9 | TARGET = microkde |
9 | DESTDIR= ../bin | 10 | DESTDIR= ../bin |
10 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY | 11 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY |
11 | unix : { | 12 | unix : { |
13 | staticlib: { | ||
14 | INCLUDEPATH += ../kabc/plugins | ||
15 | DEFINES += STATIC_RESOURCES | ||
16 | } | ||
17 | |||
18 | |||
12 | OBJECTS_DIR = obj/unix | 19 | OBJECTS_DIR = obj/unix |
13 | MOC_DIR = moc/unix | 20 | MOC_DIR = moc/unix |
14 | } | 21 | } |
15 | win32: { | 22 | win32: { |
16 | DEFINES += _WIN32_ | 23 | DEFINES += _WIN32_ |
17 | OBJECTS_DIR = obj/win | 24 | OBJECTS_DIR = obj/win |
18 | MOC_DIR = moc/win | 25 | MOC_DIR = moc/win |
19 | } | 26 | } |
20 | include( ../variables.pri ) | ||
21 | 27 | ||
22 | 28 | ||
23 | 29 | ||
24 | HEADERS = \ | 30 | HEADERS = \ |
25 | qlayoutengine_p.h \ | 31 | qlayoutengine_p.h \ |
26 | KDGanttMinimizeSplitter.h \ | 32 | KDGanttMinimizeSplitter.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 | ||
111 | SOURCES = \ | 117 | SOURCES = \ |
112 | KDGanttMinimizeSplitter.cpp \ | 118 | KDGanttMinimizeSplitter.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 |