18 // |
18 // |
19 |
19 |
20 |
20 |
21 |
21 |
22 //INCLUDES |
22 //INCLUDES |
23 |
|
24 #include "OstTraceDefinitions.h" |
|
25 #ifdef OST_TRACE_COMPILER_IN_USE |
|
26 #include "CSatNotifyRefreshTraces.h" |
|
27 #endif |
|
28 |
|
29 #include <satcs.h> // Etel SAT IPC definitions |
23 #include <satcs.h> // Etel SAT IPC definitions |
30 #include "CSatTsy.h" // Tsy class header |
24 #include "CSatTsy.h" // Tsy class header |
31 #include "CSatNotifyRefresh.h" // Class header |
25 #include "CSatNotifyRefresh.h" // Class header |
32 #include "CSatNotificationsTsy.h" // Tsy class header |
26 #include "CSatNotificationsTsy.h" // Tsy class header |
33 #include "CBerTlv.h" // Ber Tlv data handling |
27 #include "CBerTlv.h" // Ber Tlv data handling |
34 #include "TTlv.h" // TTlv class |
28 #include "TTlv.h" // TTlv class |
35 #include "CSatDataPackage.h" // Parameter packing |
29 #include "CSatDataPackage.h" // Parameter packing |
|
30 #include "TfLogger.h" // For TFLOGSTRING |
36 #include "TSatUtility.h" // Utilities |
31 #include "TSatUtility.h" // Utilities |
37 #include "CSatTsyReqHandleStore.h" // Request handle class |
32 #include "CSatTsyReqHandleStore.h" // Request handle class |
38 #include "cmmmessagemanagerbase.h" // Message manager class for forwarding req. |
33 #include "cmmmessagemanagerbase.h" // Message manager class for forwarding req. |
39 //#include "CMmCustomTsy.h" // Custom Tsy class |
34 //#include "CMmCustomTsy.h" // Custom Tsy class |
40 #include "MSatTsy_IPCDefs.h" // Sat Tsy internal request types |
35 #include "MSatTsy_IPCDefs.h" // Sat Tsy internal request types |
48 CSatNotifyRefresh* CSatNotifyRefresh::NewL |
43 CSatNotifyRefresh* CSatNotifyRefresh::NewL |
49 ( |
44 ( |
50 CSatNotificationsTsy* aNotificationsTsy |
45 CSatNotificationsTsy* aNotificationsTsy |
51 ) |
46 ) |
52 { |
47 { |
53 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_NEWL_1, "CSAT: CSatNotifyRefresh::NewL"); |
48 TFLOGSTRING("CSAT: CSatNotifyRefresh::NewL"); |
54 CSatNotifyRefresh* const satNotifyRefresh = |
49 CSatNotifyRefresh* const satNotifyRefresh = |
55 new ( ELeave ) CSatNotifyRefresh( aNotificationsTsy ); |
50 new ( ELeave ) CSatNotifyRefresh( aNotificationsTsy ); |
56 CleanupStack::PushL( satNotifyRefresh ); |
51 CleanupStack::PushL( satNotifyRefresh ); |
57 satNotifyRefresh->ConstructL(); |
52 satNotifyRefresh->ConstructL(); |
58 CleanupStack::Pop( satNotifyRefresh ); |
53 CleanupStack::Pop( satNotifyRefresh ); |
59 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_NEWL_2, "CSAT: CSatNotifyRefresh::NewL, end of method"); |
54 TFLOGSTRING("CSAT: CSatNotifyRefresh::NewL, end of method"); |
60 return satNotifyRefresh; |
55 return satNotifyRefresh; |
61 } |
56 } |
62 |
57 |
63 // ----------------------------------------------------------------------------- |
58 // ----------------------------------------------------------------------------- |
64 // CSatNotifyRefresh::~CSatNotifyRefresh |
59 // CSatNotifyRefresh::~CSatNotifyRefresh |
221 ( |
216 ( |
222 CSatDataPackage* aDataPackage, |
217 CSatDataPackage* aDataPackage, |
223 TInt aErrorCode |
218 TInt aErrorCode |
224 ) |
219 ) |
225 { |
220 { |
226 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_1, "CSAT: CSatNotifyRefresh::CompleteNotifyL"); |
221 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL"); |
227 |
222 |
228 TInt ret( KErrNone ); |
223 TInt ret( KErrNone ); |
229 TBuf<1> additionalInfo; |
224 TBuf<1> additionalInfo; |
230 // Unpack parameters |
225 // Unpack parameters |
231 TPtrC8* data; |
226 TPtrC8* data; |
232 aDataPackage->UnPackData( &data ); |
227 aDataPackage->UnPackData( &data ); |
233 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_2, "CSAT: CSatNotifyRefresh::CompleteNotifyL, dataLength: %d", data->Length()); |
228 TFLOGSTRING2("CSAT: CSatNotifyRefresh::CompleteNotifyL, dataLength: %d", |
|
229 data->Length()); |
234 // Reset req handle. Returns the deleted req handle |
230 // Reset req handle. Returns the deleted req handle |
235 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
231 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
236 TsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
232 TsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
237 TTsyReqHandle reqHandleRefreshRequired = iNotificationsTsy-> |
233 TTsyReqHandle reqHandleRefreshRequired = iNotificationsTsy-> |
238 iSatReqHandleStore->ResetTsyReqHandle( |
234 iSatReqHandleStore->ResetTsyReqHandle( |
325 } |
321 } |
326 } |
322 } |
327 else if ( KFileChangeNotification == iNotificationsTsy-> |
323 else if ( KFileChangeNotification == iNotificationsTsy-> |
328 iTerminalRespData.iCommandDetails[KCommandQualifier] ) |
324 iTerminalRespData.iCommandDetails[KCommandQualifier] ) |
329 { |
325 { |
330 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_3, "CSAT: CSatNotifyRefresh::CompleteNotifyL, File list missing"); |
326 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL,\ |
|
327 File list missing"); |
331 // File list object is missing, return terminal resp immediately. |
328 // File list object is missing, return terminal resp immediately. |
332 ret = KErrCorrupt; |
329 ret = KErrCorrupt; |
333 additionalInfo.Zero(); |
330 additionalInfo.Zero(); |
334 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
331 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
335 CreateTerminalRespL( pCmdNumber, |
332 CreateTerminalRespL( pCmdNumber, |
341 switch ( iNotificationsTsy->iTerminalRespData. |
338 switch ( iNotificationsTsy->iTerminalRespData. |
342 iCommandDetails[KCommandQualifier] ) |
339 iCommandDetails[KCommandQualifier] ) |
343 { |
340 { |
344 case KSimInitFullFileChangeNotification: |
341 case KSimInitFullFileChangeNotification: |
345 { |
342 { |
346 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_4, "CSAT: CSatNotifyRefresh::CompleteNotifyL, Refresh mode: Sim init and full file change notification"); |
343 TFLOGSTRING("CSAT: CSatNotifyRefresh::\ |
|
344 CompleteNotifyL, Refresh mode: Sim init \ |
|
345 and full file change notification"); |
347 refreshV2.iType = |
346 refreshV2.iType = |
348 RSat::ESimInitFullFileChangeNotification; |
347 RSat::ESimInitFullFileChangeNotification; |
349 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
348 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
350 CSatNotificationsTsy::ECacheEFCBMID; |
349 CSatNotificationsTsy::ECacheEFCBMID; |
351 break; |
350 break; |
352 } |
351 } |
353 case KFileChangeNotification: |
352 case KFileChangeNotification: |
354 { |
353 { |
355 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_5, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh mode: File Change Notification"); |
354 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
356 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_6, "CSAT: CSatNotifyRefresh::CompleteNotifyL Number of files: %d", refreshV2.iFileList.Length() ); |
355 Refresh mode: File Change Notification"); |
|
356 TFLOGSTRING2("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
357 Number of files: %d", |
|
358 refreshV2.iFileList.Length() ); |
357 refreshV2.iType = RSat::EFileChangeNotification; |
359 refreshV2.iType = RSat::EFileChangeNotification; |
358 |
360 |
359 if ( ( KErrNotFound != refreshV2.iFileList.Locate( |
361 if ( ( KErrNotFound != refreshV2.iFileList.Locate( |
360 RSat::KImsiEf ) ) && |
362 RSat::KImsiEf ) ) && |
361 ( !fileListTlv.GetComprehensionRequired() ) ) |
363 ( !fileListTlv.GetComprehensionRequired() ) ) |
374 } |
376 } |
375 break; |
377 break; |
376 } |
378 } |
377 case KSimInitFileChangeNotification: |
379 case KSimInitFileChangeNotification: |
378 { |
380 { |
379 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_7, "CSAT: CSatNotifyRefresh::CompleteNotifyL, Refresh mode: Sim init and file change notification"); |
381 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL,\ |
380 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_8, "CSAT: CSatNotifyRefresh::CompleteNotifyL Number of files: %d", refreshV2.iFileList.Length() ); |
382 Refresh mode: Sim init and file \ |
|
383 change notification"); |
|
384 TFLOGSTRING2("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
385 Number of files: %d", |
|
386 refreshV2.iFileList.Length() ); |
381 refreshV2.iType = RSat::ESimInitFileChangeNotification; |
387 refreshV2.iType = RSat::ESimInitFileChangeNotification; |
382 break; |
388 break; |
383 } |
389 } |
384 case KSimInit: |
390 case KSimInit: |
385 { |
391 { |
386 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_9, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh mode: Sim init "); |
392 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
393 Refresh mode: Sim init "); |
387 refreshV2.iType = RSat::ESimInit; |
394 refreshV2.iType = RSat::ESimInit; |
388 iInternalCache = CSatNotificationsTsy::ECacheEFSST |
395 iInternalCache = CSatNotificationsTsy::ECacheEFSST |
389 + CSatNotificationsTsy::ECacheEFCBMID; |
396 + CSatNotificationsTsy::ECacheEFCBMID; |
390 // Used in case of SimInit refresh + Imsi change |
397 // Used in case of SimInit refresh + Imsi change |
391 iImsiState = ERefreshSimInitReceived; |
398 iImsiState = ERefreshSimInitReceived; |
392 break; |
399 break; |
393 } |
400 } |
394 case KSimReset: |
401 case KSimReset: |
395 { |
402 { |
396 refreshV2.iType = RSat::ESimReset; |
403 refreshV2.iType = RSat::ESimReset; |
397 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_10, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh mode: Reset"); |
404 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
405 Refresh mode: Reset"); |
398 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
406 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
399 CSatNotificationsTsy::ECacheEFCBMID; |
407 CSatNotificationsTsy::ECacheEFCBMID; |
400 break; |
408 break; |
401 } |
409 } |
402 case KUSIMApplicationReset: |
410 case KUSIMApplicationReset: |
403 { |
411 { |
404 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_11, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh mode: USIM Application Reset"); |
412 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
413 Refresh mode: USIM Application Reset"); |
405 refreshV2.iType = RSat::EUsimApplicationReset; |
414 refreshV2.iType = RSat::EUsimApplicationReset; |
406 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
415 iInternalCache = CSatNotificationsTsy::ECacheEFSST + |
407 CSatNotificationsTsy::ECacheEFCBMID; |
416 CSatNotificationsTsy::ECacheEFCBMID; |
408 break; |
417 break; |
409 } |
418 } |
410 case K3GSessionReset: |
419 case K3GSessionReset: |
411 { |
420 { |
412 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_12, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh mode: 3G Session Reset"); |
421 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
422 Refresh mode: 3G Session Reset"); |
413 refreshV2.iType = RSat::E3GSessionReset; |
423 refreshV2.iType = RSat::E3GSessionReset; |
414 break; |
424 break; |
415 } |
425 } |
416 default: |
426 default: |
417 { |
427 { |
418 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_13, "CSAT: CSatNotifyRefresh::CompleteNotifyL Refresh type not set!"); |
428 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL\ |
|
429 Refresh type not set!"); |
419 // This migth be an error case |
430 // This migth be an error case |
420 refreshV2.iType = RSat::ERefreshTypeNotSet; |
431 refreshV2.iType = RSat::ERefreshTypeNotSet; |
421 break; |
432 break; |
422 } |
433 } |
423 } |
434 } |
448 |
459 |
449 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandleRefreshRequired, ret ); |
460 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandleRefreshRequired, ret ); |
450 } |
461 } |
451 else |
462 else |
452 { |
463 { |
453 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETENOTIFYL_14, "CSAT: CSatNotifyRefresh::CompleteNotifyL, One or more of the requests not ongoing"); |
464 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteNotifyL,\ |
|
465 One or more of the requests not ongoing"); |
454 // Some of the request were not on, returning response immediately |
466 // Some of the request were not on, returning response immediately |
455 additionalInfo.Zero(); |
467 additionalInfo.Zero(); |
456 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
468 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
457 CreateTerminalRespL( pCmdNumber, RSat::KMeUnableToProcessCmd, |
469 CreateTerminalRespL( pCmdNumber, RSat::KMeUnableToProcessCmd, |
458 additionalInfo ); |
470 additionalInfo ); |
494 if ( ( ( KSimReset != iNotificationsTsy->iTerminalRespData. |
506 if ( ( ( KSimReset != iNotificationsTsy->iTerminalRespData. |
495 iCommandDetails[KCommandQualifier] ) || |
507 iCommandDetails[KCommandQualifier] ) || |
496 ( RSat::KSuccess != rspV1.iGeneralResult ) ) && |
508 ( RSat::KSuccess != rspV1.iGeneralResult ) ) && |
497 ( EImsiNotEqual != iImsiState ) ) |
509 ( EImsiNotEqual != iImsiState ) ) |
498 { |
510 { |
499 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_TERMINALRESPONSEL_2, "CSAT: CSatNotifyRefresh::TerminalResponseL, S60 has done the Refresh" ); |
511 TFLOGSTRING("CSAT: CSatNotifyRefresh::TerminalResponseL, \ |
|
512 S60 has done the Refresh" ); |
500 // Send terminal response |
513 // Send terminal response |
501 CreateTerminalRespL( pCmdNumber, (TUint8) rspV1.iGeneralResult, |
514 CreateTerminalRespL( pCmdNumber, (TUint8) rspV1.iGeneralResult, |
502 additionalInfo ); |
515 additionalInfo ); |
503 // Case was not SimInit refresh + Imsi change, set back to default |
516 // Case was not SimInit refresh + Imsi change, set back to default |
504 iImsiState = ENotSet; |
517 iImsiState = ENotSet; |
524 void CSatNotifyRefresh::CompleteImsiChange |
537 void CSatNotifyRefresh::CompleteImsiChange |
525 ( |
538 ( |
526 // None |
539 // None |
527 ) |
540 ) |
528 { |
541 { |
529 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEIMSICHANGE_1, "CSAT: CSatNotifyRefresh::CompleteImsiChange"); |
542 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteImsiChange"); |
530 if ( ERefreshSimInitReceived == iImsiState ) |
543 if ( ERefreshSimInitReceived == iImsiState ) |
531 { |
544 { |
532 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEIMSICHANGE_2, "CSAT: CSatNotifyRefresh::CompleteImsiChange, IMSI not equal"); |
545 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteImsiChange, \ |
|
546 IMSI not equal"); |
533 iImsiState = EImsiNotEqual; |
547 iImsiState = EImsiNotEqual; |
534 } |
548 } |
535 } |
549 } |
536 |
550 |
537 // ----------------------------------------------------------------------------- |
551 // ----------------------------------------------------------------------------- |
585 TInt CSatNotifyRefresh::RefreshAllowedL |
599 TInt CSatNotifyRefresh::RefreshAllowedL |
586 ( |
600 ( |
587 const TDataPackage& aPackage |
601 const TDataPackage& aPackage |
588 ) |
602 ) |
589 { |
603 { |
590 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_REFRESHALLOWEDL_1, "CSAT: CSatNotifyRefresh::RefreshAllowed "); |
604 TFLOGSTRING("CSAT: CSatNotifyRefresh::RefreshAllowed "); |
591 RSat::TRefreshRspV1Pckg* aRspPckg = |
605 RSat::TRefreshRspV1Pckg* aRspPckg = |
592 reinterpret_cast<RSat::TRefreshRspV1Pckg*>( aPackage.Des1n() ); |
606 reinterpret_cast<RSat::TRefreshRspV1Pckg*>( aPackage.Des1n() ); |
593 RSat::TRefreshRspV1& rspV1 = ( *aRspPckg ) (); |
607 RSat::TRefreshRspV1& rspV1 = ( *aRspPckg ) (); |
594 TUint8 pCmdNumber( rspV1.PCmdNumber() ); |
608 TUint8 pCmdNumber( rspV1.PCmdNumber() ); |
595 CSatNotificationsTsy::TRefreshInfo refreshInfo; |
609 CSatNotificationsTsy::TRefreshInfo refreshInfo; |
609 ESatTsyServiceRequest, &dataPackage ); |
623 ESatTsyServiceRequest, &dataPackage ); |
610 } |
624 } |
611 else |
625 else |
612 { |
626 { |
613 // Refresh not allowed by the client |
627 // Refresh not allowed by the client |
614 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_REFRESHALLOWEDL_2, "CSAT: CSatNotifyRefresh::RefreshAllowed, refresh was not allowed by the client"); |
628 TFLOGSTRING("CSAT: CSatNotifyRefresh::RefreshAllowed, refresh was not \ |
|
629 allowed by the client"); |
615 TBuf<RSat::KAdditionalInfoMaxSize> additionalInfo; |
630 TBuf<RSat::KAdditionalInfoMaxSize> additionalInfo; |
616 additionalInfo.Append(RSat::KNoSpecificMeProblem); |
631 additionalInfo.Append(RSat::KNoSpecificMeProblem); |
617 if ( RSat::KNoAdditionalInfo != rspV1.iInfoType ) |
632 if ( RSat::KNoAdditionalInfo != rspV1.iInfoType ) |
618 { |
633 { |
619 additionalInfo.Zero(); |
634 additionalInfo.Zero(); |
637 ( |
652 ( |
638 CSatDataPackage* aDataPackage, |
653 CSatDataPackage* aDataPackage, |
639 TInt /*aErrorCode*/ |
654 TInt /*aErrorCode*/ |
640 ) |
655 ) |
641 { |
656 { |
642 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETETERMINALRESPDATAL_1, "CSAT: CSatNotifyRefresh::CompleteTerminalRespDataL"); |
657 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteTerminalRespDataL"); |
643 TInt ret( KErrNone ); |
658 TInt ret( KErrNone ); |
644 CSatNotificationsTsy::TTerminalRespData* terminalRespData; |
659 CSatNotificationsTsy::TTerminalRespData* terminalRespData; |
645 // Send terminal response |
660 // Send terminal response |
646 aDataPackage->UnPackData( &terminalRespData ); |
661 aDataPackage->UnPackData( &terminalRespData ); |
647 CreateTerminalRespL( iNotificationsTsy->iTerminalRespData.iPCmdNumber, |
662 CreateTerminalRespL( iNotificationsTsy->iTerminalRespData.iPCmdNumber, |
664 { |
679 { |
665 // Reset req handle. Returns the deleted req handle |
680 // Reset req handle. Returns the deleted req handle |
666 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
681 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
667 ResetTsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
682 ResetTsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
668 |
683 |
669 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEREQUEST_1, "CSAT: CSatNotifyRefresh::CompleteRequest.\n\t\t\t Handle:%d\n\t\t\t Error:%d", reqHandle, aErrorCode); |
684 TFLOGSTRING3("CSAT: CSatNotifyRefresh::CompleteRequest.\ |
|
685 \n\t\t\t Handle:%d\n\t\t\t Error:%d", reqHandle, aErrorCode); |
670 |
686 |
671 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandle, aErrorCode); |
687 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandle, aErrorCode); |
672 |
688 |
673 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEREQUEST_2, "CSAT: CSatNotifyRefresh::CompleteRequest. Request is now completed"); |
689 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteRequest. Request is \ |
|
690 now completed"); |
674 } |
691 } |
675 #else //USING_CTSY_DISPATCHER |
692 #else //USING_CTSY_DISPATCHER |
676 void CSatNotifyRefresh::CompleteRequest |
693 void CSatNotifyRefresh::CompleteRequest |
677 ( |
694 ( |
678 CSatDataPackage* aDataPackage, |
695 CSatDataPackage* aDataPackage, |
683 aDataPackage->UnPackData( retValue ); |
700 aDataPackage->UnPackData( retValue ); |
684 // Reset req handle. Returns the deleted req handle |
701 // Reset req handle. Returns the deleted req handle |
685 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
702 TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> |
686 ResetTsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
703 ResetTsyReqHandle( CSatTsy::ESatNotifyRefreshPCmdReqType ); |
687 |
704 |
688 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEREQUEST1_1, "CSAT: CSatNotifyRefresh::CompleteRequest. \n\t\t\t Handle:%d\n\t\t\t Error:%d", reqHandle, retValue); |
705 TFLOGSTRING3("CSAT: CSatNotifyRefresh::CompleteRequest.\ |
|
706 \n\t\t\t Handle:%d\n\t\t\t Error:%d", reqHandle, retValue); |
689 |
707 |
690 if(CSatTsy::ESatReqHandleUnknown != reqHandle) |
708 if(CSatTsy::ESatReqHandleUnknown != reqHandle) |
691 { |
709 { |
692 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandle, retValue ); |
710 iNotificationsTsy->iSatTsy->ReqCompleted( reqHandle, retValue ); |
693 |
711 |
694 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYREFRESH_COMPLETEREQUEST1_2, "CSAT: CSatNotifyRefresh::CompleteRequest. Request is now completed"); |
712 TFLOGSTRING("CSAT: CSatNotifyRefresh::CompleteRequest. Request is \ |
|
713 now completed"); |
695 } |
714 } |
696 |
715 |
697 } |
716 } |
698 #endif //USING_CTSY_DISPATCHER |
717 #endif //USING_CTSY_DISPATCHER |
699 |
718 |