phoneapp/phoneuiview/src/cphonemenucontroller.cpp
branchRCL_3
changeset 22 94dc1107e8b2
parent 20 3c221667e687
child 23 40a3f856b14d
equal deleted inserted replaced
20:3c221667e687 22:94dc1107e8b2
    38 #include <ctsydomainpskeys.h>
    38 #include <ctsydomainpskeys.h>
    39 #include "phoneui.hrh"
    39 #include "phoneui.hrh"
    40 #include <phoneappvoipcommands.hrh>
    40 #include <phoneappvoipcommands.hrh>
    41 #include <phoneui.rsg>
    41 #include <phoneui.rsg>
    42 #include <telephonyvariant.hrh>
    42 #include <telephonyvariant.hrh>
    43 
    43 #include <AvkonInternalCRKeys.h>
    44 #include <hwrmdomainpskeys.h>
    44 #include <hwrmdomainpskeys.h>
    45 
    45 
    46 #include <AiwServiceHandler.h>
    46 #include <AiwServiceHandler.h>
    47 
    47 
    48 // ================= MEMBER FUNCTIONS =======================
    48 // ================= MEMBER FUNCTIONS =======================
   173         return EFalse;
   173         return EFalse;
   174         }
   174         }
   175 
   175 
   176     } 
   176     } 
   177 
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // -----------------------------------------------------------------------------
       
   180 //
       
   181 TBool CPhoneMenuController::IsQwertyMode() const
       
   182     {
       
   183     return CPhonePubSubProxy::Instance()->Value(
       
   184                     KCRUidAvkon, 
       
   185                     KAknQwertyInputModeActive );
       
   186     } 
   178 // ---------------------------------------------------------
   187 // ---------------------------------------------------------
   179 // CPhoneMenuController::DynInitMenuBar
   188 // CPhoneMenuController::DynInitMenuBar
   180 // ---------------------------------------------------------
   189 // ---------------------------------------------------------
   181 //
   190 //
   182 void CPhoneMenuController::DynInitMenuBar( 
   191 void CPhoneMenuController::DynInitMenuBar( 
   520                     }
   529                     }
   521                 }
   530                 }
   522                 break;
   531                 break;
   523             case EPhoneDialerCmdTouchInput:
   532             case EPhoneDialerCmdTouchInput:
   524                 {
   533                 {
   525                 if ( !FeatureManager::FeatureSupported( KFeatureIdCommonVoip ) )
   534                 if ( !FeatureManager::FeatureSupported( KFeatureIdCommonVoip ) ||
       
   535                      IsQwertyMode() )
   526                     {
   536                     {
   527                     menuPane->DeleteMenuItem( menuItemArray[i] );      
   537                     menuPane->DeleteMenuItem( menuItemArray[i] );      
   528                     }
   538                     }
   529                 }
   539                 }
   530                 break;
   540                 break;