phoneapp/phoneuivoipextension/src/cphonestatesinglevoip.cpp
branchRCL_3
changeset 3 8871b09be73b
parent 0 5f000ab63145
child 7 544e34b3255a
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
    38 #include "tphonecmdparamquery.h"
    38 #include "tphonecmdparamquery.h"
    39 #include "tphonecmdparamglobalnote.h"
    39 #include "tphonecmdparamglobalnote.h"
    40 #include "cphonestateutilsvoip.h"
    40 #include "cphonestateutilsvoip.h"
    41 #include "cphonestatemachinevoip.h"
    41 #include "cphonestatemachinevoip.h"
    42 
    42 
       
    43 #include "easydialingcommands.hrh"
       
    44 
       
    45 
    43 // ================= MEMBER FUNCTIONS =======================
    46 // ================= MEMBER FUNCTIONS =======================
    44 
    47 
    45 // C++ default constructor can NOT contain any code, that
    48 // C++ default constructor can NOT contain any code, that
    46 // might leave.
    49 // might leave.
    47 //
    50 //
   135         case EPhoneNumberAcqCmdInternetCall:
   138         case EPhoneNumberAcqCmdInternetCall:
   136             StateUtils().SelectServiceAndDialL();
   139             StateUtils().SelectServiceAndDialL();
   137         	break;
   140         	break;
   138      	
   141      	
   139         case EPhoneNumberAcqCmdSendCommand:
   142         case EPhoneNumberAcqCmdSendCommand:
   140             StartCallingL();
   143             // If easydialing has focus, call should be initiated to focused contact.
       
   144             if ( IsDialingExtensionInFocusL() )
       
   145                 {
       
   146                 commandStatus = CPhoneSingleCall::HandleCommandL( aCommand );
       
   147                 }
       
   148             else
       
   149                 {
       
   150                 StartCallingL();
       
   151                 }
   141             break;
   152             break;
   142          
   153          
   143         case EPhoneCmdAcceptUnattendedTransfer:
   154         case EPhoneCmdAcceptUnattendedTransfer:
   144             HandleUnattendedTransferRequestResponseL( ETrue );
   155             HandleUnattendedTransferRequestResponseL( ETrue );
   145             break;
   156             break;
   175             &numberEntryCountParam );
   186             &numberEntryCountParam );
   176             TInt neLength( numberEntryCountParam.Integer() );
   187             TInt neLength( numberEntryCountParam.Integer() );
   177                  
   188                  
   178             if( IsNumberEntryVisibleL() && neLength )
   189             if( IsNumberEntryVisibleL() && neLength )
   179                 {
   190                 {
   180                 if ( IsOnScreenDialerSupported() &&  
   191                 if ( IsOnScreenDialerSupported() )
   181                      ( IsDTMFEditorVisibleL() ||
       
   182                        IsCustomizedDialerVisibleL() ) )
       
   183                     {
   192                     {
   184                     return;
   193                     if ( IsDTMFEditorVisibleL() || 
       
   194                          IsCustomizedDialerVisibleL() )
       
   195                         {
       
   196                         return;
       
   197                         }
       
   198                     // If easydialing has focus, call should be initiated to focused contact.
       
   199                     else if ( IsDialingExtensionInFocusL() )
       
   200                         {
       
   201                         CPhoneSingleCall::HandleKeyMessageL( aMessage, aKeyCode );
       
   202                         return;
       
   203                         }
   185                     }
   204                     }
   186                     
   205                     
   187                 StartCallingL();
   206                 StartCallingL();
   188                 }
   207                 }
   189             else
   208             else