phoneapp/phoneuistates/src/cphonesingleandcallsetupandwaiting.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 4 24062c24fe38
child 24 41a7f70b3818
equal deleted inserted replaced
22:94dc1107e8b2 23:40a3f856b14d
   118     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL() ");
   118     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetupAndWaiting::HandleKeyMessageL() ");
   119     switch ( aCode )
   119     switch ( aCode )
   120         {
   120         {
   121         // send-key
   121         // send-key
   122         case EKeyYes:
   122         case EKeyYes:
   123 			if( IsNumberEntryVisibleL() )
   123             if( IsNumberEntryVisibleL() )
   124 				{
   124                 {
   125             	CPhoneState::CallFromNumberEntryL();    						
   125                 CPhoneState::CallFromNumberEntryL();
   126 				}
   126                 }
   127 			else
   127             else
   128 				{
   128                 {
   129 				// Number entry is behind waiting call bubble
   129                 // Number entry is behind waiting call bubble
   130 				// We can't answer to waiting call in this state
   130                 // We can't answer to waiting call in this state
   131 				// so display Not allowed -note.						
   131                 // so display Not allowed -note.
   132                 CPhoneState::SendGlobalErrorNoteL( 
   132                 CPhoneState::SendGlobalErrorNoteL( EPhoneNoteTextNotAllowed );
   133                     EPhoneNoteTextNotAllowed );
   133                 }
   134 				}
       
   135             break;
   134             break;
   136             
   135             
   137         // end-key
   136         // end-key
   138         case EKeyNo:
   137         case EKeyNo:
   139             if ( aMessage == EPhoneKeyLongPress )
   138             if ( aMessage == EPhoneKeyLongPress )
   172                     }
   171                     }
   173                 }
   172                 }
   174             else
   173             else
   175                 {
   174                 {
   176                 // handle end key
   175                 // handle end key
   177                 DisconnectOutgoingCallL();              
   176                 DisconnectOutgoingCallL();
   178                 }
   177                 }
   179             break;
   178             break;
   180             
   179             
   181         default:
   180         default:
   182             // do base operation
   181             // do base operation
   595 
   594 
   596 // -----------------------------------------------------------
   595 // -----------------------------------------------------------
   597 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL
   596 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL
   598 // -----------------------------------------------------------
   597 // -----------------------------------------------------------
   599 //
   598 //
   600 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt aCallId )
   599 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt /*aCallId*/ )
   601     {
   600     {
   602     __LOGMETHODSTARTEND( EPhoneUIStates, 
   601     __LOGMETHODSTARTEND( EPhoneUIStates, 
   603 	    "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()");
   602 	    "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()");
   604 
   603 
   605     BeginUiUpdateLC();
   604     BeginUiUpdateLC();
   616 
   615 
   617 // -----------------------------------------------------------
   616 // -----------------------------------------------------------
   618 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL
   617 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL
   619 // -----------------------------------------------------------
   618 // -----------------------------------------------------------
   620 //
   619 //
   621 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt aCallId )
   620 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt /*aCallId*/ )
   622     {
   621     {
   623     __LOGMETHODSTARTEND( EPhoneUIStates, 
   622     __LOGMETHODSTARTEND( EPhoneUIStates, 
   624 	    "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()");
   623 	    "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()");
   625 
   624 
   626     BeginUiUpdateLC();
   625     BeginUiUpdateLC();