|
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: Login Request to the Network Server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "COSSProtocolLogoutRequest.h" |
|
20 #include <ximpprotocolconnectionhost.h> |
|
21 #include "mossprotocolconnectionmanager.h" |
|
22 #include "COSSProtocolConnection.h" |
|
23 #include "cossprotocolconnectionmanager.h" |
|
24 #include <ximpobjectfactory.h> |
|
25 |
|
26 |
|
27 |
|
28 // ======== MEMBER FUNCTIONS ======== |
|
29 |
|
30 // --------------------------------------------------------------------------- |
|
31 // COSSProtocolLogoutRequest::COSSProtocolLogoutRequest() |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 COSSProtocolLogoutRequest::COSSProtocolLogoutRequest ( |
|
35 MOSSProtocolConnectionManager& aConnMan, |
|
36 TXIMPRequestId aRequestId ) : |
|
37 CActive ( CActive::EPriorityStandard ), |
|
38 iRequestId ( aRequestId ), |
|
39 iConnMan ( aConnMan ) |
|
40 { |
|
41 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::COSSProtocolLogoutRequest Start" ) ); |
|
42 CActiveScheduler::Add ( this ); |
|
43 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::COSSProtocolLogoutRequest End" ) ); |
|
44 } |
|
45 |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // COSSProtocolLogoutRequest::ConstructL() |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 void COSSProtocolLogoutRequest::ConstructL() |
|
52 { |
|
53 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::COSSProtocolLogoutRequest Start-End" ) ); |
|
54 } |
|
55 |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // COSSProtocolLogoutRequest::NewL() |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 COSSProtocolLogoutRequest* COSSProtocolLogoutRequest::NewL ( |
|
62 MOSSProtocolConnectionManager& aConnMan, |
|
63 TXIMPRequestId aRequestId ) |
|
64 { |
|
65 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::NewL Start" ) ); |
|
66 |
|
67 COSSProtocolLogoutRequest* self = |
|
68 new ( ELeave ) COSSProtocolLogoutRequest ( aConnMan, aRequestId ); |
|
69 CleanupStack::PushL ( self ); |
|
70 self->ConstructL(); |
|
71 CleanupStack::Pop ( self ); |
|
72 |
|
73 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::NewL End" ) ); |
|
74 return self; |
|
75 } |
|
76 |
|
77 |
|
78 // --------------------------------------------------------------------------- |
|
79 // COSSProtocolLogoutRequest::NewLC() |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 COSSProtocolLogoutRequest* COSSProtocolLogoutRequest::NewLC ( |
|
83 MOSSProtocolConnectionManager& aConnMan, |
|
84 TXIMPRequestId aRequestId ) |
|
85 { |
|
86 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::NewLC Start" ) ); |
|
87 |
|
88 COSSProtocolLogoutRequest* self = |
|
89 COSSProtocolLogoutRequest::NewL ( aConnMan, aRequestId ); |
|
90 CleanupStack::PushL ( self ); |
|
91 |
|
92 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::NewLC End" ) ); |
|
93 return self; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // COSSProtocolLogoutRequest::~COSSProtocolLogoutRequest() |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 COSSProtocolLogoutRequest::~COSSProtocolLogoutRequest() |
|
101 { |
|
102 //LOGGER ( TXT ( "::~COSSProtocolLogoutRequest Start" ) ); |
|
103 Cancel(); |
|
104 } |
|
105 |
|
106 |
|
107 // --------------------------------------------------------------------------- |
|
108 // COSSProtocolLogoutRequest::DoCancel() |
|
109 // --------------------------------------------------------------------------- |
|
110 // |
|
111 void COSSProtocolLogoutRequest::DoCancel() |
|
112 { |
|
113 } |
|
114 |
|
115 |
|
116 // --------------------------------------------------------------------------- |
|
117 // COSSProtocolLogoutRequest::RunL() |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 void COSSProtocolLogoutRequest::RunL() |
|
121 { |
|
122 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::RunL Start" ) ); |
|
123 |
|
124 iConnMan.HandleToHost().HandleRequestCompleted ( iRequestId, KErrNone ); |
|
125 |
|
126 |
|
127 delete this; |
|
128 |
|
129 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::RunL End" ) ); |
|
130 } |
|
131 |
|
132 |
|
133 // --------------------------------------------------------------------------- |
|
134 // COSSProtocolLogoutRequest::RunError() |
|
135 // --------------------------------------------------------------------------- |
|
136 // |
|
137 TInt COSSProtocolLogoutRequest::RunError ( TInt aError ) |
|
138 { |
|
139 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::RunError Start" ) ); |
|
140 |
|
141 iConnMan.HandleToHost().HandleRequestCompleted ( iRequestId, aError ); |
|
142 |
|
143 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::RunError - id: %d" ), aError ); |
|
144 |
|
145 delete this; |
|
146 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::RunError End" ) ); |
|
147 return KErrNone; |
|
148 } |
|
149 |
|
150 |
|
151 // --------------------------------------------------------------------------- |
|
152 // COSSProtocolLogoutRequest::IssueLogoutRequestL() |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 void COSSProtocolLogoutRequest::IssueLogoutRequestL() |
|
156 { |
|
157 //LOGGER ( TXT ( "COSSProtocolLogoutRequest::IssueLogoutRequestL Start" ) ); |
|
158 |
|
159 //LOGGER ( TXT ( "COSSProtocolConnection::IssueLogoutRequestL() End" ) ); |
|
160 } |
|
161 |
|
162 |
|
163 // End of file |