securitydialogs/Autolock/src/AutolockGripStatusObserver.cpp
branchRCL_3
changeset 20 63339781d179
parent 17 2ca12c9f635b
equal deleted inserted replaced
19:94b923fa11ed 20:63339781d179
    97     if( aGripStatus == EPSHWRMGripOpen ) 
    97     if( aGripStatus == EPSHWRMGripOpen ) 
    98     	{
    98     	{
    99         #if defined(_DEBUG)
    99         #if defined(_DEBUG)
   100     	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => Grip opened"));
   100     	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => Grip opened"));
   101     	#endif 
   101     	#endif 
       
   102    		iObserver->ForceOrientation(0);
   102     	if( !iObserver->DeviceLockQueryStatus() && iObserver->DeviceLockStatus() )
   103     	if( !iObserver->DeviceLockQueryStatus() && iObserver->DeviceLockStatus() )
   103     		{
   104     		{
   104             #if defined(_DEBUG)
   105             #if defined(_DEBUG)
   105         	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => send command"));
   106         	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => send command"));
   106         	#endif
   107         	#endif
   137     else
   138     else
   138         {
   139         {
   139         #if defined(_DEBUG)
   140         #if defined(_DEBUG)
   140     	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => Grip closed"));
   141     	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => Grip closed"));
   141     	#endif 
   142     	#endif 
       
   143    		iObserver->ForceOrientation(1);
       
   144 
   142         //Grip closed
   145         //Grip closed
   143         if( iObserver->DeviceLockQueryStatus() )
   146         if( iObserver->DeviceLockQueryStatus() )
   144         	{
   147         	{
   145             #if defined(_DEBUG)
   148             #if defined(_DEBUG)
   146         	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => send key event"));
   149         	RDebug::Print(_L("(AUTOLOCK)CAutolockGripStatusObserver::::GripStatusChangedL => send key event"));