|
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 // |
|
15 |
|
16 #ifndef __CIMAPCOMPOUNDSELECT_H__ |
|
17 #define __CIMAPCOMPOUNDSELECT_H__ |
|
18 |
|
19 #include "cimapcompoundbase.h" |
|
20 #include <msvstd.h> |
|
21 |
|
22 // Forward declarations |
|
23 class CImapFolder; |
|
24 |
|
25 /** |
|
26 @internalTechnology |
|
27 @prototype |
|
28 */ |
|
29 class CImapCompoundSelect : public CImapCompoundBase |
|
30 { |
|
31 public: |
|
32 ~CImapCompoundSelect(); |
|
33 |
|
34 static CImapCompoundSelect* NewL(CImapSyncManager& aSyncManager, |
|
35 CMsvServerEntry& aServerEntry, |
|
36 CImapSettings& aImapSettings, |
|
37 TMsvId aFolderId); |
|
38 |
|
39 void StartSelectL(TRequestStatus& aStatus); |
|
40 virtual void StartOperation(TRequestStatus& aStatus, CImapSession& aSession); |
|
41 virtual void Progress(TImap4CompoundProgress& aCompoundProgress); |
|
42 |
|
43 // Support for Bearer Mobility |
|
44 virtual void ResumeOperationL(TRequestStatus& aStatus, CImapSession& aSession); |
|
45 |
|
46 private: |
|
47 CImapCompoundSelect(CImapSyncManager& aSyncManager, |
|
48 CMsvServerEntry& aServerEntry, |
|
49 CImapSettings& aImapSettings, |
|
50 TMsvId aFolderId); |
|
51 void ConstructL(); |
|
52 |
|
53 TBool DoRunLoopL(); |
|
54 void DoCancel(); |
|
55 |
|
56 virtual TInt ProcessNegativeServerResponse(); |
|
57 |
|
58 private: |
|
59 TMsvId iFolderId; |
|
60 CImapFolder* iImapFolder; // not owned!! |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // __CIMAPCOMPOUNDSELECT_H__ |