View | Details | Raw Unified | Return to bug 173719
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 6-12 Link Here
6
6
7
PORTNAME=	kdepim
7
PORTNAME=	kdepim
8
PORTVERSION=	4.4.11.1
8
PORTVERSION=	4.4.11.1
9
PORTREVISION=	3
9
PORTREVISION=	4
10
CATEGORIES=	deskutils kde ipv6
10
CATEGORIES=	deskutils kde ipv6
11
MASTER_SITES=	${MASTER_SITE_KDE}
11
MASTER_SITES=	${MASTER_SITE_KDE}
12
MASTER_SITE_SUBDIR=	stable/kdepim-${PORTVERSION}/src
12
MASTER_SITE_SUBDIR=	stable/kdepim-${PORTVERSION}/src
(-)files/patch-clang (+418 lines)
Line 0 Link Here
1
--- ./kmail/accountmanager.cpp.orig	2012-05-27 10:22:58.000000000 +0200
2
+++ ./kmail/accountmanager.cpp	2012-05-27 10:26:46.000000000 +0200
3
@@ -22,10 +22,8 @@
4
 #include <krandom.h>
5
 #include <kconfiggroup.h>
6
 
7
-using namespace KMail;
8
-
9
 //-----------------------------------------------------------------------------
10
-AccountManager::AccountManager()
11
+KMail::AccountManager::AccountManager()
12
     :QObject(), mNewMailArrived( false ), mInteractive( false ),
13
      mTotalNewMailsArrived( 0 ), mDisplaySummary( false )
14
 {
15
@@ -34,19 +32,21 @@
16
 }
17
 
18
 //-----------------------------------------------------------------------------
19
-AccountManager::~AccountManager()
20
+KMail::AccountManager::~AccountManager()
21
 {
22
   qDeleteAll(mAcctList);
23
 }
24
 
25
 //-----------------------------------------------------------------------------
26
-QStringList AccountManager::accountGroups() const
27
+QStringList
28
+KMail::AccountManager::accountGroups() const
29
 {
30
   return KMKernel::config()->groupList().filter( QRegExp( "Account \\d+" ) );
31
 }
32
 
33
 //-----------------------------------------------------------------------------
