coreapplicationuis/SysAp/Src/SysApLightsController.cpp
branchRCL_3
changeset 15 312d2b433792
parent 10 469fa8a78de7
child 17 5e7d68cc22e0
--- a/coreapplicationuis/SysAp/Src/SysApLightsController.cpp	Wed Jun 09 09:52:12 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApLightsController.cpp	Mon Jun 21 15:51:07 2010 +0300
@@ -30,6 +30,7 @@
 
 #include "SysApFeatureManager.h"
 #include "startupdomainpskeys.h"
+#include <hal.h>
 
 // CONSTANTS
 
@@ -995,6 +996,8 @@
 		{
 		TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
 		iSysApAppUi.StopChargingBatteryL();
+		//To switch off the display 
+		TInt result = HAL::Set( HALData::EDisplayState, 0 );
 		}            
     // Ignore unreserved in use warnings.
     if ( err != KErrNone && err != KErrInUse )
@@ -1101,6 +1104,8 @@
     		if ( error == KErrNone && state == ESwStateCharging ) 
 				{
 				iSysApAppUi.StartChargingBatteryL();
+				//To switch on the display 
+				TInt result = HAL::Set( HALData::EDisplayState, 1 );
 				}	
             }
         else