19 #include <CPhCltUssdSatClient.h> |
19 #include <CPhCltUssdSatClient.h> |
20 #include <CPhCltUssd.h> |
20 #include <CPhCltUssd.h> |
21 #include <AknGlobalNote.h> |
21 #include <AknGlobalNote.h> |
22 #include <exterror.h> |
22 #include <exterror.h> |
23 #include <avkon.rsg> |
23 #include <avkon.rsg> |
|
24 #include <centralrepository.h> |
|
25 #include <SATPrivateCRKeys.h> |
24 |
26 |
25 #include "MSatSystemState.h" |
27 #include "MSatSystemState.h" |
26 #include "MSatApi.h" |
28 #include "MSatApi.h" |
27 #include "MSatUtils.h" |
29 #include "MSatUtils.h" |
28 #include "MSatUiSession.h" |
30 #include "MSatUiSession.h" |
564 iNotificationData(), |
566 iNotificationData(), |
565 iNotificationDataPckg( iNotificationData ), |
567 iNotificationDataPckg( iNotificationData ), |
566 iNotificationRsp(), |
568 iNotificationRsp(), |
567 iNotificationRspPckg( iNotificationRsp ), |
569 iNotificationRspPckg( iNotificationRsp ), |
568 // To be removed when icons are allowed in this command |
570 // To be removed when icons are allowed in this command |
569 iIconCommand( EFalse ) |
571 iIconCommand( EFalse ), |
|
572 iIsSatDisplayUssdResult( EFalse ) |
570 { |
573 { |
571 LOG( SIMPLE, |
574 LOG( SIMPLE, |
572 "SENDUSSD: CSendUssdHandler::CSendUssdHandler calling - exiting" ) |
575 "SENDUSSD: CSendUssdHandler::CSendUssdHandler calling" ) |
|
576 CRepository* repository = NULL; |
|
577 |
|
578 TRAPD( result, repository = CRepository::NewL( KCRUidSatServer ); ); |
|
579 LOG2( NORMAL, "SENDUSSD: CSendUssdHandler::CSendUssdHandler \ |
|
580 open CRepository result: %d", result ) |
|
581 |
|
582 if ( repository && ( KErrNone == result ) ) |
|
583 { |
|
584 result = repository->Get( KSatDisplayUssdResult, |
|
585 iIsSatDisplayUssdResult ); |
|
586 LOG2( NORMAL, |
|
587 "SENDUSSD: CSendUssdHandler::CSendUssdHandler \ |
|
588 get CRepository key iIsSatDisplayUssdResult: %d", |
|
589 iIsSatDisplayUssdResult ) |
|
590 |
|
591 if ( KErrNone != result ) |
|
592 { |
|
593 LOG2( NORMAL, |
|
594 "SENDUSSD: CSendUssdHandler::CSendUssdHandler \ |
|
595 get CRepository key error result: %d", |
|
596 result ) |
|
597 } |
|
598 } |
|
599 |
|
600 delete repository; |
|
601 repository = NULL; |
|
602 |
|
603 LOG( SIMPLE, |
|
604 "SENDUSSD: CSendUssdHandler::CSendUssdHandler exiting" ) |
573 } |
605 } |
574 |
606 |
575 |
607 |
576 // ----------------------------------------------------------------------------- |
608 // ----------------------------------------------------------------------------- |
577 // Handles the Ussd string sending |
609 // Handles the Ussd string sending |
595 sendCompletedFirst, |
627 sendCompletedFirst, |
596 iSendUssdRsp.iUssdString.iDcs ) ); |
628 iSendUssdRsp.iUssdString.iDcs ) ); |
597 |
629 |
598 iSendUssdRsp.iUssdString.iUssdString.Copy( receiveMessage ); |
630 iSendUssdRsp.iUssdString.iUssdString.Copy( receiveMessage ); |
599 |
631 |
600 if ( RSat::EAlphaIdProvided != iSendUssdData.iAlphaId.iStatus ) |
632 if ( ( RSat::EAlphaIdProvided != iSendUssdData.iAlphaId.iStatus ) |
|
633 && iIsSatDisplayUssdResult ) |
601 { |
634 { |
602 // if no Alpha ID provided, show the text note. |
635 // if no Alpha ID provided, show the text note. |
603 LOG( SIMPLE, "SENDUSSD: CSendUssdHandler::SendUssdString Show Note" ) |
636 LOG( SIMPLE, "SENDUSSD: CSendUssdHandler::SendUssdString \ |
|
637 Show USSD result Note" ) |
604 TRAP_IGNORE( |
638 TRAP_IGNORE( |
605 ShowUssdResponseNoteL( iSendUssdRsp.iUssdString.iUssdString ) ); |
639 ShowUssdResponseNoteL( |
|
640 iSendUssdRsp.iUssdString.iUssdString ) ); |
606 } |
641 } |
607 |
642 |
608 HandleSendUssdResult( error ); |
643 HandleSendUssdResult( error ); |
609 |
644 |
610 LOG( SIMPLE, "SENDUSSD: CSendUssdHandler::SendUssdString exiting" ) |
645 LOG( SIMPLE, "SENDUSSD: CSendUssdHandler::SendUssdString exiting" ) |