|
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: Disconnection operation class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef IPSPLGDISCONNECTOP_H |
|
19 #define IPSPLGDISCONNECTOP_H |
|
20 |
|
21 |
|
22 #include "ipsplgonlineoperation.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * Disconnect operation. |
|
27 * |
|
28 */ |
|
29 class CIpsPlgDisconnectOp : |
|
30 public CIpsPlgOnlineOperation |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * |
|
36 */ |
|
37 static CIpsPlgDisconnectOp* NewL( |
|
38 CMsvSession& aMsvSession, |
|
39 TRequestStatus& aObserverRequestStatus, |
|
40 TMsvId aService, |
|
41 CIpsPlgTimerOperation& aActivityTimer, |
|
42 TFSMailMsgId aFSMailBoxId, |
|
43 MFSMailRequestObserver& aFSOperationObserver, |
|
44 TInt aFSRequestId, |
|
45 TBool aDoRemoveAfterDisconnect = EFalse ); |
|
46 |
|
47 /** |
|
48 * |
|
49 */ |
|
50 virtual ~CIpsPlgDisconnectOp(); |
|
51 |
|
52 /** |
|
53 * |
|
54 */ |
|
55 const TDesC8& ProgressL(); |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 const TDesC8& GetErrorProgressL( TInt aError ); |
|
61 |
|
62 /** |
|
63 * |
|
64 */ |
|
65 TFSProgress GetFSProgressL() const; |
|
66 |
|
67 /** |
|
68 * |
|
69 */ |
|
70 TBool Connected() const; |
|
71 |
|
72 protected: |
|
73 |
|
74 |
|
75 /** |
|
76 * From CActive |
|
77 */ |
|
78 void DoRunL(); |
|
79 |
|
80 private: |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 CIpsPlgDisconnectOp( |
|
86 CMsvSession& aMsvSession, |
|
87 TRequestStatus& aObserverRequestStatus, |
|
88 TMsvId aServiceId, |
|
89 CIpsPlgTimerOperation& aActivityTimer, |
|
90 TFSMailMsgId aFSMailBoxId, |
|
91 MFSMailRequestObserver& aFSOperationObserver, |
|
92 TInt aFSRequestId, |
|
93 TBool aDoRemoveAfterDisconnect ); |
|
94 |
|
95 /** |
|
96 * |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 /** |
|
101 * |
|
102 */ |
|
103 void DoDisconnectL(); |
|
104 |
|
105 |
|
106 private: // Data |
|
107 |
|
108 TPckgBuf<TPop3Progress> iPopProgress; |
|
109 TPckgBuf<TImap4CompoundProgress> iImapProgress; |
|
110 TMsvEntry iTEntry; |
|
111 TBool iDisconnected; |
|
112 TBool iDoRemoveAfterDisconnect; |
|
113 |
|
114 }; |
|
115 |
|
116 #endif //IPSPLGDISCONNECTOP_H |