coreapplicationuis/SysAp/Src/SysApAppUi.cpp
branchRCL_3
changeset 21 9af619316cbf
parent 20 c2c61fdca848
equal deleted inserted replaced
20:c2c61fdca848 21:9af619316cbf
   760 				TInt errorCode2 = RProperty::Get( KPSUidStartup, KStartupSecurityCodeQueryStatus, securityQueryState);
   760 				TInt errorCode2 = RProperty::Get( KPSUidStartup, KStartupSecurityCodeQueryStatus, securityQueryState);
   761             	TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KCoreAppUIsDisableKeyguard - State Value: %d"),alarmState));
   761             	TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KCoreAppUIsDisableKeyguard - State Value: %d"),alarmState));
   762             	TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KStartupSecurityCodeQueryStatus - State Value: %d"),securityQueryState));
   762             	TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KStartupSecurityCodeQueryStatus - State Value: %d"),securityQueryState));
   763             	TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) );
   763             	TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) );
   764 				//Disable keylock if Alarm is active or if a Security code query is active on the display
   764 				//Disable keylock if Alarm is active or if a Security code query is active on the display
   765 				if ( alarmState == ECoreAppUIsDisableKeyguard || securityQueryState == ESecurityQueryActive )
   765 				if ( alarmState == ECoreAppUIsDisableKeyguard || securityQueryState == ESecurityQueryActive 
       
   766 					  || callState == EPSCTsyCallStateRinging || iDeviceLockEnabled)
   766                  	{
   767                  	{
   767 					KeyLock().DisableWithoutNote();               	
   768 					KeyLock().DisableWithoutNote();               	
   768                  	}
   769                  	}
   769 			    else
   770 			    else
   770          		 	{
   771          		 	{
   771                     if( callState != EPSCTsyCallStateConnected && !iDeviceLockEnabled)
   772                     KeyLock().EnableWithoutNote();
   772                         {
       
   773                         KeyLock().EnableWithoutNote();
       
   774                         }
       
   775          			}
   773          			}
   776                 }
   774                 }
   777             else
   775             else
   778                 {
   776                 {
   779                 if ( aKeyEvent.iScanCode == EStdKeyDevice2 )
   777                 if ( aKeyEvent.iScanCode == EStdKeyDevice2 )