author | zautrix <zautrix> | 2004-08-08 12:16:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-08 12:16:57 (UTC) |
commit | 4cc869512488b72304c7cbb5526c6f4cc957e677 (patch) (unidiff) | |
tree | 5658bb7ec55abc04b8e4f2d8e97faf945f0b9eeb | |
parent | 7c4e0075810cf95ab2b1ecda2d971264e9a9b60c (diff) | |
download | kdepimpi-4cc869512488b72304c7cbb5526c6f4cc957e677.zip kdepimpi-4cc869512488b72304c7cbb5526c6f4cc957e677.tar.gz kdepimpi-4cc869512488b72304c7cbb5526c6f4cc957e677.tar.bz2 |
Made it compileable on desktop 2
-rw-r--r-- | kabc/distributionlist.cpp | 4 | ||||
-rw-r--r-- | kabc/distributionlist.h | 17 | ||||
-rw-r--r-- | microkde/microkde.pro | 1 |
3 files changed, 8 insertions, 14 deletions
diff --git a/kabc/distributionlist.cpp b/kabc/distributionlist.cpp index 1fb186e..d34ba0b 100644 --- a/kabc/distributionlist.cpp +++ b/kabc/distributionlist.cpp | |||
@@ -1,292 +1,292 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <ksimpleconfig.h> | 21 | #include <ksimpleconfig.h> |
22 | #include <kstandarddirs.h> | 22 | #include <kstandarddirs.h> |
23 | #include <kdebug.h> | 23 | #include <kdebug.h> |
24 | 24 | ||
25 | #include "distributionlist.h" | 25 | #include "distributionlist.h" |
26 | 26 | ||
27 | using namespace KABC; | 27 | using namespace KABC; |
28 | 28 | ||
29 | DistributionList::DistributionList( DistributionListManager *manager, | 29 | DistributionList::DistributionList( DistributionListManager *manager, |
30 | const QString &name ) : | 30 | const QString &name ) : |
31 | mManager( manager ), mName( name ) | 31 | mManager( manager ), mName( name ) |
32 | { | 32 | { |
33 | mManager->insert( this ); | 33 | mManager->insert( this ); |
34 | } | 34 | } |
35 | 35 | ||
36 | DistributionList::~DistributionList() | 36 | DistributionList::~DistributionList() |
37 | { | 37 | { |
38 | mManager->remove( this ); | 38 | mManager->remove( this ); |
39 | } | 39 | } |
40 | 40 | ||
41 | void DistributionList::setName( const QString &name ) | 41 | void DistributionList::setName( const QString &name ) |
42 | { | 42 | { |
43 | mName = name; | 43 | mName = name; |
44 | } | 44 | } |
45 | 45 | ||
46 | QString DistributionList::name() const | 46 | QString DistributionList::name() const |
47 | { | 47 | { |
48 | return mName; | 48 | return mName; |
49 | } | 49 | } |
50 | 50 | ||
51 | void DistributionList::insertEntry( const Addressee &a, const QString &email ) | 51 | void DistributionList::insertEntry( const Addressee &a, const QString &email ) |
52 | { | 52 | { |
53 | QString em = email; | 53 | QString em = email; |
54 | if (em.isNull() ) | 54 | if (em.isNull() ) |
55 | em = a.preferredEmail(); | 55 | em = a.preferredEmail(); |
56 | Entry e( a, em ); | 56 | Entry e( a, em ); |
57 | QValueList<Entry>::Iterator it; | 57 | QValueList<Entry>::Iterator it; |
58 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { | 58 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { |
59 | if ( (*it).addressee.uid() == a.uid() ) { | 59 | if ( (*it).addressee.uid() == a.uid() ) { |
60 | /** | 60 | /** |
61 | We have to check if both email addresses contains no data, | 61 | We have to check if both email addresses contains no data, |
62 | a simple 'email1 == email2' wont work here | 62 | a simple 'email1 == email2' wont work here |
63 | */ | 63 | */ |
64 | if ( ( (*it).email.isNull() && em.isEmpty() ) || | 64 | if ( ( (*it).email.isNull() && em.isEmpty() ) || |
65 | ( (*it).email.isEmpty() && em.isNull() ) || | 65 | ( (*it).email.isEmpty() && em.isNull() ) || |
66 | ( (*it).email == em ) ) { | 66 | ( (*it).email == em ) ) { |
67 | //*it = e; | 67 | //*it = e; |
68 | return; | 68 | return; |
69 | } | 69 | } |
70 | } | 70 | } |
71 | } | 71 | } |
72 | mEntries.append( e ); | 72 | mEntries.append( e ); |
73 | } | 73 | } |
74 | 74 | ||
75 | void DistributionList::removeEntry( const Addressee &a, const QString &email ) | 75 | void DistributionList::removeEntry( const Addressee &a, const QString &email ) |
76 | { | 76 | { |
77 | QValueList<Entry>::Iterator it; | 77 | QValueList<Entry>::Iterator it; |
78 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { | 78 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { |
79 | if ( (*it).addressee.uid() == a.uid() && (*it).email == email ) { | 79 | if ( (*it).addressee.uid() == a.uid() && (*it).email == email ) { |
80 | mEntries.remove( it ); | 80 | mEntries.remove( it ); |
81 | return; | 81 | return; |
82 | } | 82 | } |
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | QStringList DistributionList::emails() const | 86 | QStringList DistributionList::emails() const |
87 | { | 87 | { |
88 | QStringList emails; | 88 | QStringList emails; |
89 | 89 | ||
90 | Entry::List::ConstIterator it; | 90 | Entry::List::ConstIterator it; |
91 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { | 91 | for( it = mEntries.begin(); it != mEntries.end(); ++it ) { |
92 | Addressee a = (*it).addressee; | 92 | Addressee a = (*it).addressee; |
93 | QString email = (*it).email.isEmpty() ? a.fullEmail() : | 93 | QString email = (*it).email.isEmpty() ? a.fullEmail() : |
94 | a.fullEmail( (*it).email ); | 94 | a.fullEmail( (*it).email ); |
95 | 95 | ||
96 | if ( !email.isEmpty() ) { | 96 | if ( !email.isEmpty() ) { |
97 | emails.append( email ); | 97 | emails.append( email ); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | return emails; | 101 | return emails; |
102 | } | 102 | } |
103 | 103 | ||
104 | DistributionList::Entry::List DistributionList::entries() const | 104 | DistributionList::Entry::List DistributionList::entries() const |
105 | { | 105 | { |
106 | return mEntries; | 106 | return mEntries; |
107 | } | 107 | } |
108 | 108 | ||
109 | 109 | ||
110 | DistributionListManager::DistributionListManager( AddressBook *ab ) : | 110 | DistributionListManager::DistributionListManager( AddressBook *ab ) : |
111 | mAddressBook( ab ) | 111 | mAddressBook( ab ) |
112 | { | 112 | { |
113 | } | 113 | } |
114 | 114 | ||
115 | DistributionListManager::~DistributionListManager() | 115 | DistributionListManager::~DistributionListManager() |
116 | { | 116 | { |
117 | } | 117 | } |
118 | 118 | ||
119 | DistributionList *DistributionListManager::list( const QString &name ) | 119 | DistributionList *DistributionListManager::list( const QString &name ) |
120 | { | 120 | { |
121 | DistributionList *list; | 121 | DistributionList *list; |
122 | for( list = mLists.first(); list; list = mLists.next() ) { | 122 | for( list = mLists.first(); list; list = mLists.next() ) { |
123 | if ( list->name() == name ) return list; | 123 | if ( list->name() == name ) return list; |
124 | } | 124 | } |
125 | 125 | ||
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
128 | 128 | ||
129 | void DistributionListManager::insert( DistributionList *l ) | 129 | void DistributionListManager::insert( DistributionList *l ) |
130 | { | 130 | { |
131 | DistributionList *list; | 131 | DistributionList *list; |
132 | for( list = mLists.first(); list; list = mLists.next() ) { | 132 | for( list = mLists.first(); list; list = mLists.next() ) { |
133 | if ( list->name() == l->name() ) { | 133 | if ( list->name() == l->name() ) { |
134 | mLists.remove( list ); | 134 | mLists.remove( list ); |
135 | break; | 135 | break; |
136 | } | 136 | } |
137 | } | 137 | } |
138 | mLists.append( l ); | 138 | mLists.append( l ); |
139 | } | 139 | } |
140 | 140 | ||
141 | void DistributionListManager::remove( DistributionList *l ) | 141 | void DistributionListManager::remove( DistributionList *l ) |
142 | { | 142 | { |
143 | DistributionList *list; | 143 | DistributionList *list; |
144 | for( list = mLists.first(); list; list = mLists.next() ) { | 144 | for( list = mLists.first(); list; list = mLists.next() ) { |
145 | if ( list->name() == l->name() ) { | 145 | if ( list->name() == l->name() ) { |
146 | mLists.remove( list ); | 146 | mLists.remove( list ); |
147 | return; | 147 | return; |
148 | } | 148 | } |
149 | } | 149 | } |
150 | } | 150 | } |
151 | 151 | ||
152 | QStringList DistributionListManager::listNames() | 152 | QStringList DistributionListManager::listNames() |
153 | { | 153 | { |
154 | QStringList names; | 154 | QStringList names; |
155 | 155 | ||
156 | DistributionList *list; | 156 | DistributionList *list; |
157 | for( list = mLists.first(); list; list = mLists.next() ) { | 157 | for( list = mLists.first(); list; list = mLists.next() ) { |
158 | names.append( list->name() ); | 158 | names.append( list->name() ); |
159 | } | 159 | } |
160 | 160 | ||
161 | return names; | 161 | return names; |
162 | } | 162 | } |
163 | 163 | ||
164 | bool DistributionListManager::load() | 164 | bool DistributionListManager::load() |
165 | { | 165 | { |
166 | KSimpleConfig cfg( locateLocal( "data", "kabc/distlists" ) ); | 166 | KSimpleConfig cfg( locateLocal( "data", "kabc/distlists" ) ); |
167 | 167 | ||
168 | /*US | 168 | /*US |
169 | QMap<QString,QString> entryMap = cfg.entryMap( mAddressBook->identifier() ); | 169 | QMap<QString,QString> entryMap = cfg.entryMap( mAddressBook->identifier() ); |
170 | if ( entryMap.isEmpty() ) { | 170 | if ( entryMap.isEmpty() ) { |
171 | kdDebug(5700) << "No distlists for '" << mAddressBook->identifier() << "'" << endl; | 171 | kdDebug(5700) << "No distlists for '" << mAddressBook->identifier() << "'" << endl; |
172 | return false; | 172 | return false; |
173 | } | 173 | } |
174 | 174 | ||
175 | cfg.setGroup( mAddressBook->identifier() ); | 175 | cfg.setGroup( mAddressBook->identifier() ); |
176 | 176 | ||
177 | QMap<QString,QString>::ConstIterator it; | 177 | QMap<QString,QString>::ConstIterator it; |
178 | for( it = entryMap.begin(); it != entryMap.end(); ++it ) { | 178 | for( it = entryMap.begin(); it != entryMap.end(); ++it ) { |
179 | QString name = it.key(); | 179 | QString name = it.key(); |
180 | */ | 180 | */ |
181 | cfg.setGroup( mAddressBook->identifier() ); | 181 | cfg.setGroup( mAddressBook->identifier() ); |
182 | //US we work in microkde with a list of distributionlists | 182 | //US we work in microkde with a list of distributionlists |
183 | QStringList distlists = cfg.readListEntry( "__Lists__List__" ); | 183 | QStringList distlists = cfg.readListEntry( "__Lists__List__" ); |
184 | if ( distlists.isEmpty() ) { | 184 | if ( distlists.isEmpty() ) { |
185 | qDebug("no distlist for AB "); | 185 | qDebug("no distlist for AB "); |
186 | return false; | 186 | return false; |
187 | } | 187 | } |
188 | 188 | ||
189 | QStringList::ConstIterator it; | 189 | QStringList::ConstIterator it; |
190 | for( it = distlists.begin(); it != distlists.end(); ++it ) { | 190 | for( it = distlists.begin(); it != distlists.end(); ++it ) { |
191 | QString name = *it; | 191 | QString name = *it; |
192 | 192 | ||
193 | 193 | ||
194 | QStringList value = cfg.readListEntry( name ); | 194 | QStringList value = cfg.readListEntry( name ); |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | DistributionList *list = new DistributionList( this, name ); | 198 | DistributionList *list = new DistributionList( this, name ); |
199 | 199 | ||
200 | QStringList::ConstIterator it2 = value.begin(); | 200 | QStringList::ConstIterator it2 = value.begin(); |
201 | while( it2 != value.end() ) { | 201 | while( it2 != value.end() ) { |
202 | QString id = *it2++; | 202 | QString id = *it2++; |
203 | QString email = *it2; | 203 | QString email = *it2; |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | Addressee a = mAddressBook->findByUid( id ); | 207 | Addressee a = mAddressBook->findByUid( id ); |
208 | if ( !a.isEmpty() ) { | 208 | if ( !a.isEmpty() ) { |
209 | list->insertEntry( a, email ); | 209 | list->insertEntry( a, email ); |
210 | } | 210 | } |
211 | 211 | ||
212 | if ( it2 == value.end() ) break; | 212 | if ( it2 == value.end() ) break; |
213 | ++it2; | 213 | ++it2; |
214 | } | 214 | } |
215 | } | 215 | } |
216 | 216 | ||
217 | return true; | 217 | return true; |
218 | } | 218 | } |
219 | 219 | ||
220 | bool DistributionListManager::save() | 220 | bool DistributionListManager::save() |
221 | { | 221 | { |
222 | 222 | ||
223 | 223 | ||
224 | KSimpleConfig cfg( locateLocal( "data", "kabc/distlists" ) ); | 224 | KSimpleConfig cfg( locateLocal( "data", "kabc/distlists" ) ); |
225 | 225 | ||
226 | cfg.deleteGroup( mAddressBook->identifier() ); | 226 | cfg.deleteGroup( mAddressBook->identifier() ); |
227 | cfg.setGroup( mAddressBook->identifier() ); | 227 | cfg.setGroup( mAddressBook->identifier() ); |
228 | 228 | ||
229 | DistributionList *list; | 229 | DistributionList *list; |
230 | for( list = mLists.first(); list; list = mLists.next() ) { | 230 | for( list = mLists.first(); list; list = mLists.next() ) { |
231 | kdDebug(5700) << " Saving '" << list->name() << "'" << endl; | 231 | kdDebug(5700) << " Saving '" << list->name() << "'" << endl; |
232 | QStringList value; | 232 | QStringList value; |
233 | DistributionList::Entry::List entries = list->entries(); | 233 | DistributionList::Entry::List entries = list->entries(); |
234 | DistributionList::Entry::List::ConstIterator it; | 234 | DistributionList::Entry::List::ConstIterator it; |
235 | for( it = entries.begin(); it != entries.end(); ++it ) { | 235 | for( it = entries.begin(); it != entries.end(); ++it ) { |
236 | value.append( (*it).addressee.uid() ); | 236 | value.append( (*it).addressee.uid() ); |
237 | if (( *it).email.isEmpty()) | 237 | if (( *it).email.isEmpty()) |
238 | value.append( " " ); | 238 | value.append( " " ); |
239 | else | 239 | else |
240 | value.append( (*it).email ); | 240 | value.append( (*it).email ); |
241 | // qDebug("uid *%s* email *%s* ", (*it).addressee.uid().latin1(),(*it).email.latin1() ); | 241 | // qDebug("uid *%s* email *%s* ", (*it).addressee.uid().latin1(),(*it).email.latin1() ); |
242 | } | 242 | } |
243 | cfg.writeEntry( list->name(), value ); | 243 | cfg.writeEntry( list->name(), value ); |
244 | } | 244 | } |
245 | 245 | ||
246 | //US for microKDE we have not yet sophisticated methods to load maps. | 246 | //US for microKDE we have not yet sophisticated methods to load maps. |
247 | // Because of that we store also a list of all distributionlists. | 247 | // Because of that we store also a list of all distributionlists. |
248 | QStringList namelist; | 248 | QStringList namelist; |
249 | for( list = mLists.first(); list; list = mLists.next() ) { | 249 | for( list = mLists.first(); list; list = mLists.next() ) { |
250 | namelist.append( list->name() ); | 250 | namelist.append( list->name() ); |
251 | } | 251 | } |
252 | cfg.writeEntry( "__Lists__List__", namelist ); | 252 | cfg.writeEntry( "__Lists__List__", namelist ); |
253 | 253 | ||
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | ||
259 | cfg.sync(); | 259 | cfg.sync(); |
260 | 260 | ||
261 | return true; | 261 | return true; |
262 | } | 262 | } |
263 | 263 | #if 0 | |
264 | DistributionListWatcher* DistributionListWatcher::mSelf = 0; | 264 | DistributionListWatcher* DistributionListWatcher::mSelf = 0; |
265 | 265 | ||
266 | DistributionListWatcher::DistributionListWatcher() | 266 | DistributionListWatcher::DistributionListWatcher() |
267 | : QObject( 0, "DistributionListWatcher" ) | 267 | : QObject( 0, "DistributionListWatcher" ) |
268 | { | 268 | { |
269 | 269 | ||
270 | mDirWatch = new KDirWatch; | 270 | mDirWatch = new KDirWatch; |
271 | mDirWatch->addFile( locateLocal( "data", "kabc/distlists" ) ); | 271 | mDirWatch->addFile( locateLocal( "data", "kabc/distlists" ) ); |
272 | 272 | ||
273 | connect( mDirWatch, SIGNAL( dirty( const QString& ) ), SIGNAL( changed() ) ); | 273 | connect( mDirWatch, SIGNAL( dirty( const QString& ) ), SIGNAL( changed() ) ); |
274 | mDirWatch->startScan(); | 274 | mDirWatch->startScan(); |
275 | } | 275 | } |
276 | 276 | ||
277 | DistributionListWatcher::~DistributionListWatcher() | 277 | DistributionListWatcher::~DistributionListWatcher() |
278 | { | 278 | { |
279 | delete mDirWatch; | 279 | delete mDirWatch; |
280 | mDirWatch = 0; | 280 | mDirWatch = 0; |
281 | } | 281 | } |
282 | 282 | ||
283 | DistributionListWatcher *DistributionListWatcher::self() | 283 | DistributionListWatcher *DistributionListWatcher::self() |
284 | { | 284 | { |
285 | if ( !mSelf ) | 285 | if ( !mSelf ) |
286 | mSelf = new DistributionListWatcher(); | 286 | mSelf = new DistributionListWatcher(); |
287 | 287 | ||
288 | return mSelf; | 288 | return mSelf; |
289 | } | 289 | } |
290 | 290 | #endif | |
291 | //US #include "distributionlist.moc" | 291 | //US #include "distributionlist.moc" |
292 | 292 | ||
diff --git a/kabc/distributionlist.h b/kabc/distributionlist.h index 584f287..c81e543 100644 --- a/kabc/distributionlist.h +++ b/kabc/distributionlist.h | |||
@@ -1,217 +1,212 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef KABC_DISTRIBUTIONLIST_H | 21 | #ifndef KABC_DISTRIBUTIONLIST_H |
22 | #define KABC_DISTRIBUTIONLIST_H | 22 | #define KABC_DISTRIBUTIONLIST_H |
23 | 23 | ||
24 | #include <kdirwatch.h> | 24 | //#include <kdirwatch.h> |
25 | 25 | ||
26 | #include "addressbook.h" | 26 | #include "addressbook.h" |
27 | 27 | ||
28 | namespace KABC { | 28 | namespace KABC { |
29 | 29 | ||
30 | class DistributionListManager; | 30 | class DistributionListManager; |
31 | 31 | ||
32 | /** | 32 | /** |
33 | @short Distribution list of email addresses | 33 | @short Distribution list of email addresses |
34 | 34 | ||
35 | This class represents a list of email addresses. Each email address is | 35 | This class represents a list of email addresses. Each email address is |
36 | associated with an address book entry. If the address book entry changes, the | 36 | associated with an address book entry. If the address book entry changes, the |
37 | entry in the distribution list is automatically updated. | 37 | entry in the distribution list is automatically updated. |
38 | */ | 38 | */ |
39 | class DistributionList | 39 | class DistributionList |
40 | { | 40 | { |
41 | public: | 41 | public: |
42 | /** | 42 | /** |
43 | @short Distribution List Entry | 43 | @short Distribution List Entry |
44 | 44 | ||
45 | This class represents an entry of a distribution list. It consists of an | 45 | This class represents an entry of a distribution list. It consists of an |
46 | addressee and an email address. If the email address is null, the | 46 | addressee and an email address. If the email address is null, the |
47 | preferred email address of the addressee is used. | 47 | preferred email address of the addressee is used. |
48 | */ | 48 | */ |
49 | struct Entry | 49 | struct Entry |
50 | { | 50 | { |
51 | typedef QValueList<Entry> List; | 51 | typedef QValueList<Entry> List; |
52 | 52 | ||
53 | Entry() {} | 53 | Entry() {} |
54 | Entry( const Addressee &_addressee, const QString &_email ) : | 54 | Entry( const Addressee &_addressee, const QString &_email ) : |
55 | addressee( _addressee ), email( _email ) {} | 55 | addressee( _addressee ), email( _email ) {} |
56 | 56 | ||
57 | Addressee addressee; | 57 | Addressee addressee; |
58 | QString email; | 58 | QString email; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | /** | 61 | /** |
62 | Create distribution list object. | 62 | Create distribution list object. |
63 | 63 | ||
64 | @param manager Managing object of this list. | 64 | @param manager Managing object of this list. |
65 | @param name Name of this list. | 65 | @param name Name of this list. |
66 | */ | 66 | */ |
67 | DistributionList( DistributionListManager *manager, const QString &name ); | 67 | DistributionList( DistributionListManager *manager, const QString &name ); |
68 | 68 | ||
69 | /** | 69 | /** |
70 | Destructor. | 70 | Destructor. |
71 | */ | 71 | */ |
72 | ~DistributionList(); | 72 | ~DistributionList(); |
73 | 73 | ||
74 | /** | 74 | /** |
75 | Set name of this list. The name is used as key by the | 75 | Set name of this list. The name is used as key by the |
76 | DistributinListManager. | 76 | DistributinListManager. |
77 | */ | 77 | */ |
78 | void setName( const QString & ); | 78 | void setName( const QString & ); |
79 | 79 | ||
80 | /** | 80 | /** |
81 | Get name of this list. | 81 | Get name of this list. |
82 | */ | 82 | */ |
83 | QString name() const; | 83 | QString name() const; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | Insert an entry into this distribution list. If the entry already exists | 86 | Insert an entry into this distribution list. If the entry already exists |
87 | nothing happens. | 87 | nothing happens. |
88 | */ | 88 | */ |
89 | void insertEntry( const Addressee &, const QString &email=QString::null ); | 89 | void insertEntry( const Addressee &, const QString &email=QString::null ); |
90 | 90 | ||
91 | /** | 91 | /** |
92 | Remove an entry from this distribution list. If the entry doesn't exist | 92 | Remove an entry from this distribution list. If the entry doesn't exist |
93 | nothing happens. | 93 | nothing happens. |
94 | */ | 94 | */ |
95 | void removeEntry( const Addressee &, const QString &email=QString::null ); | 95 | void removeEntry( const Addressee &, const QString &email=QString::null ); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | Return list of email addresses, which belong to this distributon list. | 98 | Return list of email addresses, which belong to this distributon list. |
99 | These addresses can be directly used by e.g. a mail client. | 99 | These addresses can be directly used by e.g. a mail client. |
100 | */ | 100 | */ |
101 | QStringList emails() const; | 101 | QStringList emails() const; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | Return list of entries belonging to this distribution list. This function | 104 | Return list of entries belonging to this distribution list. This function |
105 | is mainly useful for a distribution list editor. | 105 | is mainly useful for a distribution list editor. |
106 | */ | 106 | */ |
107 | Entry::List entries() const; | 107 | Entry::List entries() const; |
108 | 108 | ||
109 | private: | 109 | private: |
110 | DistributionListManager *mManager; | 110 | DistributionListManager *mManager; |
111 | QString mName; | 111 | QString mName; |
112 | 112 | ||
113 | Entry::List mEntries; | 113 | Entry::List mEntries; |
114 | }; | 114 | }; |
115 | 115 | ||
116 | /** | 116 | /** |
117 | @short Manager of distribution lists | 117 | @short Manager of distribution lists |
118 | 118 | ||
119 | This class represents a collection of distribution lists, which are associated | 119 | This class represents a collection of distribution lists, which are associated |
120 | with a given address book. | 120 | with a given address book. |
121 | */ | 121 | */ |
122 | class DistributionListManager | 122 | class DistributionListManager |
123 | { | 123 | { |
124 | public: | 124 | public: |
125 | /** | 125 | /** |
126 | Create manager for given address book. | 126 | Create manager for given address book. |
127 | */ | 127 | */ |
128 | DistributionListManager( AddressBook * ); | 128 | DistributionListManager( AddressBook * ); |
129 | 129 | ||
130 | /** | 130 | /** |
131 | Destructor. | 131 | Destructor. |
132 | */ | 132 | */ |
133 | ~DistributionListManager(); | 133 | ~DistributionListManager(); |
134 | 134 | ||
135 | /** | 135 | /** |
136 | Return distribution list with given name. | 136 | Return distribution list with given name. |
137 | */ | 137 | */ |
138 | DistributionList *list( const QString &name ); | 138 | DistributionList *list( const QString &name ); |
139 | 139 | ||
140 | /** | 140 | /** |
141 | Insert distribution list. If a list with this name already exists, nothing | 141 | Insert distribution list. If a list with this name already exists, nothing |
142 | happens. | 142 | happens. |
143 | */ | 143 | */ |
144 | void insert( DistributionList * ); | 144 | void insert( DistributionList * ); |
145 | 145 | ||
146 | /** | 146 | /** |
147 | Remove distribution list. If a list with this name doesn't exist, nothing | 147 | Remove distribution list. If a list with this name doesn't exist, nothing |
148 | happens. | 148 | happens. |
149 | */ | 149 | */ |
150 | void remove( DistributionList * ); | 150 | void remove( DistributionList * ); |
151 | 151 | ||
152 | /** | 152 | /** |
153 | Return names of all distribution lists managed by this manager. | 153 | Return names of all distribution lists managed by this manager. |
154 | */ | 154 | */ |
155 | QStringList listNames(); | 155 | QStringList listNames(); |
156 | 156 | ||
157 | /** | 157 | /** |
158 | Load distribution lists form disk. | 158 | Load distribution lists form disk. |
159 | */ | 159 | */ |
160 | bool load(); | 160 | bool load(); |
161 | 161 | ||
162 | /** | 162 | /** |
163 | Save distribution lists to disk. | 163 | Save distribution lists to disk. |
164 | */ | 164 | */ |
165 | bool save(); | 165 | bool save(); |
166 | 166 | ||
167 | private: | 167 | private: |
168 | AddressBook *mAddressBook; | 168 | AddressBook *mAddressBook; |
169 | 169 | ||
170 | QPtrList<DistributionList> mLists; | 170 | QPtrList<DistributionList> mLists; |
171 | }; | 171 | }; |
172 | 172 | ||
173 | /** | 173 | /** |
174 | @short Watchdog for distribution lists | 174 | @short Watchdog for distribution lists |
175 | 175 | ||
176 | This class provides a @ref changed() signal that i emitted when the | 176 | This class provides a @ref changed() signal that i emitted when the |
177 | distribution lists has changed in some way. | 177 | distribution lists has changed in some way. |
178 | 178 | ||
179 | Exapmle: | 179 | Exapmle: |
180 | 180 | ||
181 | <pre> | 181 | <pre> |
182 | KABC::DistributionListWatcher *watchdog = KABC::DistributionListWatcher::self() | 182 | KABC::DistributionListWatcher *watchdog = KABC::DistributionListWatcher::self() |
183 | 183 | ||
184 | connect( watchdog, SIGNAL( changed() ), SLOT( doSomething() ) ); | 184 | connect( watchdog, SIGNAL( changed() ), SLOT( doSomething() ) ); |
185 | </pre> | 185 | </pre> |
186 | */ | 186 | */ |
187 | 187 | ||
188 | /* | ||
188 | class DistributionListWatcher : public QObject | 189 | class DistributionListWatcher : public QObject |
189 | { | 190 | { |
190 | Q_OBJECT | 191 | Q_OBJECT_XX |
191 | 192 | ||
192 | public: | 193 | public: |
193 | /** | 194 | |
194 | * Returns the watcher object. | ||
195 | */ | ||
196 | static DistributionListWatcher *self(); | 195 | static DistributionListWatcher *self(); |
197 | 196 | ||
198 | 197 | ||
199 | signals: | 198 | signals: |
200 | /** | 199 | |
201 | * This signal is emmitted whenever the distribution lists has | ||
202 | * changed (if a list was added or removed, when a list was | ||
203 | * renamed or the entries of the list changed). | ||
204 | */ | ||
205 | void changed(); | 200 | void changed(); |
206 | 201 | ||
207 | protected: | 202 | protected: |
208 | DistributionListWatcher(); | 203 | DistributionListWatcher(); |
209 | ~DistributionListWatcher(); | 204 | ~DistributionListWatcher(); |
210 | 205 | ||
211 | private: | 206 | private: |
212 | static DistributionListWatcher* mSelf; | 207 | static DistributionListWatcher* mSelf; |
213 | KDirWatch *mDirWatch; | 208 | KDirWatch *mDirWatch; |
214 | }; | 209 | }; |
215 | 210 | */ | |
216 | } | 211 | } |
217 | #endif | 212 | #endif |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index f9adfb1..71d662b 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -1,177 +1,176 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | #INCLUDEPATH += $(QTDIR)/include . | 3 | #INCLUDEPATH += $(QTDIR)/include . |
4 | #DEPENDPATH += $(QTDIR)/include | 4 | #DEPENDPATH += $(QTDIR)/include |
5 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio | 5 | INCLUDEPATH += . ../ ../kabc ./kdecore ./kdeui ./kio/kfile ./kio/kio |
6 | #LIBS += -lqtcompat | 6 | #LIBS += -lqtcompat |
7 | 7 | ||
8 | TARGET = microkde | 8 | TARGET = microkde |
9 | DESTDIR= ../bin | 9 | DESTDIR= ../bin |
10 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY | 10 | DEFINES += DESKTOP_VERSION KDE_QT_ONLY |
11 | unix : { | 11 | unix : { |
12 | OBJECTS_DIR = obj/unix | 12 | OBJECTS_DIR = obj/unix |
13 | MOC_DIR = moc/unix | 13 | MOC_DIR = moc/unix |
14 | } | 14 | } |
15 | win32: { | 15 | win32: { |
16 | DEFINES += _WIN32_ | 16 | DEFINES += _WIN32_ |
17 | OBJECTS_DIR = obj/win | 17 | OBJECTS_DIR = obj/win |
18 | MOC_DIR = moc/win | 18 | MOC_DIR = moc/win |
19 | } | 19 | } |
20 | include( ../variables.pri ) | 20 | include( ../variables.pri ) |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | HEADERS = \ | 24 | HEADERS = \ |
25 | qlayoutengine_p.h \ | 25 | qlayoutengine_p.h \ |
26 | KDGanttMinimizeSplitter.h \ | 26 | KDGanttMinimizeSplitter.h \ |
27 | kapplication.h \ | 27 | kapplication.h \ |
28 | kaudioplayer.h \ | 28 | kaudioplayer.h \ |
29 | kcalendarsystem.h \ | 29 | kcalendarsystem.h \ |
30 | kcalendarsystemgregorian.h \ | 30 | kcalendarsystemgregorian.h \ |
31 | kcolorbutton.h \ | 31 | kcolorbutton.h \ |
32 | kcolordialog.h \ | 32 | kcolordialog.h \ |
33 | kcombobox.h \ | 33 | kcombobox.h \ |
34 | kconfig.h \ | 34 | kconfig.h \ |
35 | kdatetbl.h \ | 35 | kdatetbl.h \ |
36 | kdebug.h \ | 36 | kdebug.h \ |
37 | kdialog.h \ | 37 | kdialog.h \ |
38 | kdialogbase.h \ | 38 | kdialogbase.h \ |
39 | kdirwatch.h \ | ||
40 | keditlistbox.h \ | 39 | keditlistbox.h \ |
41 | kemailsettings.h \ | 40 | kemailsettings.h \ |
42 | kfiledialog.h \ | 41 | kfiledialog.h \ |
43 | kfontdialog.h \ | 42 | kfontdialog.h \ |
44 | kglobal.h \ | 43 | kglobal.h \ |
45 | kglobalsettings.h \ | 44 | kglobalsettings.h \ |
46 | kiconloader.h \ | 45 | kiconloader.h \ |
47 | klineedit.h \ | 46 | klineedit.h \ |
48 | klineeditdlg.h \ | 47 | klineeditdlg.h \ |
49 | kmessagebox.h \ | 48 | kmessagebox.h \ |
50 | knotifyclient.h \ | 49 | knotifyclient.h \ |
51 | kprinter.h \ | 50 | kprinter.h \ |
52 | kprocess.h \ | 51 | kprocess.h \ |
53 | krestrictedline.h \ | 52 | krestrictedline.h \ |
54 | krun.h \ | 53 | krun.h \ |
55 | ksimpleconfig.h \ | 54 | ksimpleconfig.h \ |
56 | kstaticdeleter.h \ | 55 | kstaticdeleter.h \ |
57 | ksystemtray.h \ | 56 | ksystemtray.h \ |
58 | ktempfile.h \ | 57 | ktempfile.h \ |
59 | ktextedit.h \ | 58 | ktextedit.h \ |
60 | kunload.h \ | 59 | kunload.h \ |
61 | kurl.h \ | 60 | kurl.h \ |
62 | kdeui/kguiitem.h \ | 61 | kdeui/kguiitem.h \ |
63 | kdeui/kcmodule.h \ | 62 | kdeui/kcmodule.h \ |
64 | kdeui/kbuttonbox.h \ | 63 | kdeui/kbuttonbox.h \ |
65 | kdeui/klistbox.h \ | 64 | kdeui/klistbox.h \ |
66 | kdeui/klistview.h \ | 65 | kdeui/klistview.h \ |
67 | kdeui/kjanuswidget.h \ | 66 | kdeui/kjanuswidget.h \ |
68 | kdeui/kseparator.h \ | 67 | kdeui/kseparator.h \ |
69 | kdeui/knuminput.h \ | 68 | kdeui/knuminput.h \ |
70 | kdeui/knumvalidator.h \ | 69 | kdeui/knumvalidator.h \ |
71 | kdeui/ksqueezedtextlabel.h \ | 70 | kdeui/ksqueezedtextlabel.h \ |
72 | kio/job.h \ | 71 | kio/job.h \ |
73 | kio/kio/kdirwatch.h \ | 72 | kio/kio/kdirwatch.h \ |
74 | kio/kio/kdirwatch_p.h \ | 73 | kio/kio/kdirwatch_p.h \ |
75 | kio/kfile/kurlrequester.h \ | 74 | kio/kfile/kurlrequester.h \ |
76 | kresources/resource.h \ | 75 | kresources/resource.h \ |
77 | kresources/factory.h \ | 76 | kresources/factory.h \ |
78 | kresources/managerimpl.h \ | 77 | kresources/managerimpl.h \ |
79 | kresources/manager.h \ | 78 | kresources/manager.h \ |
80 | kresources/selectdialog.h \ | 79 | kresources/selectdialog.h \ |
81 | kresources/configpage.h \ | 80 | kresources/configpage.h \ |
82 | kresources/configwidget.h \ | 81 | kresources/configwidget.h \ |
83 | kresources/configdialog.h \ | 82 | kresources/configdialog.h \ |
84 | kresources/kcmkresources.h \ | 83 | kresources/kcmkresources.h \ |
85 | kresources/syncwidget.h \ | 84 | kresources/syncwidget.h \ |
86 | kdecore/kmdcodec.h \ | 85 | kdecore/kmdcodec.h \ |
87 | kdecore/kconfigbase.h \ | 86 | kdecore/kconfigbase.h \ |
88 | kdecore/klocale.h \ | 87 | kdecore/klocale.h \ |
89 | kdecore/kcatalogue.h \ | 88 | kdecore/kcatalogue.h \ |
90 | kdecore/ksharedptr.h \ | 89 | kdecore/ksharedptr.h \ |
91 | kdecore/kshell.h \ | 90 | kdecore/kshell.h \ |
92 | kdecore/kstandarddirs.h \ | 91 | kdecore/kstandarddirs.h \ |
93 | kdecore/kstringhandler.h \ | 92 | kdecore/kstringhandler.h \ |
94 | kdecore/kshortcut.h \ | 93 | kdecore/kshortcut.h \ |
95 | kutils/kcmultidialog.h \ | 94 | kutils/kcmultidialog.h \ |
96 | kdeui/kxmlguiclient.h \ | 95 | kdeui/kxmlguiclient.h \ |
97 | kdeui/kstdaction.h \ | 96 | kdeui/kstdaction.h \ |
98 | kdeui/kmainwindow.h \ | 97 | kdeui/kmainwindow.h \ |
99 | kdeui/ktoolbar.h \ | 98 | kdeui/ktoolbar.h \ |
100 | kdeui/ktoolbarbutton.h \ | 99 | kdeui/ktoolbarbutton.h \ |
101 | kdeui/ktoolbarhandler.h \ | 100 | kdeui/ktoolbarhandler.h \ |
102 | kdeui/kaction.h \ | 101 | kdeui/kaction.h \ |
103 | kdeui/kactionclasses.h \ | 102 | kdeui/kactionclasses.h \ |
104 | kdeui/kactioncollection.h \ | 103 | kdeui/kactioncollection.h \ |
105 | kdecore/kprefs.h \ | 104 | kdecore/kprefs.h \ |
106 | kdecore/klibloader.h \ | 105 | kdecore/klibloader.h \ |
107 | kidmanager.h | 106 | kidmanager.h |
108 | 107 | ||
109 | 108 | ||
110 | # kdecore/klibloader.h \ | 109 | # kdecore/klibloader.h \ |
111 | 110 | ||
112 | 111 | ||
113 | SOURCES = \ | 112 | SOURCES = \ |
114 | KDGanttMinimizeSplitter.cpp \ | 113 | KDGanttMinimizeSplitter.cpp \ |
115 | kapplication.cpp \ | 114 | kapplication.cpp \ |
116 | kcalendarsystem.cpp \ | 115 | kcalendarsystem.cpp \ |
117 | kcalendarsystemgregorian.cpp \ | 116 | kcalendarsystemgregorian.cpp \ |
118 | kcolorbutton.cpp \ | 117 | kcolorbutton.cpp \ |
119 | kcolordialog.cpp \ | 118 | kcolordialog.cpp \ |
120 | kconfig.cpp \ | 119 | kconfig.cpp \ |
121 | kdatetbl.cpp \ | 120 | kdatetbl.cpp \ |
122 | kdialog.cpp \ | 121 | kdialog.cpp \ |
123 | kdialogbase.cpp \ | 122 | kdialogbase.cpp \ |
124 | keditlistbox.cpp \ | 123 | keditlistbox.cpp \ |
125 | kemailsettings.cpp \ | 124 | kemailsettings.cpp \ |
126 | kfontdialog.cpp \ | 125 | kfontdialog.cpp \ |
127 | kfiledialog.cpp \ | 126 | kfiledialog.cpp \ |
128 | kglobal.cpp \ | 127 | kglobal.cpp \ |
129 | kglobalsettings.cpp \ | 128 | kglobalsettings.cpp \ |
130 | kiconloader.cpp \ | 129 | kiconloader.cpp \ |
131 | kmessagebox.cpp \ | 130 | kmessagebox.cpp \ |
132 | ktextedit.cpp \ | 131 | ktextedit.cpp \ |
133 | kprocess.cpp \ | 132 | kprocess.cpp \ |
134 | krun.cpp \ | 133 | krun.cpp \ |
135 | ksystemtray.cpp \ | 134 | ksystemtray.cpp \ |
136 | ktempfile.cpp \ | 135 | ktempfile.cpp \ |
137 | kurl.cpp \ | 136 | kurl.cpp \ |
138 | kdecore/kcatalogue.cpp \ | 137 | kdecore/kcatalogue.cpp \ |
139 | kdecore/klocale.cpp \ | 138 | kdecore/klocale.cpp \ |
140 | kdecore/kmdcodec.cpp \ | 139 | kdecore/kmdcodec.cpp \ |
141 | kdecore/kshell.cpp \ | 140 | kdecore/kshell.cpp \ |
142 | kdecore/kstandarddirs.cpp \ | 141 | kdecore/kstandarddirs.cpp \ |
143 | kdecore/kstringhandler.cpp \ | 142 | kdecore/kstringhandler.cpp \ |
144 | kdeui/kbuttonbox.cpp \ | 143 | kdeui/kbuttonbox.cpp \ |
145 | kdeui/kcmodule.cpp \ | 144 | kdeui/kcmodule.cpp \ |
146 | kdeui/kguiitem.cpp \ | 145 | kdeui/kguiitem.cpp \ |
147 | kdeui/kjanuswidget.cpp \ | 146 | kdeui/kjanuswidget.cpp \ |
148 | kdeui/klistbox.cpp \ | 147 | kdeui/klistbox.cpp \ |
149 | kdeui/klistview.cpp \ | 148 | kdeui/klistview.cpp \ |
150 | kdeui/knuminput.cpp \ | 149 | kdeui/knuminput.cpp \ |
151 | kdeui/knumvalidator.cpp \ | 150 | kdeui/knumvalidator.cpp \ |
152 | kdeui/kseparator.cpp \ | 151 | kdeui/kseparator.cpp \ |
153 | kdeui/ksqueezedtextlabel.cpp \ | 152 | kdeui/ksqueezedtextlabel.cpp \ |
154 | kio/kio/kdirwatch.cpp \ | 153 | kio/kio/kdirwatch.cpp \ |
155 | kio/kfile/kurlrequester.cpp \ | 154 | kio/kfile/kurlrequester.cpp \ |
156 | kresources/configpage.cpp \ | 155 | kresources/configpage.cpp \ |
157 | kresources/configdialog.cpp \ | 156 | kresources/configdialog.cpp \ |
158 | kresources/configwidget.cpp \ | 157 | kresources/configwidget.cpp \ |
159 | kresources/factory.cpp \ | 158 | kresources/factory.cpp \ |
160 | kresources/kcmkresources.cpp \ | 159 | kresources/kcmkresources.cpp \ |
161 | kresources/managerimpl.cpp \ | 160 | kresources/managerimpl.cpp \ |
162 | kresources/resource.cpp \ | 161 | kresources/resource.cpp \ |
163 | kresources/selectdialog.cpp \ | 162 | kresources/selectdialog.cpp \ |
164 | kresources/syncwidget.cpp \ | 163 | kresources/syncwidget.cpp \ |
165 | kutils/kcmultidialog.cpp \ | 164 | kutils/kcmultidialog.cpp \ |
166 | kdeui/kaction.cpp \ | 165 | kdeui/kaction.cpp \ |
167 | kdeui/kactionclasses.cpp \ | 166 | kdeui/kactionclasses.cpp \ |
168 | kdeui/kactioncollection.cpp \ | 167 | kdeui/kactioncollection.cpp \ |
169 | kdeui/kmainwindow.cpp \ | 168 | kdeui/kmainwindow.cpp \ |
170 | kdeui/ktoolbar.cpp \ | 169 | kdeui/ktoolbar.cpp \ |
171 | kdeui/ktoolbarbutton.cpp \ | 170 | kdeui/ktoolbarbutton.cpp \ |
172 | kdeui/ktoolbarhandler.cpp \ | 171 | kdeui/ktoolbarhandler.cpp \ |
173 | kdeui/kstdaction.cpp \ | 172 | kdeui/kstdaction.cpp \ |
174 | kdeui/kxmlguiclient.cpp \ | 173 | kdeui/kxmlguiclient.cpp \ |
175 | kdecore/kprefs.cpp \ | 174 | kdecore/kprefs.cpp \ |
176 | kdecore/klibloader.cpp \ | 175 | kdecore/klibloader.cpp \ |
177 | kidmanager.cpp | 176 | kidmanager.cpp |