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