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,116 +1,127 @@ | |||
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 \ |
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro index 59a1a84..1a81c7d 100644 --- a/korganizer/korganizer.pro +++ b/korganizer/korganizer.pro | |||
@@ -1,114 +1,124 @@ | |||
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 \ |
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,138 +1,140 @@ | |||
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 | } |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 9016260..783ec34 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -1,116 +1,122 @@ | |||
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 \ |