phoneapp/phoneuivoipextension/src/cphonestatesinglevoip.cpp
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 51 f39ed5e045e0
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
   132 
   132 
   133     switch( aCommand )
   133     switch( aCommand )
   134         {
   134         {
   135         case EPhoneNumberAcqCmdInternetCall:
   135         case EPhoneNumberAcqCmdInternetCall:
   136             StateUtils().SelectServiceAndDialL();
   136             StateUtils().SelectServiceAndDialL();
   137         	break;
   137             break;
   138      	
   138         
   139         case EPhoneNumberAcqCmdSendCommand:
   139         case EPhoneNumberAcqCmdSendCommand:
   140             StartCallingL();
   140             StartCallingL();
   141             break;
   141             break;
   142          
   142          
   143         case EPhoneCmdAcceptUnattendedTransfer:
   143         case EPhoneCmdAcceptUnattendedTransfer:
   192                 CPhoneSingleCall::HandleKeyMessageL( aMessage, aKeyCode );
   192                 CPhoneSingleCall::HandleKeyMessageL( aMessage, aKeyCode );
   193                 }
   193                 }
   194             }
   194             }
   195             break;
   195             break;
   196             
   196             
   197 		default:
   197         default:
   198 			CPhoneSingleCall::HandleKeyMessageL( aMessage, aKeyCode );
   198             CPhoneSingleCall::HandleKeyMessageL( aMessage, aKeyCode );
   199 			break;
   199             break;
   200         }
   200         }
   201     }
   201     }
   202 
   202 
   203 // -----------------------------------------------------------
   203 // -----------------------------------------------------------
   204 // CPhoneStateSingleVoIP::StartCallingL
   204 // CPhoneStateSingleVoIP::StartCallingL
   205 // -----------------------------------------------------------
   205 // -----------------------------------------------------------
   206 //
   206 //
   207 void CPhoneStateSingleVoIP::StartCallingL()
   207 void CPhoneStateSingleVoIP::StartCallingL()
   208 	{
   208     {
   209     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, 
   209     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, 
   210         "CPhoneStateSingleVoIP::StartCallingL()" )
   210         "CPhoneStateSingleVoIP::StartCallingL()" )
   211     
   211     
   212     TUint serviceId( 0 );
   212     TUint serviceId( 0 );
   213     CPhoneStateUtilsVoip& utililty = StateUtils();
   213     CPhoneStateUtilsVoip& utililty = StateUtils();
   214 	if ( utililty.IsVoipPreferredCall( serviceId ) )
   214     if ( utililty.IsVoipPreferredCall( serviceId ) )
   215 		{
   215         {
   216 		utililty.SelectServiceAndDialL( KNullDesC, serviceId );			
   216         utililty.SelectServiceAndDialL( KNullDesC, serviceId );         
   217 		}
   217         }
   218 	else
   218     else
   219 		{
   219         {
   220         if ( utililty.IsVoipNumber() )
   220         if ( utililty.IsVoipNumber() )
   221             {
   221             {
   222             utililty.SelectServiceAndDialL();
   222             utililty.SelectServiceAndDialL();
   223             }
   223             }
   224         else
   224         else
   244                 DialVoiceCallL();
   244                 DialVoiceCallL();
   245 
   245 
   246                 CleanupStack::PopAndDestroy( phoneNumber );
   246                 CleanupStack::PopAndDestroy( phoneNumber );
   247                 }
   247                 }
   248             }
   248             }
   249 		}
   249         }
   250 	}
   250     }
   251 
   251 
   252 // -----------------------------------------------------------
   252 // -----------------------------------------------------------
   253 // CPhoneStateSingleVoIP::LaunchUnattendedTransferAcceptanceQueryL
   253 // CPhoneStateSingleVoIP::LaunchUnattendedTransferAcceptanceQueryL
   254 // Dialog is constructed based on S60 In-Call Operations UI Specification, 
   254 // Dialog is constructed based on S60 In-Call Operations UI Specification, 
   255 // Section 2.26.
   255 // Section 2.26.