author | mikaruus |
Tue, 19 Oct 2010 13:16:20 +0300 | |
changeset 9 | 8486d82aef45 |
parent 7 | fa67e03b87df |
permissions | -rw-r--r-- |
0 | 1 |
/* |
9 | 2 |
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 3 |
* All rights reserved. |
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "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 |
* |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
14 |
* Description: |
0 | 15 |
* |
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
#ifndef _CMMCUSTOMMESSHANDLER_H |
|
21 |
#define _CMMCUSTOMMESSHANDLER_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include "mmmmesshandlerbase.h" |
|
25 |
#include "cmmphonetreceiver.h" |
|
26 |
#include "muiccoperationbase.h" |
|
27 |
#include "cmmuiccmesshandler.h" |
|
28 |
||
29 |
// for internal testing |
|
30 |
#include "nokiatsy_internal_variation.h" |
|
31 |
||
32 |
#include <ctsy/rmmcustomapi.h> |
|
33 |
||
34 |
// CONSTANTS |
|
35 |
||
36 |
// Length of Sim info isi msg buffer |
|
37 |
const TUint8 KSimInfoBufferSize = 20; |
|
38 |
||
39 |
// Time related constants |
|
40 |
const TUint16 KSecsInHour = 3600; |
|
41 |
const TUint8 KMinsInHour = 60; |
|
42 |
||
43 |
// Length if Gss Cs isi msg buffer |
|
44 |
const TUint8 KGssCsBufferSize = 6; |
|
45 |
||
46 |
// Call property buffer size |
|
47 |
const TUint8 KCallPropBuffSize = 4; |
|
48 |
||
49 |
// Value for information which value is not needed. |
|
50 |
const TUint8 KZero = 0x00; |
|
51 |
// Default length for product profile reading request |
|
52 |
const TUint8 KDefaultPPlength = 0x01; |
|
53 |
||
54 |
// Max length of network proveder name |
|
55 |
const TUint8 KNwProviderNameLength = 0x19; |
|
56 |
// Constants for remote address length |
|
57 |
const TUint8 KRemoteAddressBcdSize = 18; |
|
58 |
const TUint8 KRemoteAddressAsciiSize = 34; |
|
59 |
const TUint8 KRemoteAddressConversionSize = 36; |
|
60 |
||
61 |
// SS Request Complete Notifivation SS Status |
|
62 |
const TUint8 KCustomApiSsGsmActive = 0x01; |
|
63 |
const TUint8 KCustomApiSsGsmRegistered = 0x02; |
|
64 |
const TUint8 KCustomApiSsGsmProvisioned = 0x04; |
|
65 |
const TUint8 KCustomApiSsGsmQuiescent = 0x08; |
|
66 |
||
67 |
const TUint8 KinfoPpTwoDigitDial = 0x0F; |
|
68 |
||
69 |
//value for information which value is two |
|
70 |
const TUint8 KTwo = 0x02; |
|
71 |
||
72 |
//value for information which value is three |
|
73 |
const TUint8 KThree = 0x03; |
|
74 |
||
75 |
//value for information which value is four |
|
76 |
const TUint8 KFour = 0x04; |
|
77 |
||
78 |
//value for information which value is six |
|
79 |
const TUint8 KSix = 0x06; |
|
80 |
||
81 |
const TUint8 KCustomPadding = 0x00; //Padding byte |
|
82 |
||
83 |
// Call Life Timer Constants |
|
84 |
const TUint8 KCallLifeTimerDataAmount = 0x04; |
|
85 |
const TInt KCallLifeTimerNotSet = -1; |
|
86 |
const TUint8 KPmmGroupNokiaTsySize = 100; |
|
87 |
||
88 |
// Maximum number of re-trials when requesting data from PMM. |
|
89 |
const TUint8 KMaxPMMReadRequests = 0x03; |
|
90 |
||
91 |
// These constants are needed for Viag Home Zone |
|
92 |
const TUint8 KLengthOfSMSCNumber = 15; |
|
93 |
const TUint8 KLengthOfSCPNumber = 15; |
|
94 |
const TUint8 KLengthOfHzCzTag = 13; |
|
95 |
const TUint8 KHomeZoneActiveBit = 0x01; |
|
96 |
const TUint8 KCityZoneActiveBit = 0x02; |
|
97 |
||
9 | 98 |
const TUint16 KUnusedCbMsgId = 0xffff; |
0 | 99 |
|
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
100 |
const TUint8 KCustomTransId = 6; |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
101 |
|
0 | 102 |
// MACROS |
103 |
//None |
|
104 |
||
105 |
// DATA TYPES |
|
106 |
//None |
|
107 |
||
108 |
// EXTERNAL DATA STRUCTURES |
|
109 |
//None |
|
110 |
||
111 |
// FUNCTION PROTOTYPES |
|
112 |
//None |
|
113 |
||
114 |
// FORWARD DECLARATIONS |
|
115 |
class CMmSecurityMessHandler; |
|
116 |
class CMmNetMessHandler; |
|
117 |
class CMmPhoNetSender; |
|
118 |
class TIsiReceiveC; |
|
119 |
class CMmMessageRouter; |
|
120 |
class CMmUiccMessHandler; |
|
121 |
||
122 |
// CLASS DECLARATION |
|
123 |
||
124 |
/** |
|
125 |
* CMmCustomMessHandler is used to create and send GSM specific |
|
126 |
* custom ISI messages to PhoNet via PhoNetSender. |
|
127 |
*/ |
|
128 |
class CMmCustomMessHandler : |
|
129 |
public CBase, |
|
130 |
public MMmMessHandlerBase, |
|
131 |
public MMmMessageReceiver, |
|
132 |
public MUiccOperationBase |
|
133 |
{ |
|
134 |
||
135 |
public: |
|
136 |
||
137 |
// Used for saving the ciphering information. |
|
138 |
struct TCiphListEntry |
|
139 |
{ |
|
140 |
TBool iCiphStatus; |
|
141 |
TUint8 iTraId; |
|
142 |
}; |
|
143 |
||
144 |
// Used for saving the enhanced cell information. |
|
145 |
class TECIDInfo |
|
146 |
{ |
|
147 |
public: // data |
|
148 |
RMmCustomAPI::TMmCellInfo iCellInfo; // Cell Information |
|
149 |
TUint iMCC; // Mobile Country Code |
|
150 |
TUint iMNC; // Mobile Network Code |
|
151 |
TUint iCID; // Location area code |
|
152 |
TUint iLAC; // Cell identity |
|
153 |
}; |
|
154 |
||
155 |
// This enumeration is needed because different Product Profile |
|
156 |
// requests can be made using the same INFO_PP_READ_REQ/RESP |
|
157 |
// messages. Used as a transaction ID. |
|
158 |
enum TProductProfileRequestType |
|
159 |
{ |
|
160 |
EGetAlsPPSupport = 0, |
|
161 |
ECheckTwoDigitDialSupport |
|
162 |
}; |
|
163 |
||
164 |
// This enumeration is needed because a SIM_READ_CI_RESP can come |
|
165 |
// as a response to a GetCipheringInfo-request, or triggered by |
|
166 |
// a NET_CIPHERING_IND indication which makes the same request. |
|
167 |
// Used as a transaction ID. |
|
168 |
enum TCipheringInfoRequestType |
|
169 |
{ |
|
170 |
EGetCipheringInfo = 0, |
|
171 |
ENotifyCipheringInfo |
|
172 |
}; |
|
173 |
||
174 |
// The SIM operations are grouped into the following types. |
|
175 |
// Used as ISA transaction IDs. |
|
176 |
enum TSIMOperationType |
|
177 |
{ |
|
178 |
ESIMOperationTypeReadSimTopics = 0, |
|
179 |
ESIMOperationTypeDeleteSimTopic |
|
180 |
}; |
|
181 |
||
182 |
enum TUiccSapIfStatus |
|
183 |
{ |
|
184 |
EUiccSapIfStatus1 = 1, |
|
185 |
EUiccSapIfStatus2, |
|
186 |
EUiccSapIfStatus3 |
|
187 |
}; |
|
188 |
||
189 |
public: // Constructors and destructor |
|
190 |
||
191 |
/** |
|
192 |
* Creates a new GSM specific MessageHandler object instance. |
|
193 |
* @param aPhoNetSender: a pointer to a Phonet Sender object |
|
194 |
* @param aPhoNetReceiver: |
|
195 |
* @param aNetMessHandler: a pointer to the Net message handler |
|
196 |
* @param aSecurityMessHandler: a pointer to the security mess handler |
|
197 |
* @param aMessageRouter: a pointer to the message router |
|
198 |
* @return void |
|
199 |
*/ |
|
200 |
static CMmCustomMessHandler* NewL( |
|
201 |
CMmPhoNetSender* aPhoNetSender, |
|
202 |
CMmPhoNetReceiver* aPhoNetReceiver, |
|
203 |
CMmNetMessHandler* aNetMessHandler, |
|
204 |
CMmSecurityMessHandler* aSecurityMessHandler, |
|
205 |
CMmMessageRouter* aMessageRouter, |
|
206 |
CMmUiccMessHandler* aUiccMessHandler); |
|
207 |
||
208 |
/** |
|
209 |
* Destructor. |
|
210 |
* @return void |
|
211 |
*/ |
|
212 |
~CMmCustomMessHandler(); |
|
213 |
||
9 | 214 |
public: // New Functions |
0 | 215 |
|
216 |
/** |
|
217 |
* Creates CallReleaseReq ISI message and sends it to Phonet. |
|
218 |
* @param TUint8 aTransactionId: unique transaction id |
|
219 |
* @param TUint8 aCallId: Call ID of this call (NOS Call ID) |
|
220 |
* @param TUint8 aCause: cause of releasing |
|
221 |
* @return TInt: success/failure value |
|
222 |
*/ |
|
223 |
TInt CallReleaseReq( |
|
224 |
TUint8 aTransactionId, |
|
225 |
TUint8 aCallId, |
|
226 |
TUint8 aCause ); |
|
227 |
||
228 |
/** |
|
229 |
* Breaks received CallReleaseResp ISI message. |
|
230 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
231 |
* @return void : None |
|
232 |
*/ |
|
233 |
void CallReleaseResp( const TIsiReceiveC& aIsiMsg ); |
|
234 |
||
235 |
/** |
|
236 |
* MO alert indication, used for Remote Alerting Tone in Custom TSY |
|
237 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
238 |
* @return TInt: void : None |
|
239 |
*/ |
|
240 |
void CallMoAlertInd( const TIsiReceiveC& aIsiMsg ); |
|
241 |
||
242 |
/** |
|
243 |
* Creates a NET_CS_WAKEUP_REQ ISI message and sends it to Phonet |
|
244 |
* @param TUint8 aTransId: transaction Id |
|
245 |
* @return TInt: success/failure value |
|
246 |
*/ |
|
247 |
TInt NetCsWakeupReq( TUint8 aTransId ); |
|
248 |
||
249 |
/** |
|
250 |
* Breaks received NET_CS_WAKEUP_RESP ISI message |
|
251 |
* @param None |
|
252 |
* @return void : None |
|
253 |
*/ |
|
254 |
void NetCsWakeupResp(); |
|
255 |
||
256 |
/** |
|
257 |
* Breaks received NET_CIPHERING_IND ISI message |
|
258 |
* @param TIsiReceiveC& aIsiMsg: The received ISI message |
|
259 |
* @return void : None |
|
260 |
*/ |
|
261 |
void NetCipheringInd( const TIsiReceiveC& aIsiMsg ); |
|
262 |
||
263 |
/** |
|
264 |
* Breaks received NET_MODEM_REG_STATUS_IND ISI message |
|
265 |
* @param TIsiReceiveC& aIsiMsg: The received ISI message |
|
266 |
* @return void : None |
|
267 |
*/ |
|
268 |
void NetModemRegStatusInd( const TIsiReceiveC& aIsiMsg ); |
|
269 |
||
270 |
||
271 |
/** |
|
272 |
* Read dynamic flags 2 |
|
273 |
* @return void |
|
274 |
*/ |
|
275 |
TInt UiccReadDynamic2FlagsReq(); |
|
276 |
||
277 |
/** |
|
278 |
* Read dynamic flags 2 response |
|
279 |
* @param aStatus Status |
|
280 |
* @param aFileData File data |
|
281 |
* @return void |
|
282 |
*/ |
|
283 |
void UiccReadDynamic2FlagsResp( |
|
284 |
TInt aStatus, |
|
285 |
const TDesC8& aFileData ); |
|
286 |
||
287 |
/** |
|
288 |
* Write dynamic flags 2 |
|
289 |
* @param aInfo Flags 2 data |
|
290 |
* @return void |
|
291 |
*/ |
|
292 |
TInt UiccWriteDynamic2FlagsReq( TUint8 aInfo ); |
|
293 |
||
294 |
/** |
|
295 |
* Write dynamic flags 2 response |
|
296 |
* @param aInfo Flags 2 data |
|
297 |
* @return void |
|
298 |
*/ |
|
299 |
void UiccWriteDynamic2FlagsResp( TInt aStatus ); |
|
300 |
||
301 |
/** |
|
302 |
* Breaks received CALL_TERMINATE_IND ISI messages |
|
303 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
304 |
* @return void : None |
|
305 |
*/ |
|
306 |
void CallTerminateInd( const TIsiReceiveC& aIsiMsg ); |
|
307 |
||
308 |
/** |
|
309 |
* Breaks received CALL_RELEASE_IND ISI messages |
|
310 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
311 |
* @return void : None |
|
312 |
*/ |
|
313 |
void CallReleaseInd( const TIsiReceiveC& aIsiMsg ); |
|
314 |
||
315 |
/** |
|
316 |
* Creates a INFO_PP_READ_REQ ISI messages and sends it to phone |
|
317 |
* @param TProductProfileRequestType aReqType: request type (used |
|
318 |
* as transaction id) |
|
319 |
* @return void : KErrNone / Error value from phonet |
|
320 |
*/ |
|
321 |
TInt InfoPpReadReq( TProductProfileRequestType aReqType ); |
|
322 |
||
323 |
/** |
|
324 |
* Breaks a INFO_PP_READ_RESP message |
|
325 |
* @param CIsiMsg* aIsiMsg: The received ISI message |
|
326 |
* @return void : None |
|
327 |
*/ |
|
328 |
void InfoPpReadResp( const TIsiReceiveC& aIsiMessage ); |
|
329 |
||
330 |
/** |
|
331 |
* Creates a CALL_GSM_BLACKLIST_CLEAR_REQ ISI message and sends it to |
|
332 |
* Phonet |
|
333 |
* @param TUint8 aTransId: transaction Id |
|
334 |
* @return TInt : KErrNone or error code |
|
335 |
*/ |
|
336 |
TInt CallGsmBlackListClearReq( TUint8 aTransId ); |
|
337 |
||
338 |
/** |
|
339 |
* Breaks received CALL_GSM_BLACKLIST_CLEAR_RESP ISI message |
|
340 |
* @return void : None |
|
341 |
*/ |
|
342 |
void CallGsmBlackListClearResp(); |
|
343 |
||
344 |
/** |
|
345 |
* Breaks received SS_SERVICE_COMPLETED_IND ISI message |
|
346 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
347 |
* @return void : None |
|
348 |
*/ |
|
349 |
void SsServiceCompletedInd ( const TIsiReceiveC& aIsiMessage ); |
|
350 |
||
351 |
/** |
|
352 |
* Creates a CALL_EMERGENCY_NBR_CHECK_REQ ISI messages and sends it to |
|
353 |
* phonet |
|
354 |
* @param TUint8 aTransId: Transaction Id |
|
355 |
* @param TMobileTelNumber&: telnumber |
|
356 |
* @param TCheckMode aCheckMode; check mode |
|
357 |
* @return TInt : KErrNone / Error value from phonet |
|
358 |
*/ |
|
359 |
TInt CallEmergencyNbrCheckReq( TUint8 aTransId, |
|
360 |
RMmCustomAPI::TMobileTelNumber& aNumber, |
|
361 |
RMmCustomAPI::TCheckMode aCheckMode ); |
|
362 |
||
363 |
/** |
|
364 |
* Breaks a CALL_EMERGENCY_NBR_CHECK_RESP message |
|
365 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
366 |
* @return void : None |
|
367 |
*/ |
|
368 |
void CallEmergencyNbrCheckResp( const TIsiReceiveC& aIsiMsg ); |
|
369 |
||
370 |
/** |
|
371 |
* Creates a SS_GSM_USSD_SEND_REQ ISI messages and sends it to IsaApi |
|
372 |
* @param TUint8 aTransId: Transaction Id |
|
373 |
* @return TInt : KErrNone / Error value from IsaApi |
|
374 |
*/ |
|
375 |
TInt SsGsmUssdSendReq( TUint8 aTransId ); |
|
376 |
||
377 |
/** |
|
378 |
* Forwards a execution of SS_CANCEL_USSD_SEND_RESP message |
|
379 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
380 |
* @return void : None |
|
381 |
*/ |
|
382 |
void SsGsmUssdSendResp( const TIsiReceiveC& aIsiMessage ); |
|
383 |
||
384 |
/** |
|
385 |
* Construct a NET_MODEM_REG_STATUS_GET_REQ ISI message and send |
|
386 |
* it through phonet. |
|
387 |
* @param TUint8 aTransId: Transaction Id |
|
388 |
* @return TInt: KErrNone / Error value from phonet |
|
389 |
*/ |
|
390 |
TInt NetModemRegStatusGetReq( TUint8 aTransId ); |
|
391 |
||
392 |
/** |
|
393 |
* Construct a NET_SET_REQ message and send it through phonet. |
|
394 |
* @param TUint8 aTransId: Transaction Id |
|
395 |
* @return TInt: KErrNone / Error value from phonet |
|
396 |
*/ |
|
397 |
TInt NetSetReq( TUint8 aTransId ); |
|
398 |
/** |
|
399 |
* Handles SsRequestComplete response ISI message |
|
400 |
* @return void : None |
|
401 |
*/ |
|
402 |
void SsRequestComplete(); |
|
403 |
||
404 |
/** |
|
405 |
* Read field from SIM/USIM |
|
406 |
* @param aSimFileInfo File info |
|
407 |
* @return Error code |
|
408 |
*/ |
|
409 |
TInt UiccReadFieldReq( RMmCustomAPI::TSimFileInfo& aSimFileInfo ); |
|
410 |
||
411 |
/** |
|
412 |
* Response to read field request |
|
413 |
* @param aStatus Status |
|
414 |
* @param aFileData File data |
|
415 |
* @return void |
|
416 |
*/ |
|
9 | 417 |
void UiccReadFieldResp( TUint8 aStatus, const TDesC8& aFileData ); |
0 | 418 |
|
419 |
/** |
|
420 |
* Read ciphering indicator status from SIM/USIM |
|
421 |
* @param aTrId Transaction ID |
|
422 |
* @return Error code |
|
423 |
*/ |
|
424 |
TInt UiccReadCiReq( TInt aTrId ); |
|
425 |
||
426 |
/** |
|
427 |
* Response to read CI request |
|
428 |
* @param aStatus Status |
|
429 |
* @param aTrId Transaction ID |
|
430 |
* @param aFileData File data |
|
431 |
* @return void |
|
432 |
*/ |
|
433 |
void UiccReadCiResp( |
|
434 |
TInt aStatus, |
|
435 |
TInt aTrId, |
|
436 |
const TDesC8& aFileData ); |
|
437 |
||
438 |
/** |
|
439 |
* Read operator name from SIM/USIM |
|
440 |
* @return Error code |
|
441 |
*/ |
|
442 |
TInt UiccOperatorReq(); |
|
443 |
||
444 |
/** |
|
445 |
* Response to read operator name request |
|
446 |
* @param aStatus Status |
|
447 |
* @param aFileData File data |
|
448 |
* @return none |
|
449 |
*/ |
|
9 | 450 |
void UiccOperatorResp( TUint8 aStatus, const TDesC8& aFileData ); |
0 | 451 |
|
452 |
/** |
|
453 |
* Disconnects UICC server from smartcard and |
|
454 |
* activates UICC SAP APDU interface |
|
455 |
* @return Error code |
|
456 |
*/ |
|
457 |
TInt UiccSimPowerOffReq(); |
|
458 |
||
459 |
/** |
|
460 |
* Handles responses to SIM power off |
|
461 |
* @param aStatus Status |
|
462 |
* @return none |
|
463 |
*/ |
|
464 |
void UiccSimPowerOffResp( TInt aStatus ); |
|
465 |
||
466 |
/** |
|
467 |
* Requests SIM warm reset |
|
468 |
* @return Error code |
|
469 |
*/ |
|
470 |
TInt UiccSimWarmResetReq(); |
|
471 |
||
472 |
/** |
|
473 |
* Response to SIM warm reset |
|
474 |
* @param aStatus Status |
|
475 |
* @return none |
|
476 |
*/ |
|
477 |
void UiccSimWarmResetResp( TInt aStatus ); |
|
478 |
||
479 |
/** |
|
480 |
* Requests Get ATR |
|
481 |
* @return Error code |
|
482 |
*/ |
|
483 |
TInt UiccSimGetAtrReq(); |
|
484 |
||
485 |
/** |
|
486 |
* Handles responses to SIM Get ATR |
|
487 |
* @param aStatus Status |
|
488 |
* @param aFileData File data |
|
489 |
* @return none |
|
490 |
*/ |
|
491 |
void UiccSimGetAtrResp( TInt aStatus, const TDesC8& aFileData ); |
|
492 |
||
493 |
/** |
|
494 |
* Connects UICC server to smartcard and |
|
495 |
* deactivates UICC SAP APDU interface |
|
496 |
* @return Error code |
|
497 |
*/ |
|
498 |
TInt UiccSimPowerOnReq(); |
|
499 |
||
500 |
/** |
|
501 |
* Handles responses to SIM power off |
|
502 |
* @param aStatus Status |
|
503 |
* @return none |
|
504 |
*/ |
|
505 |
void UiccSimPowerOnResp( TInt aStatus ); |
|
506 |
||
507 |
/** |
|
508 |
* Sends APDU to UICC |
|
509 |
* @param aApduParameters APDU parameters |
|
510 |
* @param aTraId transaction id |
|
511 |
* @return Error code |
|
512 |
*/ |
|
513 |
TInt UiccSendAPDUReq( |
|
514 |
const RMmCustomAPI::TApduParameters& aApduParameters, |
|
515 |
TInt aTraId ); |
|
516 |
||
517 |
/** |
|
518 |
* Handles responses to UICC_APDU_RESP |
|
519 |
* @param aStatus Status |
|
520 |
* @param aFileData File data |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
521 |
* @param aTraId transaction id |
0 | 522 |
* @return none |
523 |
*/ |
|
524 |
void UiccSendAPDUResp( |
|
525 |
TInt aStatus, |
|
526 |
const TDesC8& aFileData, |
|
527 |
TInt aTraId ); |
|
528 |
||
529 |
/** |
|
530 |
* Sends UICC_CARD_REQ |
|
531 |
* @return Error code |
|
532 |
*/ |
|
533 |
TInt UiccCardReaderStatusReq(); |
|
534 |
||
535 |
/** |
|
536 |
* Handles responses for Card Reader Status req |
|
537 |
* @param aStatus Status |
|
538 |
* @param aFileData File data |
|
539 |
* @return none |
|
540 |
*/ |
|
541 |
void UiccCardReaderStatusResp( TInt aStatus, const TDesC8& aFileData ); |
|
542 |
||
543 |
/** |
|
544 |
* Handles UICC_CARD_IND |
|
545 |
* @param aIsiMessage Received ISI message |
|
546 |
* @return void |
|
547 |
*/ |
|
548 |
void UiccCardInd( const TIsiReceiveC& aIsiMessage ); |
|
549 |
||
550 |
/** |
|
551 |
* Read CB message IDs from UICC |
|
552 |
* @param aTraId Transaction identification |
|
553 |
* @return Error code |
|
554 |
*/ |
|
555 |
TInt UiccReadCbMsgIdsReq( TUiccTrId aTrId ); |
|
556 |
||
557 |
/** |
|
558 |
* Response to read CB message IDs from UICC |
|
559 |
* @param aStatus Status |
|
560 |
* @param aTraId Transaction ID |
|
561 |
* @param aFileData File data |
|
562 |
* @return void |
|
563 |
*/ |
|
564 |
void UiccReadCbMsgIdsResp( |
|
9 | 565 |
TUint8 aStatus, |
0 | 566 |
TInt aTraId, |
567 |
const TDesC8& aFileData ); |
|
568 |
||
569 |
/** |
|
570 |
* Response to delete CB message ID request |
|
571 |
* @param aStatus Status |
|
572 |
* @return void |
|
573 |
*/ |
|
9 | 574 |
void UiccDeleteCbMsgIdResp( TUint8 aStatus ); |
0 | 575 |
|
576 |
/** |
|
577 |
* Read home zone parameters from UICC |
|
578 |
* @return Error code |
|
579 |
*/ |
|
580 |
TInt UiccReadViagHomeZoneParametersReq(); |
|
581 |
||
582 |
/** |
|
583 |
* Response read home zone parameters request |
|
584 |
* @param aStatus Status |
|
585 |
* @param aFileData File data |
|
586 |
* @return void |
|
587 |
*/ |
|
588 |
void UiccReadViagHomeZoneParametersResp( |
|
9 | 589 |
TUint8 aStatus, |
0 | 590 |
const TDesC8& aFileData ); |
591 |
||
592 |
/** |
|
593 |
* Read home zone cache from UICC |
|
594 |
* @params aRecordId Record identifier |
|
595 |
* @return Error code |
|
596 |
*/ |
|
597 |
TInt UiccReadViagHomeZoneCacheReq( |
|
598 |
const RMmCustomAPI::TViagCacheRecordId& aRecordId ); |
|
599 |
||
600 |
/** |
|
601 |
* Response to read home zone cache request |
|
602 |
* @param aStatus Status |
|
603 |
* @param aFileData File data |
|
604 |
* @return void |
|
605 |
*/ |
|
606 |
void UiccReadViagHomeZoneCacheResp( |
|
9 | 607 |
TUint8 aStatus, |
0 | 608 |
const TDesC8& aFileData ); |
609 |
||
610 |
/** |
|
611 |
* Request to write home zone settings |
|
612 |
* @param aUhziuiSettings UHZIUI settings |
|
613 |
* @return void |
|
614 |
*/ |
|
615 |
TInt UiccWriteViagHomeZoneUhziueSettingsReq( |
|
616 |
const RMmCustomAPI::TViagUHZIUESettings& aUhziuiSettings ); |
|
617 |
||
618 |
/** |
|
619 |
* Response to write home zone settings |
|
620 |
* @param aStatus Status |
|
621 |
* @return void |
|
622 |
*/ |
|
9 | 623 |
void UiccWriteViagHomeZoneUhziueSettingsResp( TUint8 aStatus ); |
0 | 624 |
|
625 |
/** |
|
626 |
* Write Viag Home Zone cache from UICC |
|
627 |
* @params aRecordId Record identifier |
|
628 |
* @params aViagRecordContent Record content |
|
629 |
* @return error code |
|
630 |
*/ |
|
631 |
TInt UiccWriteViagHomeZoneCacheReq( |
|
632 |
const RMmCustomAPI::TViagCacheRecordId& aRecordId, |
|
633 |
const RMmCustomAPI::TViagCacheRecordContent& aViagRecordContent ); |
|
634 |
||
635 |
/** |
|
636 |
* Response Write Viag Home Zone cache request |
|
637 |
* @param aStatus Status |
|
638 |
* @return void |
|
639 |
*/ |
|
9 | 640 |
void UiccWriteViagHomeZoneCacheResp( TUint8 aStatus ); |
0 | 641 |
|
9 | 642 |
public: // Functions from base classes |
0 | 643 |
|
644 |
/** |
|
645 |
* ISI message for CustomMessageHandler received |
|
646 |
* @param const TIsiReceiveC& aIsiMessage: reference to received ISI message |
|
647 |
*/ |
|
648 |
void ReceiveMessageL( const TIsiReceiveC& aIsiMessage ); |
|
649 |
||
650 |
/** |
|
651 |
* Handles errors comes from PhoNetReceiver RunError |
|
652 |
* @param TIsiReceiveC& aIsiMessage: reference to received ISI message |
|
653 |
* @param TInt aError: Error code |
|
654 |
*/ |
|
655 |
void HandleError( const TIsiReceiveC& aIsiMessage, TInt aError ); |
|
656 |
||
657 |
/** |
|
658 |
* From MMmMessHandlerBase. This method is the single entry point for |
|
659 |
* requests coming from the Symbian OS layer to this message handler |
|
660 |
* @since ?Series60_version |
|
661 |
* @param aIpc IPC number of the request |
|
662 |
* @return TInt KErrNone or error code |
|
663 |
*/ |
|
664 |
TInt ExtFuncL( TInt aIpc, const CMmDataPackage* aDataPackage ); |
|
665 |
||
666 |
/** |
|
667 |
* Handle UICC response messages |
|
668 |
* @param aTraId Transaction ID |
|
669 |
* @param aFileData Descriptor for file data |
|
670 |
* @return KErrNone or error code |
|
671 |
*/ |
|
672 |
TInt ProcessUiccMsg( |
|
673 |
TInt aTraId, |
|
674 |
TInt aStatus, |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
675 |
TUint8 aDetails, |
0 | 676 |
const TDesC8& aFileData ); |
677 |
||
678 |
protected: // New functions |
|
679 |
//None |
|
680 |
||
681 |
protected: // Functions from base classes |
|
682 |
//None |
|
683 |
||
684 |
private: |
|
685 |
||
686 |
/** |
|
687 |
* C++ default constructor. |
|
688 |
* @return void |
|
689 |
*/ |
|
690 |
CMmCustomMessHandler(); |
|
691 |
||
692 |
/** |
|
693 |
* Initialises object attributes. |
|
694 |
* By default Symbian 2nd phase constructor is private. |
|
695 |
* @return void |
|
696 |
*/ |
|
697 |
void ConstructL(); |
|
698 |
||
699 |
/** |
|
700 |
* Breaks a CALL_GSM_NOTIFICATION_IND ISI-message. |
|
701 |
* @param const TIsiReceiveC& aIsiMsg: Received ISI message |
|
702 |
* @return None |
|
703 |
*/ |
|
704 |
void CallGsmNotificationInd( const TIsiReceiveC& aIsiMsg ); |
|
705 |
||
706 |
/** |
|
707 |
* Handles Forwarding data from a CALL_GSM_NOTIFICATION_IND |
|
708 |
* @param TUint16 aSsCode, |
|
709 |
* @param const TIsiReceiveC& aIsiMsg, |
|
710 |
* @param RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode |
|
711 |
* @return None |
|
712 |
*/ |
|
713 |
void HandleForwarding( |
|
714 |
TUint16 aSsCode, |
|
715 |
const TIsiReceiveC& aIsiMsg, |
|
716 |
RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode ) const; |
|
717 |
||
718 |
/** |
|
719 |
* Handles Barring data from a CALL_GSM_NOTIFICATION_IND |
|
720 |
* @param TUint16 aSsCode, |
|
721 |
* @param const TIsiReceiveC& aIsiMsg, |
|
722 |
* @param RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode |
|
723 |
* @return None |
|
724 |
*/ |
|
725 |
void HandleBarring( |
|
726 |
TUint16 aSsCode, |
|
727 |
const TIsiReceiveC& aIsiMsg, |
|
728 |
RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode ) const; |
|
729 |
||
730 |
/** |
|
731 |
* Match function for making finds in the Ciphering list |
|
732 |
* @param TCiphListEntry& aArg1: first argument for match |
|
733 |
* @param TCiphListEntry& aArg2: secnd argument for the match |
|
734 |
* @return TBool: if both arguments match |
|
735 |
*/ |
|
736 |
static TBool Match( |
|
737 |
const TCiphListEntry& aArg1, |
|
738 |
const TCiphListEntry& aArg2 ); |
|
739 |
||
740 |
/** |
|
741 |
* Breaks received NET_MODEM_REG_STATUS_GET_RESP ISI message |
|
742 |
* @param TIsiReceiveC& aIsiMsg: The received ISI message |
|
743 |
* @return void : None |
|
744 |
*/ |
|
745 |
void NetModemRegStatusGetResp( const TIsiReceiveC& aIsiMsg ); |
|
746 |
||
747 |
/** |
|
748 |
* Breaks received NET_SET_RESP ISI message |
|
749 |
* @param TIsiReceiveC& aIsiMsg: The received ISI message |
|
750 |
* @return void : None |
|
751 |
*/ |
|
752 |
void NetSetResp( const TIsiReceiveC& aIsiMsg ); |
|
753 |
||
754 |
/** |
|
755 |
* Breaks received SS_SERVICE_FAILED_RESP ISI message |
|
756 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
757 |
* @return void : None |
|
758 |
*/ |
|
759 |
void SsServiceFailedResp( const TIsiReceiveC& aIsiMessage ); |
|
760 |
||
761 |
/** |
|
762 |
* Construct a NET_RAT_REQ message and send it through phonet. |
|
763 |
* @param TUint8 aTransId: Transaction Id |
|
764 |
* @param TBool aCurrentRats: Use Current RAT setting |
|
765 |
* @return TInt: KErrNone / Error value from phonet |
|
766 |
*/ |
|
767 |
TInt NetRatReq( TUint8 aTransId, TBool aCurrentRats ); |
|
768 |
||
769 |
/** |
|
770 |
* Breaks received NET_RAT_RESP ISI message |
|
771 |
* @param TIsiReceiveC& aIsiMsg: The received ISI message |
|
772 |
* @return void : None |
|
773 |
*/ |
|
774 |
void NetRatResp( const TIsiReceiveC& aIsiMsg ); |
|
775 |
||
776 |
/** |
|
777 |
* Construct a GSS_CS_SERVICE_REQ message and send it through phonet. |
|
778 |
* @param TUint8 aTransId: Transaction Id |
|
779 |
* @param RMmCustomAPI::TNetworkModeCaps: System network mode to set. |
|
780 |
* @return TInt: KErrNone / Error value from phonet |
|
781 |
*/ |
|
782 |
TInt GssCsServiceReq( |
|
783 |
TUint8 aTransId, |
|
784 |
RMmCustomAPI::TNetworkModeCaps aNetworkModeCaps ); |
|
785 |
||
786 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
787 |
* Request for current RAT |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
788 |
* @param TUInt8 aTransId: Transaction Id |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
789 |
* @return TInt : result |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
790 |
*/ |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
791 |
TInt GssCsServiceReq( TUint8 aTransId ); |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
792 |
|
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
793 |
/** |
0 | 794 |
* Breaks received GSS_CS_SERVICE_RESP ISI message |
795 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
796 |
* @return void : None |
|
797 |
*/ |
|
798 |
void GssCsServiceResp( const TIsiReceiveC& aIsiMessage ); |
|
799 |
||
800 |
/** |
|
801 |
* Breaks received GSS_CS_SERVICE_FAIL_RESP ISI message |
|
802 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
803 |
* @return void : None |
|
804 |
*/ |
|
805 |
void GssCsServiceFailResp( const TIsiReceiveC& aIsiMessage ); |
|
806 |
||
807 |
/** |
|
808 |
* Handles the ReadViagHomeZoneParamsResp response message. |
|
809 |
* @param const TIsiReceiveC& aIsiMessage: a pointer to incoming message |
|
810 |
* @return void |
|
811 |
*/ |
|
812 |
void ReadViagHomeZoneParamsRespL( const TIsiReceiveC& aIsiMessage ); |
|
813 |
||
814 |
/** |
|
815 |
* Handles the ReadViagHomeZoneCacheResp response message. |
|
816 |
* @param const TIsiReceiveC& aIsiMessage: a pointer to incoming message |
|
817 |
* @return void |
|
818 |
*/ |
|
819 |
void ReadViagHomeZoneCacheResp( const TIsiReceiveC& aIsiMessage ); |
|
820 |
||
821 |
/** |
|
822 |
* Handles the WriteViagHomeZoneCacheResp response message. |
|
823 |
* @param const TIsiReceiveC& aIsiMessage: a pointer to incoming message |
|
824 |
* @return void |
|
825 |
*/ |
|
826 |
void WriteViagHomeZoneCacheResp( const TIsiReceiveC& aIsiMessage ); |
|
827 |
||
828 |
/** |
|
829 |
* Construct and send to phonet GSS_HSXPA_USER_SETTING_WRITE_REQ |
|
830 |
* ISI message. |
|
831 |
* @param TUint8 aTraId: a transaction identification |
|
832 |
* @param THSxPAStatus status: |
|
833 |
* @return TInt: error code |
|
834 |
*/ |
|
835 |
TInt WriteHSxPAStatusReq( |
|
836 |
TUint8 aTraId, |
|
837 |
RMmCustomAPI::THSxPAStatus status ); |
|
838 |
||
839 |
/** |
|
840 |
* Breaks GSS_HSXPA_USER_SETTING_WRITE_RESP ISI message |
|
841 |
* @param const TIsiReceiveC& aIsiMessage: the incoming message |
|
842 |
* @return void |
|
843 |
*/ |
|
844 |
void WriteHSxPAStatusResp( const TIsiReceiveC& aIsiMessage ); |
|
845 |
||
846 |
/** |
|
847 |
* Construct and send to phonet GSS_HSXPA_USER_SETTING_READ_REQ |
|
848 |
* ISI message. |
|
849 |
* @param TUint8 aTraId: a transaction identification |
|
850 |
* @return TInt: error code |
|
851 |
*/ |
|
852 |
TInt ReadHSxPAStatusReq( TUint8 aTraId ); |
|
853 |
||
854 |
/** |
|
855 |
* Breaks GSS_HSXPA_USER_SETTING_READ_RESP ISI message |
|
856 |
* @param const TIsiReceiveC& aIsiMessage: the incoming message |
|
857 |
* @return void |
|
858 |
*/ |
|
859 |
void ReadHSxPAStatusResp( const TIsiReceiveC& aIsiMessage ); |
|
860 |
||
861 |
/** |
|
862 |
* Breaks received GSS_HSXPA_SETTING_IND ISI messages |
|
863 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
864 |
* @return void : None |
|
865 |
*/ |
|
866 |
void HSxPASettingInd( const TIsiReceiveC& aIsiMsg ); |
|
867 |
||
868 |
/** |
|
869 |
* Construct a NET_NEIGHBOUR_CELLS_REQ message and send it through phonet. |
|
870 |
* @param TUint8 aTraId: a transaction identification |
|
871 |
* @return TInt: error code |
|
872 |
*/ |
|
873 |
TInt NetNeighbourCellsReq( const TUint8 aTraId ); |
|
874 |
||
875 |
/** |
|
876 |
* Breaks received NET_NEIGHBOUR_CELLS_RESP ISI messages. |
|
877 |
* @param const TIsiReceiveC& aIsiMsg: The received ISI message |
|
878 |
* @return void: None |
|
879 |
*/ |
|
880 |
void NetNeighbourCellsResp( const TIsiReceiveC& aIsiMessage ); |
|
881 |
||
882 |
/** |
|
883 |
* Breaks received NET_REG_STATUS_IND or NET_REG_STATUS_IND |
|
884 |
* message and checks if enhanced cell information is chaged |
|
885 |
* ( => needs to be requested/updated). |
|
886 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
887 |
* @return void: None |
|
888 |
*/ |
|
889 |
void CheckECIDInfo( const TIsiReceiveC& aIsiMessage ); |
|
890 |
||
891 |
// Not suppoted for S60 ver 3.2 |
|
892 |
#if ( NCP_COMMON_S60_VERSION_SUPPORT != S60_VERSION_32 ) |
|
893 |
||
894 |
/** |
|
895 |
* Construct a GSS_CS_SERVICE_REQ message including selected |
|
896 |
* band mode and send it through phonet. |
|
897 |
* @param TUint8 aTransId: Transaction Id |
|
898 |
* @param RMmCustomAPI::TNetworkModeCaps: System network mode to set. |
|
899 |
* @param RMmCustomAPI::TBandSelection: Selected band mode. |
|
900 |
* @return TInt: KErrNone / Error value from phonet |
|
901 |
*/ |
|
902 |
TInt GssCsServiceSetBandReq( |
|
903 |
TUint8 aTransId, |
|
904 |
RMmCustomAPI::TNetworkModeCaps aNetworkModeCaps, |
|
905 |
RMmCustomAPI::TBandSelection aBandSelection ); |
|
906 |
||
907 |
/** |
|
908 |
* Construct a GSS_CS_SERVICE_REQ message to get selected |
|
909 |
* band mode. |
|
910 |
* @param TUint8 aTransId: Transaction Id |
|
911 |
* @return TInt: KErrNone / Error value from phonet |
|
912 |
*/ |
|
913 |
TInt GssCsServiceGetBandReq( TUint8 aTransId ); |
|
914 |
||
915 |
/** |
|
916 |
* Breaks received GSS_SELECTED_BANDS_READ operation. |
|
917 |
* @param const TIsiReceiveC& aIsiMessage: The received ISI message |
|
918 |
* @return void: None |
|
919 |
*/ |
|
920 |
void CompleteGetBandSelection( const TIsiReceiveC& aIsiMessage ); |
|
921 |
||
922 |
#endif // NCP_COMMON_S60_VERSION_SUPPORT |
|
923 |
||
924 |
/** |
|
925 |
* Construcst PERM_PM_RECORD_READ_REQ message sends it through |
|
926 |
* phonet. |
|
927 |
* @param TUint8 aTransId: Transaction id. |
|
928 |
* @return TInt: KErrNone / Error value from phonet. |
|
929 |
*/ |
|
930 |
TInt ReadLifeTimerFromPermanentMemory( const TUint8 aTransId ); |
|
931 |
||
932 |
/** |
|
933 |
* Breaks a PERM_PM_RECORD_READ_RESP ISI-message. |
|
934 |
* @param const TIsiReceiveC& aIsiMessage: Received isi message. |
|
935 |
* @return void: none |
|
936 |
*/ |
|
937 |
void LifeTimerFromPermanentMemoryReadResponse( |
|
938 |
const TIsiReceiveC& aIsiMessage ); |
|
939 |
||
940 |
/** |
|
941 |
* Construcst PERM_PM_RECORD_WRITE_REQ message sends it through |
|
942 |
* phonet. |
|
943 |
* @param TUint8 aTransId: Transaction id. |
|
944 |
* @return TInt: KErrNone / Error value from phonet / KErrNotReady if PMM |
|
945 |
* has not been able to be read. |
|
946 |
*/ |
|
947 |
TInt WriteLifeTimerToPermanentMemory( |
|
948 |
const TUint8 aTransId, |
|
949 |
TTimeIntervalSeconds aTime ); |
|
950 |
||
951 |
/** |
|
952 |
* Breaks a PERM_PM_RECORD_WRITE_RESP ISI-message. |
|
953 |
* @param const TIsiReceiveC& aIsiMessage: Received isi message. |
|
954 |
* @return void: none |
|
955 |
*/ |
|
956 |
void LifeTimerToPermanentMemoryWriteResponse( |
|
957 |
const TIsiReceiveC& aIsiMessage ); |
|
958 |
||
959 |
/** |
|
960 |
* Reads total call life timer value and returns it in complete. |
|
961 |
* If |
|
962 |
* @param none |
|
963 |
* @return TInt: KErrNone / KErrNotReady if PMM has not been able to be |
|
964 |
* read. |
|
965 |
*/ |
|
966 |
TInt GetTotalLifeTimerValue(); |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
967 |
|
0 | 968 |
/** |
969 |
* Constructs and sends AUTHENTICATE APDU to the UICC |
|
970 |
* @param aDataPackage: data containing authentication parameters |
|
971 |
* @return TInt: KErrNone / Error value from phonet |
|
972 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
973 |
TInt CMmCustomMessHandler::UiccSendAuthenticateApdu( |
0 | 974 |
const CMmDataPackage& aDataPackage ); |
975 |
||
976 |
||
977 |
/** |
|
978 |
* Constructs RUN GSM ALGORITHM APDU. Used when authentication |
|
979 |
* is done for ICC card |
|
980 |
* @param aParams: parameter where the apdu is constructed |
|
981 |
* @param aRand: RAND value inserted to the APDU |
|
982 |
* @param aTraId: tr id used in UICC request |
|
983 |
* @return void: none |
|
984 |
*/ |
|
985 |
void UiccCreateRunGsmAlgorithmApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
986 |
TUiccSendApdu& aParams, |
0 | 987 |
const TDesC8& aRand, |
988 |
TUiccTrId aTraId ); |
|
989 |
||
990 |
/** |
|
991 |
* Handles response APDU for RUN GSM ALGORITHM APDU |
|
992 |
* @param aTraId: transaction id of received message |
|
993 |
* @param aStatus: status of the response |
|
994 |
* @param aFileData: response apdu |
|
995 |
* @return void: none |
|
996 |
*/ |
|
997 |
void UiccRunGsmAlgorithmApduResp( |
|
998 |
TInt aTraId, |
|
999 |
TInt aStatus, |
|
1000 |
const TDesC8& aFileData ); |
|
1001 |
||
1002 |
/** |
|
1003 |
* Constructs GSM context AUTHENTICATE APDU |
|
1004 |
* @param params: parameter where the apdu is constructed |
|
1005 |
* @param aDataPackage: data containing authentication parameters |
|
1006 |
* @return void: none |
|
1007 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1008 |
void UiccCreateGsmSecurityContextApdu( |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1009 |
TUiccSendApdu& params, |
0 | 1010 |
const CMmDataPackage& aDataPackage ); |
1011 |
||
1012 |
/** |
|
1013 |
* Handles response APDU for GSM security context AUTHENTICATE APDU |
|
1014 |
* @param aTraId: transaction id of received message |
|
1015 |
* @param aStatus: status of the response |
|
1016 |
* @param aFileData: response apdu |
|
1017 |
* @return void: none |
|
1018 |
*/ |
|
1019 |
void UiccGsmSecurityContextApduResp( |
|
1020 |
TInt aTraId, |
|
1021 |
TInt aStatus, |
|
1022 |
const TDesC8& aFileData ); |
|
1023 |
||
1024 |
/** |
|
1025 |
* Constructs 3G security context AUTHENTICATE APDU |
|
1026 |
* @param aParams: parameter where the apdu is constructed |
|
1027 |
* @param aRand: RAND value inserted to the APDU |
|
1028 |
* @param aAuth: AUTH value inserted to the APDU |
|
1029 |
* @param aTraId: tr id used in UICC request |
|
1030 |
* @return void: none |
|
1031 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1032 |
void UiccCreate3GSecurityContextApdu( |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1033 |
TUiccSendApdu& aParams, |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1034 |
const TDesC8& aRand, |
0 | 1035 |
const TDesC8& aAuth, |
1036 |
TUiccTrId aTraId ); |
|
1037 |
||
1038 |
/** |
|
1039 |
* Handles response APDU for 3G security context AUTHENTICATE APDU |
|
1040 |
* @param aTraId: transaction id of received message |
|
1041 |
* @param aStatus: status of the response |
|
1042 |
* @param aFileData: response apdu |
|
1043 |
* @return void: none |
|
1044 |
*/ |
|
1045 |
void Uicc3GSecurityContextApduResp( |
|
1046 |
TInt aTraId, |
|
1047 |
TInt aStatus, |
|
1048 |
const TDesC8& aFileData ); |
|
1049 |
||
1050 |
/** |
|
1051 |
* Constructs GBA security context AUTHENTICATE APDU (bootstrapping mode) |
|
1052 |
* @param aParams: parameter where the apdu is constructed |
|
1053 |
* @param aDataPackage: data containing authentication parameters |
|
1054 |
* @return void: none |
|
1055 |
*/ |
|
1056 |
void UiccCreateGBABootstrappingApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1057 |
TUiccSendApdu& aParams, |
0 | 1058 |
const CMmDataPackage& aDataPackage ); |
1059 |
||
1060 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1061 |
* Handles response APDU for GBA security context AUTHENTICATE |
0 | 1062 |
* APDU (bootstrapping mode) |
1063 |
* @param aTraId: transaction id of received message |
|
1064 |
* @param aStatus: status of the response |
|
1065 |
* @param aFileData: response apdu |
|
1066 |
* @return void: none |
|
1067 |
*/ |
|
1068 |
void UiccGBABootstrappingApduResp( |
|
1069 |
TInt aTraId, |
|
1070 |
TInt aStatus, |
|
1071 |
const TDesC8& aFileData ); |
|
1072 |
||
1073 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1074 |
* Starts GBA bootstrap operation by reading elementary file EFgba. After reading |
0 | 1075 |
* is done, B-Tid and keylifetime is updated to EFgba |
1076 |
* @param aDataPackage: data containing parameters going to be written |
|
1077 |
* to the EFgba |
|
1078 |
* @return void: none |
|
1079 |
*/ |
|
1080 |
void UiccGBABootstrapUpdate( |
|
1081 |
const CMmDataPackage& aDataPackage ); |
|
1082 |
||
1083 |
/** |
|
1084 |
* Handles response for EFgba read operation |
|
1085 |
* @param aStatus: status of the response |
|
1086 |
* @param aFileData: file data |
|
1087 |
* @return void: none |
|
1088 |
*/ |
|
1089 |
void UiccGBABootstrapReadResp( |
|
1090 |
TInt aStatus, |
|
1091 |
const TDesC8& aFileData ); |
|
1092 |
||
1093 |
/** |
|
1094 |
* Handles response for EFgba write operation |
|
1095 |
* @param aStatus: status of the response |
|
1096 |
* @return void: none |
|
1097 |
*/ |
|
1098 |
void UiccGBABootstrapUpdateResp( TInt aStatus ); |
|
1099 |
||
1100 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1101 |
* Constructs GBA security context AUTHENTICATE APDU |
0 | 1102 |
* (NAF derivation mode) |
1103 |
* @param aParams: parameter where the apdu is constructed |
|
1104 |
* @param aDataPackage: data containing authentication parameters |
|
1105 |
* @return void: none |
|
1106 |
*/ |
|
1107 |
void UiccCreateGBABootstrapNafDerivationApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1108 |
TUiccSendApdu& aParams, |
0 | 1109 |
const CMmDataPackage& aDataPackage ); |
1110 |
||
1111 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1112 |
* Handles response APDU for GBA security context AUTHENTICATE |
0 | 1113 |
* APDU (NAF derivation mode) |
1114 |
* @param aTraId: transaction id of received message |
|
1115 |
* @param aStatus: status of the response |
|
1116 |
* @param aFileData: response apdu |
|
1117 |
* @return void: none |
|
1118 |
*/ |
|
1119 |
void UiccGBANafDerivationApduResp( |
|
1120 |
TInt aTraId, |
|
1121 |
TInt aStatus, |
|
1122 |
const TDesC8& aFileData ); |
|
1123 |
||
1124 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1125 |
* Constructs MBMS security context AUTHENTICATE APDU |
0 | 1126 |
* (MSK Update Mode) |
1127 |
* @param params: parameter where the apdu is constructed |
|
1128 |
* @param aDataPackage: data containing authentication parameters |
|
1129 |
* @return void: none |
|
1130 |
*/ |
|
1131 |
void UiccCreateMbmsMskUpdateApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1132 |
TUiccSendApdu& params, |
0 | 1133 |
const CMmDataPackage& aDataPackage ); |
1134 |
||
1135 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1136 |
* Handles response APDU for MBMS security context AUTHENTICATE |
0 | 1137 |
* APDU (MSK Update Mode) |
1138 |
* @param aTraId: transaction id of received message |
|
1139 |
* @param aStatus: status of the response |
|
1140 |
* @param aFileData: response apdu |
|
1141 |
* @return void: none |
|
1142 |
*/ |
|
1143 |
void UiccMbmsMskUpdateApduResp( |
|
1144 |
TInt aStatus, |
|
1145 |
const TDesC8& aFileData ); |
|
1146 |
||
1147 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1148 |
* Constructs MBMS security context AUTHENTICATE APDU |
0 | 1149 |
* (MTK Generation Mode) |
1150 |
* @param params: parameter where the apdu is constructed |
|
1151 |
* @param aDataPackage: data containing authentication parameters |
|
1152 |
* @return void: none |
|
1153 |
*/ |
|
1154 |
void UiccCreateMbmsMtkGenerationApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1155 |
TUiccSendApdu& params, |
0 | 1156 |
const CMmDataPackage& aDataPackage ); |
1157 |
||
1158 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1159 |
* Handles response APDU for MBMS security context AUTHENTICATE |
0 | 1160 |
* APDU (MTK Generation Mode) |
1161 |
* @param aStatus: status of the response |
|
1162 |
* @param aFileData: response apdu |
|
1163 |
* @return void: none |
|
1164 |
*/ |
|
1165 |
void UiccMbmsMtkGenerationApduResp( |
|
1166 |
TInt aStatus, |
|
1167 |
const TDesC8& aFileData ); |
|
1168 |
||
1169 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1170 |
* Constructs MBMS security context AUTHENTICATE APDU |
0 | 1171 |
* (MSK Deletion Mode) |
1172 |
* @param params: parameter where the apdu is constructed |
|
1173 |
* @param aDataPackage: data containing authentication parameters |
|
1174 |
* @return void: none |
|
1175 |
*/ |
|
1176 |
void UiccCreateMbmsMskDeletionApdu( |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1177 |
TUiccSendApdu& params, |
0 | 1178 |
const CMmDataPackage& aDataPackage ); |
1179 |
||
1180 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1181 |
* Handles response APDU for MBMS security context AUTHENTICATE |
0 | 1182 |
* APDU (MSK Deletion Mode) |
1183 |
* @param aStatus: status of the response |
|
1184 |
* @param aFileData: response apdu |
|
1185 |
* @return void: none |
|
1186 |
*/ |
|
1187 |
void UiccMbmsMskDeletionApduResp( |
|
1188 |
TInt aStatus, |
|
1189 |
const TDesC8& aFileData ); |
|
1190 |
||
1191 |
/** |
|
1192 |
* Constructs APDU to get first block of authenticate response data |
|
1193 |
* in case of odd ins code |
|
1194 |
* @return void: none |
|
1195 |
*/ |
|
1196 |
void CMmCustomMessHandler::UiccCreateFirstBlockOfAuthRespApdu( TUiccTrId aTrId ); |
|
1197 |
||
1198 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1199 |
* Maps sw1 and sw2 from response authenticate apdu to result |
0 | 1200 |
* @param sw1: status of the response |
1201 |
* @param sw2: response apdu |
|
1202 |
* @return TUint8: command result |
|
1203 |
*/ |
|
1204 |
TUint8 MapSw1Sw2ToAuthenticateResult( TUint8 sw1, TUint8 sw2 ); |
|
1205 |
||
1206 |
/** |
|
1207 |
* Validates received apdu |
|
1208 |
* @param aTraId: Identifies the apdu |
|
1209 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1210 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1211 |
* otherwise KApduNok |
1212 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1213 |
TUint8 ValidateReceivedAuthenticateApdu( |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1214 |
TInt aTraId, |
0 | 1215 |
const TDesC8& aApdu ); |
1216 |
||
1217 |
/** |
|
1218 |
* Validates received gsm security context apdu for authenticate |
|
1219 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1220 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1221 |
* otherwise KApduNok |
1222 |
*/ |
|
1223 |
TUint8 ValidateGsmSecurityContextApduResp( const TDesC8& aApdu ); |
|
1224 |
||
1225 |
/** |
|
1226 |
* Validates received 3G security context apdu for authenticate |
|
1227 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1228 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1229 |
* otherwise KApduNok |
1230 |
*/ |
|
1231 |
TUint8 Validate3GSecurityContextApduResp( const TDesC8& aApdu ); |
|
1232 |
||
1233 |
/** |
|
1234 |
* Validates received GBA security context apdu (GBA bootstrapping mode) |
|
1235 |
* for authenticate |
|
1236 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1237 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1238 |
* otherwise KApduNok |
1239 |
*/ |
|
1240 |
TUint8 ValidateGBABootstrappingApduResp( const TDesC8& aApdu ); |
|
1241 |
||
1242 |
/** |
|
1243 |
* Validates received GBA security context apdu (GBA NAF derivation mode) |
|
1244 |
* for authenticate |
|
1245 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1246 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1247 |
* otherwise KApduNok |
1248 |
*/ |
|
1249 |
TUint8 ValidateGBANafDerivationApduResp( const TDesC8& aApdu ); |
|
1250 |
||
1251 |
/** |
|
1252 |
* Validates received RUN GSM ALGORITHM apdu for authenticate |
|
1253 |
* @param aApdu: APDU to be verified |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1254 |
* @return TUint8: KApduOk if verified successfully, |
0 | 1255 |
* otherwise KApduNok |
1256 |
*/ |
|
1257 |
TUint8 ValidateRunGsmAlgorithmApduResp( const TDesC8& aApdu ); |
|
1258 |
||
1259 |
/** |
|
1260 |
* Handles MBMS operation data from received MSK Update |
|
1261 |
* authenticate APDU |
|
1262 |
* @param aMskUpdate: parameters from MBMS operation data are |
|
1263 |
* inserted to aMskUpdate |
|
1264 |
* @param aMbmsData: MBMS data got from MSK Update authenticate |
|
1265 |
* APDU |
|
1266 |
* @return void: none |
|
1267 |
*/ |
|
1268 |
void UiccMskUpdateHandleMbmsOperationData( |
|
1269 |
RMmCustomAPI::TSimAuthenticationMgvMskUpdate& aMskUpdate, |
|
1270 |
TDesC8& aMbmsData ); |
|
1271 |
||
1272 |
/** |
|
1273 |
* Handles OMA BCAST operation data from received authenticate |
|
1274 |
* APDU |
|
1275 |
* @param aMskUpdate: parameters from MBMS operation data are |
|
1276 |
* inserted to aMskUpdate |
|
1277 |
* @param aMbmsData: APDU data |
|
1278 |
* @return void: none |
|
1279 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1280 |
void UiccMskUpdateHandleOMABcastOperationData( |
0 | 1281 |
RMmCustomAPI::TSimAuthenticationMgvMskUpdate& aMskUpdate, |
1282 |
TDesC8& aMbmsData ); |
|
1283 |
||
1284 |
/** |
|
1285 |
* Handles MBMS operation data from received MTK Generation |
|
1286 |
* authenticate APDU |
|
1287 |
* @param aMskUpdate: parameters from MBMS operation data are |
|
1288 |
* inserted to aMskUpdate |
|
1289 |
* @param aMbmsData: APDU data |
|
1290 |
* @return void: none |
|
1291 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1292 |
void UiccMtkGenHandleMbmsOperationData( |
0 | 1293 |
RMmCustomAPI::TSimAuthenticationMgvMtkGeneration& aMtkGen, |
1294 |
TDesC8& aMbmsData ); |
|
1295 |
||
1296 |
/** |
|
1297 |
* Handles OMA BCAST operation data from received MTK Generation |
|
1298 |
* authenticate APDU |
|
1299 |
* @param aMtkGen: parameters from MBMS operation data are |
|
1300 |
* inserted to aMtkGen |
|
1301 |
* @param aMbmsData: APDU data |
|
1302 |
* @return void: none |
|
1303 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1304 |
void UiccMtkGenHandleOMABcastOperationData( |
0 | 1305 |
RMmCustomAPI::TSimAuthenticationMgvMtkGeneration& aMtkGen, |
1306 |
TDesC8& aMbmsData ); |
|
1307 |
||
1308 |
/** |
|
1309 |
* Finds tlv objects from BER TLV object |
|
1310 |
* @param aTlvTag: tag of teh tlv object to be search |
|
1311 |
* @param aBerTlv: BER TLV object where to search |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1312 |
* @param aTlvObject: tlv object data is copied to this |
0 | 1313 |
* parameter, if it's found |
1314 |
* @return TBool: ETrue if tlv object found, otherwise EFalse |
|
1315 |
*/ |
|
1316 |
TBool FindTlvObject( |
|
1317 |
TUint8 aTlvTag, |
|
1318 |
const TDesC8& aBerTlv, |
|
1319 |
TDes8& aTlvObject ); |
|
1320 |
||
1321 |
/** |
|
1322 |
* calculates the UMTS Ciphering Key (CK) from the GSM |
|
1323 |
* Ciphering Key (Kc). This is done by using the c4 algorithm defined in |
|
1324 |
* 3GPP TS 33.102 v3.8.0 (Release 1999). |
|
1325 |
* @param aCk: Result is inserted to this parameter |
|
1326 |
* @param aKc: Kc which is used in calculation |
|
1327 |
* @return void: none |
|
1328 |
*/ |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
1329 |
void DeriveCkFromKc( |
0 | 1330 |
TDes8& aCk, |
1331 |
const TDesC8& aKc ); |
|
1332 |
||
1333 |
/** derives the UMTS Integrity Key (IK) from the GSM |
|
1334 |
* Ciphering Key (Kc). This is done by using the c5 algorithm defined in |
|
1335 |
* 3GPP TS 33.102 v3.8.0 (release 1999). |
|
1336 |
* @param aEapAka: Result is inserted to this parameter |
|
1337 |
* @param aKc: Kc which is used in calculation |
|
1338 |
* @return void: none |
|
1339 |
*/ |
|
1340 |
void DeriveIkFromKc( |
|
1341 |
TDes8& aIk, |
|
1342 |
const TDesC8& aKc ); |
|
1343 |
||
1344 |
/** Handles the IMS authentication |
|
1345 |
* @param aDataPackage: data containing authentication parameters |
|
1346 |
* @return TInt: KErrNone / Error value from phonet |
|
1347 |
*/ |
|
1348 |
TInt UiccHandleImsAuthentication( const CMmDataPackage& aDataPackage ); |
|
1349 |
||
1350 |
/** |
|
1351 |
* Handles response for ISim application activation |
|
1352 |
* @param aStatus: status of the response |
|
1353 |
* @return void: none |
|
1354 |
*/ |
|
1355 |
void UiccHandleIsimActivationResp( TInt aStatus ); |
|
1356 |
||
9 | 1357 |
/** |
1358 |
* Collects cellbroadcast topic IDs into array. Leaves if nothig found |
|
1359 |
* @param aFileData elementary file data |
|
1360 |
* @return array with topic IDs |
|
1361 |
*/ |
|
1362 |
CArrayFixFlat<RMmCustomAPI::TSimCbTopic>* CollectCbTopicIdsL( |
|
1363 |
const TDesC16& aTopicIds ) const; |
|
1364 |
||
0 | 1365 |
protected: // Data |
1366 |
||
1367 |
// Pointer to the PhonetSender |
|
1368 |
CMmPhoNetSender* iPhoNetSender; |
|
1369 |
||
1370 |
private: // Data |
|
1371 |
||
1372 |
// Pointer to the Message router |
|
1373 |
CMmMessageRouter* iMessageRouter; |
|
1374 |
||
1375 |
// Pointer to the Net message handler |
|
1376 |
CMmNetMessHandler* iNetMessHandler; |
|
1377 |
||
1378 |
// Pointer to the Security message handler |
|
1379 |
CMmSecurityMessHandler* iSecurityMessHandler; |
|
1380 |
||
1381 |
// Release cause value sent |
|
1382 |
TUint8 iReleaseCauseValueSent; |
|
1383 |
||
1384 |
// List of Ciphering values, for buffering purpose |
|
1385 |
RArray<TCiphListEntry> *iListOfCiphValues; |
|
1386 |
||
1387 |
// Is indication a refresh indication |
|
1388 |
TBool iIsRefresh; |
|
1389 |
||
1390 |
// Emergency number checking mode |
|
1391 |
RMmCustomAPI::TCheckMode iUsedEmergencyNbrCheckMode; |
|
1392 |
||
1393 |
// Lenght of the emergency number to be checked |
|
1394 |
TInt iEmergencyNumberLength; |
|
1395 |
||
1396 |
// Buffer to hold RAND_PARAMS subblock data |
|
1397 |
TBuf8<20> iRandBuf; |
|
1398 |
||
1399 |
// Buffer to hold AUTN_PARAMS subblock data |
|
1400 |
TBuf8<20> iAutnBuf; |
|
1401 |
||
1402 |
// Buffer to hold B-Tid data |
|
1403 |
TBuf8<256> iBTidBuf; |
|
1404 |
||
1405 |
// Buffer to hold keylifetime data |
|
1406 |
TBuf8<256> iKeyLifetimeBuf; |
|
1407 |
||
1408 |
// Buffer to hold SIM_SB_AM_GBA_NAF_ID_ID subblock data |
|
1409 |
TBuf8<254> iNafIdBuf; |
|
1410 |
||
1411 |
// Buffer to hold SIM_SB_IMS_PRIVATE_USER_ID subblock data |
|
1412 |
TBuf8<254> iImpiBuf; |
|
1413 |
||
1414 |
// Buffer for Mikey data. |
|
1415 |
RMmCustomAPI::TMikey iMikey; |
|
1416 |
||
1417 |
// Buffer for key domain id data |
|
1418 |
RMmCustomAPI::TKeyDomainId iKeyDomainId; |
|
1419 |
||
1420 |
// Buffer for key group id data |
|
1421 |
RMmCustomAPI::TKeyGroupId iKeyGroupIdPart; |
|
1422 |
||
1423 |
// Viag Home Zone Parameters |
|
1424 |
RMmCustomAPI::TViagParams iViagParams; |
|
1425 |
||
1426 |
// Cb msg ids max count |
|
1427 |
TInt iCbMsgIdsMaxCount; |
|
1428 |
||
1429 |
// Saves the SIM CB topic number for deletion |
|
9 | 1430 |
TUint16 iSimCBTopicToBeDeleted; |
0 | 1431 |
|
1432 |
// Is the SIM topic is being deleted (ETrue ) or not (EFalse) |
|
1433 |
TBool iTopicInSimMemoryDelete; |
|
1434 |
||
1435 |
// Enhanced Cell Information |
|
1436 |
TECIDInfo iECIDInfo; |
|
1437 |
||
1438 |
// Is ECIDInfo requested |
|
1439 |
TBool iECIDInfoRequested; |
|
1440 |
||
1441 |
// Call Life Timer; |
|
1442 |
TInt iCallLifeTimer; |
|
1443 |
||
1444 |
// Conter for record retries from PMM during read. |
|
1445 |
TUint8 iPMMReadRetryCounter; |
|
1446 |
||
1447 |
// Pointer to UICC message handler |
|
1448 |
CMmUiccMessHandler* iMmUiccMessHandler; |
|
1449 |
||
1450 |
//keeps track... |
|
1451 |
TUint8 iSapApduIfState; |
|
1452 |
||
1453 |
// is Isim application already activated |
|
1454 |
TBool iIsimApplActivated; |
|
1455 |
||
1456 |
public: // Friend classes |
|
1457 |
//None |
|
1458 |
protected: // Friend classes |
|
1459 |
//None |
|
1460 |
private: // Friend classes |
|
1461 |
//None |
|
1462 |
}; |
|
1463 |
||
1464 |
#endif // _CMMCUSTOMMESSHANDLER_H |
|
1465 |
||
1466 |
// End of File |