phoneapp/phoneuivoipextension/src/cphonestateidlevoip.cpp
branchRCL_3
changeset 61 41a7f70b3818
parent 9 8871b09be73b
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    28 #include "cphonemainresourceresolver.h"
    28 #include "cphonemainresourceresolver.h"
    29 #include "mphonestatemachine.h"
    29 #include "mphonestatemachine.h"
    30 #include "cphonelogger.h"
    30 #include "cphonelogger.h"
    31 #include "phoneui.pan"
    31 #include "phoneui.pan"
    32 #include "cphonecustomizationvoip.h"
    32 #include "cphonecustomizationvoip.h"
    33 #include "tphonecmdparamspeeddial.h"
       
    34 #include "cphonecenrepproxy.h"
    33 #include "cphonecenrepproxy.h"
    35 #include "cphonestateutilsvoip.h"
    34 #include "cphonestateutilsvoip.h"
    36 #include "cphonestatemachinevoip.h"
    35 #include "cphonestatemachinevoip.h"
    37 
    36 
    38 // CONSTANTS
    37 // CONSTANTS
   122     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleCommandL() ");
   121     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleCommandL() ");
   123 
   122 
   124     TBool commandStatus( ETrue );
   123     TBool commandStatus( ETrue );
   125 
   124 
   126     switch( aCommand )
   125     switch( aCommand )
   127         {     	
   126         {       
   128         case EPhoneNumberAcqCmdInternetCall:
   127         case EPhoneNumberAcqCmdInternetCall:
   129             {
   128             {
   130             StateUtils().SelectServiceAndDialL();
   129             StateUtils().SelectServiceAndDialL();
   131             }
   130             }
   132         	break;
   131             break;
   133 
   132 
   134         default:
   133         default:
   135             commandStatus = CPhoneIdle::HandleCommandL( aCommand );
   134             commandStatus = CPhoneIdle::HandleCommandL( aCommand );
   136             break;
   135             break;
   137         }
   136         }
   149     __LOGMETHODSTARTEND( 
   148     __LOGMETHODSTARTEND( 
   150         PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleSendCommandL()" );
   149         PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleSendCommandL()" );
   151     
   150     
   152     HBufC* phoneNumber = PhoneNumberFromEntryLC();
   151     HBufC* phoneNumber = PhoneNumberFromEntryLC();
   153      
   152      
   154     if ( !IsSimOk() || IsEmergencyNumber( *phoneNumber ) || IsDialingExtensionInFocusL() )
   153     if ( !IsSimOk() || IsEmergencyNumber( *phoneNumber ) )
   155         {
   154         {
   156         CPhoneIdle::HandleSendCommandL();         
   155         CPhoneIdle::HandleSendCommandL();         
   157         }  
   156         }  
   158     else if ( IsSpeedDialNumber( *phoneNumber ) )
       
   159         {
       
   160         SpeedDialL( (*phoneNumber)[0], EDialMethodSendCommand );
       
   161         }
       
   162     else
   157     else
   163         {
   158         {
   164         TUint serviceId( 0 );
   159         TUint serviceId( 0 );
   165         CPhoneStateUtilsVoip& utils = StateUtils();
   160         CPhoneStateUtilsVoip& utils = StateUtils();
   166         if ( utils.IsVoipPreferredCall( serviceId ) &&
   161         if ( utils.IsVoipPreferredCall( serviceId ) &&
   188 // -----------------------------------------------------------
   183 // -----------------------------------------------------------
   189 // CPhoneStateIdleVoIP::HandleDialingL
   184 // CPhoneStateIdleVoIP::HandleDialingL
   190 // -----------------------------------------------------------
   185 // -----------------------------------------------------------
   191 //
   186 //
   192 void CPhoneStateIdleVoIP::HandleDialingL( TInt aCallId )
   187 void CPhoneStateIdleVoIP::HandleDialingL( TInt aCallId )
   193 	{
   188     {
   194     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleDialingL( ) ");
   189     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, "CPhoneStateIdleVoIP::HandleDialingL( ) ");
   195 
   190 
   196 	if( iStateMachine->PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP )
   191     if( iStateMachine->PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP )
   197 		{
   192         {
   198 		SetCallHeaderType( CBubbleManager::EVoIPCall );			
   193         SetCallHeaderType( EPECallTypeVoIP );       
   199 		}
   194         }
   200 
   195 
   201 	CPhoneIdle::HandleDialingL( aCallId );
   196     CPhoneIdle::HandleDialingL( aCallId );
   202 	}
   197     }
   203 
   198 
   204 
   199 
   205 // -----------------------------------------------------------
   200 // -----------------------------------------------------------
   206 // CPhoneStateIdleVoIP::DialL
   201 // CPhoneStateIdleVoIP::DialL
   207 // -----------------------------------------------------------
   202 // -----------------------------------------------------------