|
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: Logout Request to the Network Server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __COSSPROTOCOLLOGOUTREQUEST_H_ |
|
21 #define __COSSPROTOCOLLOGOUTREQUEST_H_ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <ximpbase.h> |
|
27 #include "ossprotocolpluginlogger.h" |
|
28 #include "ossprotocloliterals.h" |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 class MOSSProtocolConnectionManager; |
|
32 |
|
33 class COSSProtocolConnectionManager; |
|
34 |
|
35 |
|
36 /** |
|
37 * COSSProtocolLogoutRequest |
|
38 * |
|
39 * Issue Logout Request to the Network Server |
|
40 * |
|
41 */ |
|
42 NONSHARABLE_CLASS ( COSSProtocolLogoutRequest ) : public CActive |
|
43 |
|
44 |
|
45 { |
|
46 |
|
47 public: |
|
48 |
|
49 static COSSProtocolLogoutRequest* NewLC ( MOSSProtocolConnectionManager& aConnMan, |
|
50 TXIMPRequestId aRequestId ); |
|
51 static COSSProtocolLogoutRequest* NewL ( MOSSProtocolConnectionManager& aConnMan, |
|
52 TXIMPRequestId aRequestId ); |
|
53 virtual ~COSSProtocolLogoutRequest(); |
|
54 |
|
55 |
|
56 private: |
|
57 |
|
58 COSSProtocolLogoutRequest ( MOSSProtocolConnectionManager& aConnMan, |
|
59 TXIMPRequestId aRequestId ); |
|
60 void ConstructL(); |
|
61 |
|
62 |
|
63 private: // from CActive |
|
64 |
|
65 void DoCancel(); |
|
66 /* |
|
67 * RunL() function also deletes the request object once the activity is done |
|
68 * |
|
69 */ |
|
70 void RunL(); |
|
71 TInt RunError ( TInt aError ); |
|
72 |
|
73 public: |
|
74 /** |
|
75 * Issue logout request to the isolation server |
|
76 */ |
|
77 void IssueLogoutRequestL(); |
|
78 |
|
79 |
|
80 private: // data |
|
81 |
|
82 /** |
|
83 * Request Id |
|
84 * OWN |
|
85 */ |
|
86 TXIMPRequestId iRequestId; |
|
87 /** |
|
88 * OSS Protocol Plugin Connection Manager |
|
89 * Not own. |
|
90 */ |
|
91 MOSSProtocolConnectionManager& iConnMan; |
|
92 |
|
93 /** |
|
94 * Send data request to pure data handler generates the id |
|
95 */ |
|
96 TInt iSendId; |
|
97 |
|
98 }; |
|
99 |
|
100 |
|
101 #endif // __COSSPROTOCOLLOGOUTREQUEST_H_ |
|
102 |