|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Base operation class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef IPSPLGBASEOPERATION_H |
|
19 #define IPSPLGBASEOPERATION_H |
|
20 |
|
21 |
|
22 class CMsvOperation; |
|
23 /** |
|
24 * class CIpsPlgBaseOperation |
|
25 * |
|
26 * Common base class for email online operations. |
|
27 */ |
|
28 class CIpsPlgBaseOperation : public CMsvOperation |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * |
|
33 */ |
|
34 virtual ~CIpsPlgBaseOperation(); |
|
35 |
|
36 /** |
|
37 * |
|
38 */ |
|
39 virtual const TDesC8& ProgressL()=0; |
|
40 |
|
41 /** |
|
42 * For reporting if DoRunL leaves |
|
43 */ |
|
44 virtual const TDesC8& GetErrorProgressL(TInt aError) = 0; |
|
45 |
|
46 /** |
|
47 * |
|
48 */ |
|
49 virtual TFSProgress GetFSProgressL() const = 0; |
|
50 |
|
51 /** |
|
52 * |
|
53 */ |
|
54 TInt FSRequestId() const; |
|
55 |
|
56 /** |
|
57 * |
|
58 */ |
|
59 TFSMailMsgId FSMailboxId() const; |
|
60 |
|
61 /** |
|
62 * |
|
63 */ |
|
64 virtual TInt IpsOpType() const; |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * C++ constructor |
|
70 */ |
|
71 // Construction. |
|
72 CIpsPlgBaseOperation( |
|
73 CMsvSession& aMsvSession, |
|
74 TInt aPriority, |
|
75 TRequestStatus& aObserverRequestStatus, |
|
76 TInt aFSRequestId, |
|
77 TFSMailMsgId aFSMailboxId ); |
|
78 |
|
79 |
|
80 /** |
|
81 * From CActive |
|
82 */ |
|
83 virtual void DoCancel()=0; |
|
84 |
|
85 /** |
|
86 * From CActive |
|
87 */ |
|
88 virtual void RunL()=0; |
|
89 |
|
90 /** |
|
91 * From CActive |
|
92 */ |
|
93 virtual TInt RunError( TInt aError )=0; |
|
94 |
|
95 |
|
96 protected: |
|
97 |
|
98 TInt iFSRequestId; |
|
99 TFSMailMsgId iFSMailboxId; |
|
100 |
|
101 |
|
102 }; |
|
103 #endif//IPSPLGBASEOPERATION_H |