|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // imapopsyncsubs.h |
|
15 // CImapOpSyncSubs header |
|
16 // |
|
17 // |
|
18 |
|
19 #if !defined(__IMAPOPSYNCSUBS_H__) |
|
20 #define __IMAPOPSYNCSUBS_H__ |
|
21 |
|
22 #include <mentact.h> |
|
23 #include <msventry.h> |
|
24 #include "cimapsyncoperation.h" |
|
25 |
|
26 // Forward declarations |
|
27 class CImapSession; |
|
28 class CImapSyncManager; |
|
29 class CImapSettings; |
|
30 |
|
31 class CImapOpSyncSubs : public CImapSyncOperation |
|
32 /** |
|
33 @internalComponent |
|
34 @prototype |
|
35 */ |
|
36 { |
|
37 public: |
|
38 static CImapOpSyncSubs* NewL(CMsvServerEntry& aEntry, CImapSession& aSession, CImapSyncManager& aSyncMan,CImapSettings& aImapSettings); |
|
39 static CImapOpSyncSubs* NewLC(CMsvServerEntry& aEntry, CImapSession& aSession,CImapSyncManager& aSyncMan,CImapSettings& aImapSettings); |
|
40 void SynchroniseSubscriptionsL(TRequestStatus& aStatus); |
|
41 ~CImapOpSyncSubs(); |
|
42 |
|
43 private: |
|
44 CImapOpSyncSubs(CMsvServerEntry& aEntry, CImapSession& aSession, CImapSyncManager& aSyncMan,CImapSettings& aImapSettings); |
|
45 void ConstructL(); |
|
46 |
|
47 void SetEntryL(const TMsvId aId); |
|
48 void ChangeEntryL(const TMsvEntry& aEntry); |
|
49 void GetChildrenL(CMsvEntrySelection& aSelection); |
|
50 void ResetSubscriptionFlagsL(const TMsvId aFolder); |
|
51 |
|
52 void DoRunL(); |
|
53 void DoCancel(); |
|
54 void DoComplete(TInt& aStatus); |
|
55 void CompleteSelf(); |
|
56 private: |
|
57 TMsvId iServiceId; |
|
58 CImapSyncManager::TSynchroniseState iNextSyncAction; |
|
59 RArrayImapListFolderInfo iImapListFolderInfo; |
|
60 |
|
61 }; |
|
62 |
|
63 #endif // __IMAPOPSYNCSUBS_H__ |