phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp
branchRCL_3
changeset 6 38529f706030
parent 0 5f000ab63145
child 9 91c2fb4b78df
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
    38 #include "phonerssbase.h"
    38 #include "phonerssbase.h"
    39 #include "phoneui.pan"
    39 #include "phoneui.pan"
    40 #include "phoneviewcommanddefinitions.h"
    40 #include "phoneviewcommanddefinitions.h"
    41 #include "phoneappcommands.hrh"
    41 #include "phoneappcommands.hrh"
    42 #include "phonelogger.h"
    42 #include "phonelogger.h"
       
    43 #include "mphonesecuritymodeobserver.h"
    43 
    44 
    44 const TInt  KPhoneKeyStart            = 33;
    45 const TInt  KPhoneKeyStart            = 33;
    45 const TInt  KPhoneKeyEnd              = 127;
    46 const TInt  KPhoneKeyEnd              = 127;
    46 
    47 
    47 // ======== MEMBER FUNCTIONS ========
    48 // ======== MEMBER FUNCTIONS ========
   222 //
   223 //
   223 void CPhoneNumberEntryManager::HandleCreateNumberEntryL()
   224 void CPhoneNumberEntryManager::HandleCreateNumberEntryL()
   224     {
   225     {
   225     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::HandleCreateNumberEntryL() ");
   226     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::HandleCreateNumberEntryL() ");
   226     
   227     
   227     const TBool autoLcokOn = iState->IsAutoLockOn();
   228     const TBool autoLockOn = iStateMachine.SecurityMode()->IsSecurityMode();
   228     const TBool idleVal = CPhonePubSubProxy::Instance()->Value( KPSUidAiInformation, KActiveIdleState );
   229     const TBool idleVal = CPhonePubSubProxy::Instance()->Value( KPSUidAiInformation, KActiveIdleState );
   229     const TBool queryActive = iState->IsAnyQueryActiveL();
   230     const TBool queryActive = iState->IsAnyQueryActiveL();
   230     const TBool menuBarVisible = iState->IsMenuBarVisibleL();
   231     const TBool menuBarVisible = iState->IsMenuBarVisibleL();
   231     
   232     
   232     if( autoLcokOn || 
   233     if( autoLockOn || 
   233         ( idleVal == EPSAiForeground ) ||
   234         ( idleVal == EPSAiForeground ) ||
   234         ( menuBarVisible || queryActive ) )
   235         ( menuBarVisible || queryActive ) )
   235         {
   236         {
   236         __PHONELOG( EBasic, EPhoneControl, 
   237         __PHONELOG( EBasic, EPhoneControl, 
   237              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() NE NOT CREATED" );
   238              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() NE NOT CREATED" );
   238         __PHONELOG2( EBasic, EPhoneControl, 
   239         __PHONELOG2( EBasic, EPhoneControl, 
   239              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() autoLcokOn(%d) idleVal(%d)", 
   240              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() autoLcokOn(%d) idleVal(%d)", 
   240              autoLcokOn, idleVal );
   241              autoLockOn, idleVal );
   241         __PHONELOG2( EBasic, EPhoneControl, 
   242         __PHONELOG2( EBasic, EPhoneControl, 
   242              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() queryActive(%d) menuBarVisible(%d)", 
   243              "CPhoneNumberEntryManager::HandleCreateNumberEntryL() queryActive(%d) menuBarVisible(%d)", 
   243              queryActive, menuBarVisible );
   244              queryActive, menuBarVisible );
   244         }
   245         }
   245     else
   246     else
   255             if ( iState->IsNoteDismissableL() )
   256             if ( iState->IsNoteDismissableL() )
   256                 {
   257                 {
   257                 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveNote );
   258                 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveNote );
   258                 }
   259                 }
   259             
   260             
   260             TPhoneCmdParamBoolean isSecurityMode;      
   261             if( iStateMachine.SecurityMode()->IsSecurityMode() )
   261             iViewCommandHandle.ExecuteCommandL( EPhoneViewGetSecurityModeStatus, &isSecurityMode );
       
   262             if( isSecurityMode.Boolean() )
       
   263                 {
   262                 {
   264                 iState->HandleCommandL( EPhoneNumberAcqSecurityDialer );
   263                 iState->HandleCommandL( EPhoneNumberAcqSecurityDialer );
   265                 }
   264                 }
   266             else
   265             else
   267                 {
   266                 {