|
1 /* |
|
2 * Copyright (c) 2006 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 * Class declaration file |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __SMTPPRECREATIONOPBASE_H__ |
|
20 #define __SMTPPRECREATIONOPBASE_H__ |
|
21 |
|
22 #include "ImumOnlineOperation.h" |
|
23 #include "SelectionOperationBase.h" |
|
24 #include <smtpset.h> |
|
25 |
|
26 // |
|
27 class CMsvEmailConnectionProgressProvider; |
|
28 class CMtmStore; |
|
29 class CEmailPreCreation; |
|
30 |
|
31 |
|
32 /** |
|
33 * CSmtpPreCreationOpBase |
|
34 */ |
|
35 class CSmtpPreCreationOpBase : public CMsvOperation |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * |
|
40 */ |
|
41 virtual ~CSmtpPreCreationOpBase(); |
|
42 |
|
43 /** |
|
44 * |
|
45 */ |
|
46 virtual const TDesC8& ProgressL(); |
|
47 |
|
48 protected: |
|
49 |
|
50 /** |
|
51 * From CActive |
|
52 */ |
|
53 virtual void DoCancel(); |
|
54 |
|
55 /** |
|
56 * |
|
57 */ |
|
58 void CompleteObserver(); |
|
59 |
|
60 /** |
|
61 * |
|
62 */ |
|
63 void CompleteThis(); |
|
64 |
|
65 protected: |
|
66 |
|
67 /** |
|
68 * |
|
69 */ |
|
70 CSmtpPreCreationOpBase( |
|
71 CMsvSession& aMsvSession, |
|
72 TInt aPriority, |
|
73 TRequestStatus& aObserverRequestStatus); |
|
74 |
|
75 /** |
|
76 * |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 protected: // Data |
|
81 CEmailPreCreation* iPreCreate; |
|
82 CMtmStore* iMtmStore; |
|
83 CMsvOperation* iOperation; |
|
84 TPckgBuf<TMsvLocalOperationProgress> iProgress; |
|
85 // Owned: Pointer to Email API. The operation can exist, even if |
|
86 // the smtp mtm ui doesn't, so own instance of API is needed |
|
87 CImumInternalApi* iMailboxApi; |
|
88 }; |
|
89 |
|
90 |
|
91 #endif |