phoneapp/phoneuistates/src/cphonecallsetup.cpp
branchRCL_3
changeset 58 40a3f856b14d
parent 19 544e34b3255a
child 61 41a7f70b3818
equal deleted inserted replaced
57:94dc1107e8b2 58:40a3f856b14d
   101     switch ( aMessage )
   101     switch ( aMessage )
   102         {
   102         {
   103         case MEngineMonitor::EPEMessageConnecting:
   103         case MEngineMonitor::EPEMessageConnecting:
   104             HandleConnectingL( aCallId );
   104             HandleConnectingL( aCallId );
   105             break;
   105             break;
   106 		
       
   107 		case MEngineMonitor::EPEMessageShowVersion:
       
   108 			{
       
   109 			if ( iStateMachine->SecurityMode()->IsSecurityMode() )
       
   110 				{
       
   111 				// Do nothing if security mode is enabled.
       
   112 				return;
       
   113 				}
       
   114 			}
       
   115 		// Fall through
       
   116 
   106 
   117         // fall through.    
   107         case MEngineMonitor::EPEMessageShowVersion:
       
   108             {
       
   109             if ( iStateMachine->SecurityMode()->IsSecurityMode() )
       
   110                 {
       
   111                 // Do nothing if security mode is enabled.
       
   112                 return;
       
   113                 }
       
   114             }
       
   115         // Fall through
   118         case MEngineMonitor::EPEMessageIssuingSSRequest:
   116         case MEngineMonitor::EPEMessageIssuingSSRequest:
   119         case MEngineMonitor::EPEMessageCallBarred:
   117         case MEngineMonitor::EPEMessageCallBarred:
   120         case MEngineMonitor::EPEMessageIssuedSSRequest:
   118         case MEngineMonitor::EPEMessageIssuedSSRequest:
   121         case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful:
   119         case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful:
   122         case MEngineMonitor::EPEMessageIncCallIsForw:
   120         case MEngineMonitor::EPEMessageIncCallIsForw:
   157     {
   155     {
   158     // Only handle connecting case for GSM protocol. In CDMA, this message is 
   156     // Only handle connecting case for GSM protocol. In CDMA, this message is 
   159     // set when the CDMA network receives the call, not (like in GSM) when
   157     // set when the CDMA network receives the call, not (like in GSM) when
   160     // when the remote party receives the call. So, in CDMA, the user
   158     // when the remote party receives the call. So, in CDMA, the user
   161     // should still be able to cancel the MO call before the call is connected.
   159     // should still be able to cancel the MO call before the call is connected.
   162     __LOGMETHODSTARTEND( EPhoneUIStates, 
   160     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneCallSetup::HandleConnectingL()");
   163         "CPhoneCallSetup::HandleConnectingL()");
       
   164     
       
   165     BeginUiUpdateLC();
   161     BeginUiUpdateLC();
   166     UpdateRemoteInfoDataL ( aCallId );
   162     UpdateRemoteInfoDataL ( aCallId );
       
   163     
       
   164     SetNeedToReturnToForegroundAppStatusL( EFalse );
   167     
   165     
   168     // Re-enable global notes
   166     // Re-enable global notes
   169     TPhoneCmdParamBoolean globalNotifierParam;
   167     TPhoneCmdParamBoolean globalNotifierParam;
   170     globalNotifierParam.SetBoolean( EFalse );
   168     globalNotifierParam.SetBoolean( EFalse );
   171     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
   169     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
   189 
   187 
   190     SetToolbarButtonLoudspeakerEnabled();
   188     SetToolbarButtonLoudspeakerEnabled();
   191 
   189 
   192     EndUiUpdate();
   190     EndUiUpdate();
   193     
   191     
   194     // Go to alerting state
       
   195     UpdateCbaL( EPhoneCallHandlingInCallCBA );
   192     UpdateCbaL( EPhoneCallHandlingInCallCBA );
   196 
       
   197     iStateMachine->ChangeState( EPhoneStateAlerting );
   193     iStateMachine->ChangeState( EPhoneStateAlerting );
   198     }
   194     }
   199 
   195 
   200 // End of File
   196 // End of File