author | Pat Downey <patd@symbian.org> |
Wed, 01 Sep 2010 12:28:57 +0100 | |
branch | RCL_3 |
changeset 64 | 3533d4323edc |
parent 63 | d189ee25cf9d |
permissions | -rw-r--r-- |
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: Disconnection operation class |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
#ifndef IPSPLGDISCONNECTOP_H |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#define IPSPLGDISCONNECTOP_H |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
|
64 | 21 |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
#include "ipsplgonlineoperation.h" |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
|
64 | 24 |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
/** |
64 | 26 |
* Disconnect operation. |
27 |
* |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
*/ |
64 | 29 |
class CIpsPlgDisconnectOp : |
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
public CIpsPlgOnlineOperation |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
{ |
64 | 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(); |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
|
64 | 52 |
/** |
53 |
* |
|
54 |
*/ |
|
55 |
const TDesC8& ProgressL(); |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
|
64 | 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; |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
|
64 | 72 |
protected: |
73 |
||
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
74 |
|
64 | 75 |
/** |
76 |
* From CActive |
|
77 |
*/ |
|
78 |
void DoRunL(); |
|
79 |
||
80 |
private: |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
81 |
|
64 | 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 ); |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
94 |
|
64 | 95 |
/** |
96 |
* |
|
97 |
*/ |
|
98 |
void ConstructL(); |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
99 |
|
64 | 100 |
/** |
101 |
* |
|
102 |
*/ |
|
103 |
void DoDisconnectL(); |
|
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
104 |
|
64 | 105 |
|
106 |
private: // Data |
|
107 |
||
108 |
TPckgBuf<TPop3Progress> iPopProgress; |
|
109 |
TPckgBuf<TImap4CompoundProgress> iImapProgress; |
|
110 |
TMsvEntry iTEntry; |
|
111 |
TBool iDisconnected; |
|
112 |
TBool iDoRemoveAfterDisconnect; |
|
113 |
||
0
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
114 |
}; |
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
115 |
|
8466d47a6819
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
116 |
#endif //IPSPLGDISCONNECTOP_H |