34
-void AccountManager::writeConfig( bool withSync )
35
+void
36
+KMail::AccountManager::writeConfig( bool withSync )
37
 {
38
   KSharedConfig::Ptr config = KMKernel::config();
39
 
40
@@ -78,7 +78,8 @@
41
 
42
 
43
 //-----------------------------------------------------------------------------
44
-void AccountManager::readConfig(void)
45
+void
46
+KMail::AccountManager::readConfig(void)
47
 {
48
   // Delete all in-memory accounts
49
   for ( AccountList::Iterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it )
50
@@ -134,7 +135,8 @@
51
 
52
 
53
 //-----------------------------------------------------------------------------
54
-void AccountManager::singleCheckMail(KMAccount *account, bool interactive)
55
+void
56
+KMail::AccountManager::singleCheckMail(KMAccount *account, bool interactive)
57
 {
58
   mNewMailArrived = false;
59
   mInteractive = interactive;
60
@@ -158,7 +160,8 @@
61
 }
62
 
63
 //-----------------------------------------------------------------------------
64
-void AccountManager::processNextCheck( bool _newMail )
65
+void
66
+KMail::AccountManager::processNextCheck( bool _newMail )
67
 {
68
   kDebug() << "processNextCheck, remaining" << mAcctTodo.count();
69
   if ( _newMail )
70
@@ -232,7 +235,8 @@
71
 }
72
 
73
 //-----------------------------------------------------------------------------
74
-KMAccount* AccountManager::create( const KAccount::Type aType,
75
+KMAccount*
76
+KMail::AccountManager::create( const KAccount::Type aType,
77
                                    const QString &aName, uint id )
78
 {
79
   KMAccount* act = 0;
80
@@ -265,7 +269,8 @@
81
 
82
 
83
 //-----------------------------------------------------------------------------
84
-void AccountManager::add( KMAccount *account )
85
+void
86
+KMail::AccountManager::add( KMAccount *account )
87
 {
88
   if ( account ) {
89
     mAcctList.append( account );
90
@@ -290,7 +295,8 @@
91
 
92
 
93
 //-----------------------------------------------------------------------------
94
-KMAccount* AccountManager::findByName(const QString &aName) const
95
+KMAccount*
96
+KMail::AccountManager::findByName(const QString &aName) const
97
 {
98
   if ( aName.isEmpty() ) return 0;
99
 
100
@@ -302,7 +308,8 @@
101
 
102
 
103
 //-----------------------------------------------------------------------------
104
-KMAccount* AccountManager::find( const uint id ) const
105
+KMAccount*
106
+KMail::AccountManager::find( const uint id ) const
107
 {
108
   if (id == 0) return 0;
109
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
110
@@ -312,19 +319,22 @@
111
 }
112
 
113
 //-----------------------------------------------------------------------------
114
-QList<KMAccount*>::iterator AccountManager::begin()
115
+QList<KMAccount*>::iterator
116
+KMail::AccountManager::begin()
117
 {
118
   return mAcctList.begin();
119
 }
120
 
121
 //-----------------------------------------------------------------------------
122
-QList<KMAccount*>::iterator AccountManager::end()
123
+QList<KMAccount*>::iterator
124
+KMail::AccountManager::end()
125
 {
126
   return mAcctList.end();
127
 }
128
 
129
 //-----------------------------------------------------------------------------
130
-bool AccountManager::remove( KMAccount* acct )
131
+bool
132
+KMail::AccountManager::remove( KMAccount* acct )
133
 {
134
   if( !acct )
135
     return false;
136
@@ -334,7 +344,8 @@
137
 }
138
 
139
 //-----------------------------------------------------------------------------
140
-void AccountManager::checkMail( bool _interactive )
141
+void
142
+KMail::AccountManager::checkMail( bool _interactive )
143
 {
144
   mNewMailArrived = false;
145
 
146
@@ -356,12 +367,14 @@
147
 
148
 
149
 //-----------------------------------------------------------------------------
150
-void AccountManager::singleInvalidateIMAPFolders(KMAccount *account) {
151
+void
152
+KMail::AccountManager::singleInvalidateIMAPFolders(KMAccount *account) {
153
   account->invalidateIMAPFolders();
154
 }
155
 
156
 
157
-void AccountManager::invalidateIMAPFolders()
158
+void
159
+KMail::AccountManager::invalidateIMAPFolders()
160
 {
161
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it )
162
     singleInvalidateIMAPFolders( *it );
163
@@ -369,7 +382,8 @@
164
 
165
 
166
 //-----------------------------------------------------------------------------
167
-QStringList  AccountManager::getAccounts() const
168
+QStringList
169
+KMail::AccountManager::getAccounts() const
170
 {
171
   QStringList strList;
172
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
173
@@ -379,7 +393,8 @@
174
 }
175
 
176
 //-----------------------------------------------------------------------------
177
-void AccountManager::intCheckMail(int item, bool _interactive)
178
+void
179
+KMail::AccountManager::intCheckMail(int item, bool _interactive)
180
 {
181
   mNewMailArrived = false;
182
   mTotalNewMailsArrived = 0;
183
@@ -391,7 +406,8 @@
184
 
185
 
186
 //-----------------------------------------------------------------------------
187
-void AccountManager::addToTotalNewMailCount( const QMap<QString, int> & newInFolder )
188
+void
189
+KMail::AccountManager::addToTotalNewMailCount( const QMap<QString, int> & newInFolder )
190
 {
191
   for ( QMap<QString, int>::const_iterator it = newInFolder.begin();
192
         it != newInFolder.end(); ++it ) {
193
@@ -404,7 +420,8 @@
194
 }
195
 
196
 //-----------------------------------------------------------------------------
197
-uint AccountManager::createId()
198
+uint
199
+KMail::AccountManager::createId()
200
 {
201
   QList<uint> usedIds;
202
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
203
@@ -422,7 +439,8 @@
204
 }
205
 
206
 //-----------------------------------------------------------------------------
207
-void AccountManager::cancelMailCheck()
208
+void
209
+KMail::AccountManager::cancelMailCheck()
210
 {
211
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
212
     (*it)->cancelMailCheck();
213
@@ -431,7 +449,8 @@
214
 
215
 
216
 //-----------------------------------------------------------------------------
217
-void AccountManager::readPasswords()
218
+void
219
+KMail::AccountManager::readPasswords()
220
 {
221
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
222
     NetworkAccount *acct = dynamic_cast<NetworkAccount*>( (*it) );
223
@@ -441,7 +460,8 @@
224
 }
225
 
226
 //-----------------------------------------------------------------------------
227
-bool AccountManager::isUnique( const QString &aName ) const
228
+bool
229
+KMail::AccountManager::isUnique( const QString &aName ) const
230
 {
231
   for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
232
     if ( (*it)->name() == aName ) return false;
233
@@ -450,7 +470,8 @@
234
 }
235
 
236
 //-----------------------------------------------------------------------------
237
-QString AccountManager::makeUnique( const QString &name ) const
238
+QString
239
+KMail::AccountManager::makeUnique( const QString &name ) const
240
 {
241
   int suffix = 1;
242
   QString result = name;
243
--- ./kmail/accountwizard.cpp.orig	2012-05-27 10:40:25.000000000 +0200
244
+++ ./kmail/accountwizard.cpp	2012-05-27 10:41:35.000000000 +0200
245
@@ -416,7 +416,7 @@
246
     name[ 0 ] = name[ 0 ].toUpper();
247
   }
248
 
249
-  AccountManager *manager = mKernel->acctMgr();
250
+  KMail::AccountManager *manager = mKernel->acctMgr();
251
   if ( !manager->isUnique( name ) ) {
252
     name = manager->makeUnique( name );
253
   }
254
@@ -523,7 +523,7 @@
255
 void AccountWizard::createAccount()
256
 {
257
   // create incoming account
258
-  AccountManager *acctManager = mKernel->acctMgr();
259
+  KMail::AccountManager *acctManager = mKernel->acctMgr();
260
 
261
   switch ( mTypeBox->type() ) {
262
     case AccountTypeBox::Local:
263
--- ./kmail/kmacctcachedimap.h.orig	2012-05-27 10:10:49.000000000 +0200
264
+++ ./kmail/kmacctcachedimap.h	2012-05-27 10:12:06.000000000 +0200
265
@@ -194,8 +194,8 @@
266
   bool sentCustomLoginCommand() const { return mSentCustomLoginCommand; }
267
 
268
 protected:
269
-  friend class ::AccountManager;
270
-  KMAcctCachedImap(AccountManager* owner, const QString& accountName, uint id);
271
+  friend class KMail::AccountManager;
272
+  KMAcctCachedImap(KMail::AccountManager* owner, const QString& accountName, uint id);
273
 
274
 protected slots:
275
   /** new-mail-notification for the current folder (is called via folderComplete) */
276
--- ./kmail/kmaccount.cpp.orig	2012-05-27 10:15:32.000000000 +0200
277
+++ ./kmail/kmaccount.cpp	2012-05-27 10:18:19.000000000 +0200
278
@@ -90,7 +90,7 @@
279
 
280
 
281
 //-----------------------------------------------------------------------------
282
-KMAccount::KMAccount(AccountManager* aOwner, const QString& aName, uint id)
283
+KMAccount::KMAccount(KMail::AccountManager* aOwner, const QString& aName, uint id)
284
   : KAccount( id, aName ),
285
     mTrash(KMKernel::self()->trashFolder()->idString()),
286
     mOwner(aOwner),
287
@@ -440,11 +440,13 @@
288
 //-----------------------------------------------------------------------------
289
 void KMAccount::mailCheck()
290
 {
291
+  KMail::AccountManager *acctmgr;
292
+
293
   if (mTimer)
294
     mTimer->stop();
295
 
296
   if ( kmkernel ) {
297
-    AccountManager *acctmgr = kmkernel->acctMgr();
298
+    acctmgr = kmkernel->acctMgr();
299
     if ( acctmgr ) {
300
       acctmgr->singleCheckMail( this, false );
301
     }
302
--- ./kmail/kmacctcachedimap.cpp.orig	2012-05-27 10:30:11.000000000 +0200
303
+++ ./kmail/kmacctcachedimap.cpp	2012-05-27 10:30:33.000000000 +0200
304
@@ -49,7 +49,7 @@
305
 
306
 #include <QList>
307
 
308
-KMAcctCachedImap::KMAcctCachedImap( AccountManager* aOwner,
309
+KMAcctCachedImap::KMAcctCachedImap( KMail::AccountManager* aOwner,
310
 				    const QString& aAccountName, uint id )
311
   : KMail::ImapAccountBase( aOwner, aAccountName, id ), mFolder( 0 ),
312
     mAnnotationCheckPassed(false),
313
--- ./kmail/kmacctimap.h.orig	2012-05-27 10:13:07.000000000 +0200
314
+++ ./kmail/kmacctimap.h	2012-05-27 10:14:12.000000000 +0200
315
@@ -101,8 +101,8 @@
316
   void slotUpdateFolderList();
317
 
318
 protected:
319
-  friend class ::AccountManager;
320
-  KMAcctImap(AccountManager* owner, const QString& accountName, uint id);
321
+  friend class KMail::AccountManager;
322
+  KMAcctImap(KMail::AccountManager* owner, const QString& accountName, uint id);
323
   /**
324
    * Handle an error coming from a KIO job
325
    * See ImapAccountBase::handleJobError for details.
326
--- ./kmail/kmacctimap.cpp.orig	2012-05-27 10:28:47.000000000 +0200
327
+++ ./kmail/kmacctimap.cpp	2012-05-27 10:29:37.000000000 +0200
328
@@ -54,7 +54,7 @@
329
 #include <errno.h>
330
 
331
 //-----------------------------------------------------------------------------
332
-KMAcctImap::KMAcctImap(AccountManager* aOwner, const QString& aAccountName, uint id):
333
+KMAcctImap::KMAcctImap(KMail::AccountManager* aOwner, const QString& aAccountName, uint id):
334
   KMail::ImapAccountBase(aOwner, aAccountName, id),
335
   mCountRemainChecks( 0 )
336
 {
337
--- ./kmail/kmacctlocal.h.orig	2012-05-27 10:36:43.000000000 +0200
338
+++ ./kmail/kmacctlocal.h	2012-05-27 10:37:02.000000000 +0200
339
@@ -10,9 +10,9 @@
340
 class KMAcctLocal: public KMAccount
341
 {
342
 protected:
343
-  friend class ::AccountManager;
344
+  friend class KMail::AccountManager;
345
 
346
-  KMAcctLocal(AccountManager* owner, const QString& accountName, uint id);
347
+  KMAcctLocal(KMail::AccountManager* owner, const QString& accountName, uint id);
348
 
349
 public:
350
   virtual ~KMAcctLocal();
351
--- ./kmail/kmacctmaildir.h.orig	2012-05-27 10:34:36.000000000 +0200
352
+++ ./kmail/kmacctmaildir.h	2012-05-27 10:35:32.000000000 +0200
353
@@ -10,9 +10,9 @@
354
 class KMAcctMaildir: public KMAccount
355
 {
356
 protected:
357
-  friend class ::AccountManager;
358
+  friend class KMail::AccountManager;
359
 
360
-  KMAcctMaildir(AccountManager* owner, const QString& accountName, uint id);
361
+  KMAcctMaildir(KMail::AccountManager* owner, const QString& accountName, uint id);
362
 
363
 public:
364
   virtual ~KMAcctMaildir();
365
--- ./kmail/kmkernel.cpp.orig	2012-05-27 10:31:17.000000000 +0200
366
+++ ./kmail/kmkernel.cpp	2012-05-27 10:33:02.000000000 +0200
367
@@ -914,7 +914,7 @@
368
           mAddMsgCurrentFolder->unGetMsg( index );
369
           retval = 1;
370
         } else {
371
-          retval =- 2;
372
+          retval = -2;
373
           delete msg;
374
           msg = 0;
375
         }
376
@@ -1018,7 +1018,7 @@
377
         mAddMsgCurrentFolder->unGetMsg( index );
378
         retval = 1;
379
       } else {
380
-        retval =- 2;
381
+        retval = -2;
382
         delete msg;
383
         msg = 0;
384
       }
385
@@ -1533,7 +1533,7 @@
386
   if (lsf)
387
     the_searchFolderMgr->remove( lsf );
388
 
389
-  the_acctMgr       = new AccountManager();
390
+  the_acctMgr       = new KMail::AccountManager();
391
   the_filterMgr     = new KMFilterMgr();
392
   the_popFilterMgr     = new KMFilterMgr(true);
393
   the_filterActionDict = new KMFilterActionDict;
394
--- ./kmail/popaccount.h.orig	2012-05-27 10:18:58.000000000 +0200
395
+++ ./kmail/popaccount.h	2012-05-27 10:19:33.000000000 +0200
396
@@ -103,8 +103,8 @@
397
 
398
 private:
399
   enum Stage { Idle, List, Uidl, Head, Retr, Dele, Quit };
400
-  friend class ::AccountManager;
401
-  PopAccount(AccountManager* owner, const QString& accountName, uint id);
402
+  friend class KMail::AccountManager;
403
+  PopAccount(KMail::AccountManager* owner, const QString& accountName, uint id);
404
 
405
   /**
406
    * Start a KIO Job to get a list of messages on the pop server
407
--- ./libkleo/backends/qgpgme/threadedjobmixin.h.orig	2012-05-27 09:48:29.000000000 +0200
408
+++ ./libkleo/backends/qgpgme/threadedjobmixin.h	2012-05-27 09:51:03.000000000 +0200
409
@@ -143,7 +143,7 @@
410
 
411
     void lateInitialization() {
412
       assert( m_ctx );
413
-      connect( &m_thread, SIGNAL(finished()), this, SLOT(slotFinished()) );
414
+      T_base::connect( &m_thread, SIGNAL(finished()), this, SLOT(slotFinished()) );
415
       m_ctx->setProgressProvider( this );
416
     }
417
 
418

Return to bug 173719