|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Populates imap4 folders using current populate settings. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __ALWAYSONLINEIMAP4FOLDERPOPULATE_H__ |
|
20 #define __ALWAYSONLINEIMAP4FOLDERPOPULATE_H__ |
|
21 |
|
22 #include <msvapi.h> // CMsvOperation |
|
23 #include <imapset.h> // TImImap4GetPartialMailInfo |
|
24 |
|
25 class CImap4ClientMtm; |
|
26 class TImImap4GetPartialMailInfo; |
|
27 |
|
28 /** |
|
29 * CAlwaysOnlineImap4FolderPopulate |
|
30 * |
|
31 * |
|
32 */ |
|
33 class CAlwaysOnlineImap4FolderPopulate : |
|
34 public CMsvOperation |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * |
|
39 */ |
|
40 static CAlwaysOnlineImap4FolderPopulate* NewL( |
|
41 CMsvSession& aMsvSession, |
|
42 CImap4ClientMtm& aImap4ClientMtm, |
|
43 TMsvId aServiceId, |
|
44 TMsvId aInboxId, |
|
45 TImImap4GetPartialMailInfo& aPartialInfo, |
|
46 const CMsvEntrySelection* aSelection, // folder ids |
|
47 TRequestStatus& aObserverRequestStatus ); |
|
48 |
|
49 private: |
|
50 /** |
|
51 * |
|
52 */ |
|
53 CAlwaysOnlineImap4FolderPopulate( |
|
54 CMsvSession& aMsvSession, |
|
55 CImap4ClientMtm& aImap4ClientMtm, |
|
56 TMsvId aServiceId, |
|
57 TMsvId aInboxId, |
|
58 TImImap4GetPartialMailInfo& aPartialInfo, |
|
59 TRequestStatus& aObserverRequestStatus ); |
|
60 public: |
|
61 /** |
|
62 * |
|
63 */ |
|
64 virtual ~CAlwaysOnlineImap4FolderPopulate(); |
|
65 |
|
66 public: |
|
67 /** |
|
68 * From CMsvOperation |
|
69 */ |
|
70 const TDesC8& ProgressL(); |
|
71 |
|
72 |
|
73 private: |
|
74 /** |
|
75 * Constructor. |
|
76 */ |
|
77 void ConstructL( const CMsvEntrySelection* aSelection ); |
|
78 /** |
|
79 * From CActive |
|
80 */ |
|
81 void DoCancel(); |
|
82 /** |
|
83 * From CActive |
|
84 */ |
|
85 void RunL(); |
|
86 |
|
87 /** |
|
88 * |
|
89 */ |
|
90 void StartNextFolderPopulateOperation(); |
|
91 |
|
92 /** |
|
93 * |
|
94 */ |
|
95 void DoNewFolderPopulateOperationL(); |
|
96 |
|
97 /** |
|
98 * |
|
99 */ |
|
100 void SelectInbox(); |
|
101 void DoSelectInboxL(); |
|
102 |
|
103 TBool HasFolderNewMailL( TMsvId aFolderId ); |
|
104 |
|
105 |
|
106 private: |
|
107 CMsvOperation* iOperation; |
|
108 TMsvId iServiceId; |
|
109 CMsvEntrySelection* iFolderSelection; |
|
110 TImImap4GetPartialMailInfo iPartialInfo; |
|
111 CImap4ClientMtm& iImap4ClientMtm; |
|
112 |
|
113 TMsvId iInboxId; |
|
114 |
|
115 }; |
|
116 |
|
117 |
|
118 |
|
119 #endif |
|
120 //EOF |