phoneapp/phoneuistates/src/cphonegeneralgsmmessageshandler.cpp
changeset 50 377c906a8701
parent 45 6b911d05207e
child 53 22cc52eade9b
equal deleted inserted replaced
46:bc5a64e5bc3c 50:377c906a8701
   119             {
   119             {
   120             __PHONELOG(
   120             __PHONELOG(
   121                 EBasic, 
   121                 EBasic, 
   122                 EPhoneUIStates,
   122                 EPhoneUIStates,
   123                 "CPhoneGeneralGsmMessagesHandler::EPEMessageIssuedSSRequest" );
   123                 "CPhoneGeneralGsmMessagesHandler::EPEMessageIssuedSSRequest" );
   124 
       
   125             TPhoneCmdParamBoolean booleanParam;
       
   126             booleanParam.SetBoolean( EFalse );
       
   127             iViewCommandHandle.ExecuteCommandL( 
       
   128                 EPhoneViewSetBlockingDialogStatus, 
       
   129                 &booleanParam );
       
   130             break;
   124             break;
   131             }
   125             }
   132             
   126             
   133         case MEngineMonitor::EPEMessageIssuingSSRequest:
   127         case MEngineMonitor::EPEMessageIssuingSSRequest:
   134             {
   128             {
   159             globalNotifierParam.SetBoolean( EFalse );
   153             globalNotifierParam.SetBoolean( EFalse );
   160             iViewCommandHandle.ExecuteCommandL( 
   154             iViewCommandHandle.ExecuteCommandL( 
   161                 EPhoneViewSetGlobalNotifiersDisabled,
   155                 EPhoneViewSetGlobalNotifiersDisabled,
   162                 &globalNotifierParam );
   156                 &globalNotifierParam );
   163             
   157             
   164             TPhoneCmdParamBoolean booleanParam;
       
   165             booleanParam.SetBoolean( ETrue );
       
   166             iViewCommandHandle.ExecuteCommandL( 
       
   167                 EPhoneViewSetBlockingDialogStatus, 
       
   168                 &booleanParam );
       
   169             
       
   170             // Get active call count
   158             // Get active call count
   171             TPhoneCmdParamInteger activeCallCount;
   159             TPhoneCmdParamInteger activeCallCount;
   172             iViewCommandHandle.ExecuteCommandL(
   160             iViewCommandHandle.ExecuteCommandL(
   173                 EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   161                 EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   174             
   162             
   175             if( !activeCallCount.Integer() )
       
   176                 {
       
   177                 __PHONELOG(
       
   178                     EBasic, 
       
   179                     EPhoneUIStates,
       
   180                     "CPhoneGeneralGsmMessagesHandler::EPEMessageIssuingSSRequest no active call" );
       
   181                 // Ensure that the dialer is activated to display local notes and dialogs properly.
       
   182                 TPhoneCmdParamAppInfo param;
       
   183                 param.SetAppUid( KUidPhoneApplication );
       
   184                 param.SetViewUid( KUidViewId );
       
   185                 param.SetCustomMessageId( TUid::Uid( KTouchDiallerViewCommand ) );
       
   186                 iViewCommandHandle.ExecuteCommandL( 
       
   187                     EPhoneViewActivateAppViewWithCustomMessage, 
       
   188                     &param );
       
   189                 }
       
   190             // Remove phoneumber query
   163             // Remove phoneumber query
   191             iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveQuery );
   164             iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveQuery );
   192             break;
   165             break;
   193             }
   166             }
   194 
   167