phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp
branchRCL_3
changeset 57 94dc1107e8b2
parent 25 91c2fb4b78df
child 61 41a7f70b3818
equal deleted inserted replaced
44:3c221667e687 57:94dc1107e8b2
    65    : iState ( aState ),
    65    : iState ( aState ),
    66      iViewCommandHandle ( aViewCommandHandle ),
    66      iViewCommandHandle ( aViewCommandHandle ),
    67      iStateMachine ( aStateMachine ),
    67      iStateMachine ( aStateMachine ),
    68      iCustomization ( aCustomization ),
    68      iCustomization ( aCustomization ),
    69      iCbaManager ( aCbaManager ),
    69      iCbaManager ( aCbaManager ),
    70      iEnv( *CEikonEnv::Static() )
    70      iEnv( *CEikonEnv::Static() ) // codescanner::eikonenvstatic
    71     {
    71     {
    72     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::CPhoneNumberEntryManager() ");
    72     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::CPhoneNumberEntryManager() ");
    73     }
    73     }
    74 
    74 
    75  // ---------------------------------------------------------------------------
    75  // ---------------------------------------------------------------------------
   476 //
   476 //
   477 TBool CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput(
   477 TBool CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput(
   478         const TKeyEvent& aKeyEvent ) const
   478         const TKeyEvent& aKeyEvent ) const
   479     {
   479     {
   480     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( ) ");
   480     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( ) ");
   481     TBool ret = ( iViewCommandHandle.HandleCommandL( EPhoneViewIsNumberEntryNumericMode ) 
   481     
   482                     != EPhoneViewResponseSuccess )
   482     TBool numericMode = EFalse;
   483                         &&
   483     TRAP_IGNORE( numericMode = ( iViewCommandHandle.HandleCommandL( EPhoneViewIsNumberEntryNumericMode ) 
       
   484             == EPhoneViewResponseSuccess ) );
       
   485     
       
   486     TBool ret = !numericMode &&
   484                 ( ( aKeyEvent.iScanCode >= KPhoneKeyStart &&
   487                 ( ( aKeyEvent.iScanCode >= KPhoneKeyStart &&
   485                     aKeyEvent.iScanCode <= KPhoneKeyEnd ) ||
   488                     aKeyEvent.iScanCode <= KPhoneKeyEnd ) ||
   486                   aKeyEvent.iModifiers & EModifierSpecial );
   489                   aKeyEvent.iModifiers & EModifierSpecial );
   487     __PHONELOG1( EBasic, EPhoneControl, 
   490     __PHONELOG1( EBasic, EPhoneControl, 
   488             "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput: %d", ret );
   491             "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput: %d", ret );