author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:33:21 +0100 | |
branch | GCC_SURGE |
changeset 51 | f39ed5e045e0 |
parent 21 | 92ab7f8d0eab |
parent 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2002-2007 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: This file contains the header file of the CPEParserSSHandler |
|
15 |
* object |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
||
21 |
#ifndef CPEPARSERSSHANDLER_H |
|
22 |
#define CPEPARSERSSHANDLER_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <cphonegsmsshandler.h> |
|
26 |
#include <pevirtualengine.h> |
|
27 |
#include <nwdefs.h> |
|
28 |
#include <mpsetrequestobs.h> |
|
29 |
||
30 |
// FORWARD DECLARATIONS |
|
31 |
class CPEMessageHandler; |
|
32 |
class CPsetContainer; |
|
33 |
class CPsetCallWaiting; |
|
34 |
class CPsetCallBarring; |
|
35 |
class CPsetCallDiverting; |
|
36 |
class CPsetCli; |
|
37 |
class CPsuiContainer; |
|
38 |
class CPsuiWaitingObs; |
|
39 |
class CPsuiBarringObs; |
|
40 |
class CPsuiDivertObs; |
|
41 |
class CPsuiCliObserver; |
|
42 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
43 |
class PSetCallDivertingWrapper; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
44 |
class PSetCallWaitingWrapper; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
45 |
class PSetWrapper; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
46 |
class PsUiDivertNoteHandler; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
47 |
class PsUiWaitingNoteHandler; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
48 |
|
37 | 49 |
// CLASS DECLARATION |
50 |
||
51 |
/** |
|
52 |
* Handles phone related messages from the MPEPhoneModelInternal object. |
|
53 |
* |
|
54 |
* @lib phoneenginegsm |
|
55 |
* @since Series60 4.0 |
|
56 |
*/ |
|
57 |
NONSHARABLE_CLASS( CPEParserSSHandler ) : public CPhoneGsmSsHandler, |
|
58 |
public MPsetRequestObserver |
|
59 |
{ |
|
60 |
public: // Constructors and destructor |
|
61 |
||
62 |
/** |
|
63 |
* Two-phased constructor. |
|
64 |
*/ |
|
65 |
static CPEParserSSHandler* NewL |
|
66 |
( |
|
67 |
CPEMessageHandler& aOwner, |
|
68 |
MPEPhoneModelInternal& aModel |
|
69 |
); |
|
70 |
||
71 |
/** |
|
72 |
* Destructor. |
|
73 |
*/ |
|
74 |
virtual ~CPEParserSSHandler(); |
|
75 |
||
76 |
public: // New functions |
|
77 |
||
78 |
/** |
|
79 |
* Returns RMobilePhone::TMobileService type of basic service code. |
|
80 |
* |
|
81 |
* @param aBasicCode It is basic service code. |
|
82 |
* @return basic service code. |
|
83 |
*/ |
|
84 |
RMobilePhone::TMobileService BasicService( const TDesC& aBasicCode ); |
|
85 |
||
86 |
/** |
|
87 |
* changes parameter to basic service code |
|
88 |
*/ |
|
89 |
TBasicServiceGroups ChangeToBsc( const TDesC& aBasicCode ); |
|
90 |
||
91 |
public: // Functions from base classes |
|
92 |
||
93 |
/** |
|
94 |
* Cancel SS string command. Method cancel command from Settings utility |
|
95 |
* subsytem or security module. |
|
96 |
* |
|
97 |
* @return possible error code |
|
98 |
*/ |
|
99 |
TInt Cancel(); |
|
100 |
||
101 |
/** |
|
102 |
* Process barring procedures(derived from CPESsHandler). |
|
103 |
* |
|
104 |
* See comments for forwarding, they apply also in here. |
|
105 |
* |
|
106 |
* @param aAction It is action. |
|
107 |
* @param aBarring It contains barring procedure. |
|
108 |
* @param aPassword It should be barring password, if required. |
|
109 |
* @param aBasicCode It is basic service code. |
|
110 |
*/ |
|
111 |
void ProcessBarringL( TAction aAction, |
|
112 |
TBarringProcedure aBarring, |
|
113 |
const TDesC& aPassword, |
|
114 |
const TDesC& aBasicCode ); |
|
115 |
||
116 |
/** |
|
117 |
* Process calling line identification presentation status |
|
118 |
* (derived from CPEGsmSsHandler). |
|
119 |
*/ |
|
120 |
void ProcessClipStatusL(); |
|
121 |
||
122 |
/** |
|
123 |
* Process calling line idnetification restriction status |
|
124 |
* (derived from CPEGsmSsHandler). |
|
125 |
*/ |
|
126 |
void ProcessClirStatusL(); |
|
127 |
||
128 |
/** |
|
129 |
* Process Calling Name Presentation (CNAP) status check. |
|
130 |
*/ |
|
131 |
void ProcessCnapStatusL(); |
|
132 |
||
133 |
/** |
|
134 |
* Process connected line presentation status(derived from CPEGsmSsHandler). |
|
135 |
*/ |
|
136 |
void ProcessColpStatusL(); |
|
137 |
||
138 |
/** |
|
139 |
* Process connected line restriction status(derived from CPEGsmSsHandler). |
|
140 |
*/ |
|
141 |
void ProcessColrStatusL(); |
|
142 |
||
143 |
/** |
|
144 |
* Process enhanced Multi-Level Precedence and Pre-emption (eMLPP). |
|
145 |
* |
|
146 |
* @param aAction It is action. |
|
147 |
* @param aNumber It is directory number. |
|
148 |
* @param aServiceCode It is service code. |
|
149 |
*/ |
|
150 |
void ProcessEmlppL( TAction aAction, |
|
151 |
const TDesC& /*aNumber*/, |
|
152 |
const TInt aServiceCode ); |
|
153 |
||
154 |
/** |
|
155 |
* Process forwarding procedures(derived from CPEGsmSsHandler). |
|
156 |
* |
|
157 |
* If a parameter is not allowed for a procedure, |
|
158 |
* then it is empty. If a parameter is not explicitly given, |
|
159 |
* then it is empty. If a parameter is present, then it can |
|
160 |
* be assumed to contain appropriate values. |
|
161 |
* |
|
162 |
* @param aAction It is action. |
|
163 |
* @param aForwarding It contains forwarding procedure. |
|
164 |
* @param aNumber It is directory number. |
|
165 |
* @param aBasicCode It is basic service code. |
|
166 |
* @param aTimer It is timer(delay time). |
|
167 |
*/ |
|
168 |
void ProcessForwardingL( TAction aAction, |
|
169 |
TForwardingProcedure aForwarding, |
|
170 |
const TDesC& aNumber, |
|
171 |
const TDesC& aBasicCode, |
|
172 |
const TDesC& aTimer ); |
|
173 |
||
174 |
/** |
|
175 |
* Process Multiple Subscriber Profile (MSP). |
|
176 |
* |
|
177 |
* @param aAction It is action. |
|
178 |
* @param aNumber It is directory number. |
|
179 |
* @param aServiceCode It is service code. |
|
180 |
*/ |
|
181 |
void ProcessMspL( TAction aAction, |
|
182 |
const TDesC& aNumber, |
|
183 |
const TInt aServiceCode ); |
|
184 |
||
185 |
/** |
|
186 |
* Process password change(derived from CPEGsmSsHandler). |
|
187 |
* |
|
188 |
* @param aPassword It is password procedure. |
|
189 |
* @param aOldPassword It should be old password. |
|
190 |
* @param aNewPassword1 It is new password. |
|
191 |
* @param aNewPassword2 It is new password. |
|
192 |
*/ |
|
193 |
void ProcessPasswordChangeL( TPasswordProcedure aPassword, |
|
194 |
const TDesC& aOldPassword, |
|
195 |
const TDesC& aNewPassword1, |
|
196 |
const TDesC& aNewPassword2 ); |
|
197 |
||
198 |
/** |
|
199 |
* Process Support for Private Numbering Plan (SPNP). |
|
200 |
* |
|
201 |
* @param aAction It is action. |
|
202 |
* @param aServiceCode It is service code. |
|
203 |
*/ |
|
204 |
void ProcessSpnpL( TAction aAction, const TInt aServiceCode ); |
|
205 |
||
206 |
/** |
|
207 |
* Process waiting(derived from CPEGsmSsHandler). |
|
208 |
* |
|
209 |
* @param aAction It is action. |
|
210 |
* @param aBasicCode It is basic service code. |
|
211 |
*/ |
|
212 |
void ProcessWaitingL( TAction aAction, const TDesC& aBasicCode ); |
|
213 |
||
214 |
/** |
|
215 |
* From MPsetRequestObs, called when request is completed |
|
216 |
* so that also ui browsing is ended |
|
217 |
*/ |
|
218 |
void RequestComplete(); |
|
219 |
||
220 |
/** |
|
221 |
* From MPsetRequestObs, called when request state changes |
|
222 |
* @param aNewStatus Request status, when request finishes |
|
223 |
*/ |
|
224 |
void RequestStatusChanged( TInt aNewStatus ); |
|
225 |
||
226 |
private: |
|
227 |
||
228 |
/** |
|
229 |
* C++ default constructor. |
|
230 |
*/ |
|
231 |
CPEParserSSHandler( CPEMessageHandler& aOwner, |
|
232 |
MPEPhoneModelInternal& aModel); |
|
233 |
||
234 |
/** |
|
235 |
* Connects class to the phonesettings |
|
236 |
*/ |
|
237 |
void ConnectToSsEngineL(); |
|
238 |
||
239 |
/** |
|
240 |
* Create call barring observer |
|
241 |
*/ |
|
242 |
void CPEParserSSHandler::CreateCBObsL(); |
|
243 |
||
244 |
/** |
|
245 |
* Create call cli observer |
|
246 |
*/ |
|
247 |
void CPEParserSSHandler::CreateCliObsL(); |
|
248 |
||
249 |
/** |
|
250 |
* Create call divert observer |
|
251 |
*/ |
|
252 |
void CPEParserSSHandler::CreateCFObsL(); |
|
253 |
||
254 |
/** |
|
255 |
* Create call waiting observer |
|
256 |
*/ |
|
257 |
void CPEParserSSHandler::CreateCWObsL(); |
|
258 |
||
259 |
/** |
|
260 |
* if ConnectSsToEngine leaves, this is called |
|
261 |
*/ |
|
262 |
static void DoClean( TAny* aAny ); |
|
263 |
||
264 |
/** |
|
265 |
* deletes member variables |
|
266 |
*/ |
|
267 |
void ResetVariables(); |
|
268 |
||
269 |
/** |
|
270 |
* Copies destructor. If does not fit, then leaves with |
|
271 |
* KErrOverflow error code. |
|
272 |
*/ |
|
273 |
static void CopyL( TDes& aDest, const TDesC& aSource ); |
|
274 |
||
275 |
private: |
|
276 |
// CPEGsmMessageHandler object which owns this requester. |
|
277 |
CPEMessageHandler& iOwner; |
|
278 |
//MPEPhoneModelInternal is used to send message to the phone application |
|
279 |
MPEPhoneModelInternal& iModel; |
|
280 |
// Contains information of the Suplementary Services command. |
|
281 |
TPESSCommandInfo iSupplementaryServicesCommandInfo; |
|
282 |
// Owned phone settings container. |
|
283 |
CPsetContainer* iSettings; |
|
284 |
// Owned phone settings ui container. |
|
285 |
CPsuiContainer* iObsContainer; |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
286 |
|
37 | 287 |
// Owned call barring. |
288 |
CPsetCallBarring* iBarring; |
|
289 |
// Owned call barring observer. |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
290 |
CPsuiBarringObs* iCbObserver; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
291 |
|
37 | 292 |
// Owned calling line identity. |
293 |
CPsetCli* iCli; |
|
294 |
// Owned calling line identity observer. |
|
295 |
CPsuiCliObserver* iCliObserver; |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
296 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
297 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
298 |
// Call diverting. Not own. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
299 |
CPsetCallDiverting* iDivert; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
300 |
// Call divert wrapper. Not own |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
301 |
PSetCallDivertingWrapper* iCallDivertingWrapper; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
302 |
// Call diverting note handler, Own |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
303 |
PsUiDivertNoteHandler* iCallDivertingHandler; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
304 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
305 |
// Owned call waiting. Now Own |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
306 |
CPsetCallWaiting* iWaiting; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
307 |
// Call divert wrapper. Not own |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
308 |
PSetCallWaitingWrapper* iCallWaitingWrapper; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
309 |
// Call diverting note handler, Own |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
310 |
PsUiWaitingNoteHandler* iCallWaitingHandler; |
37 | 311 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
312 |
// Setting wrappers. Own. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
313 |
PSetWrapper *iPsetWrapper; |
37 | 314 |
}; |
315 |
||
316 |
#endif // CPEPARSERSSHANDLER_H |
|
317 |
||
318 |
// End of File |