videoplayback/videoplaybackviews/tsrc/ut_userinputhandlertest/src/userinputhandlertestBlocks.cpp
branchRCL_3
changeset 10 ce5ada96ab30
parent 0 96612d01cf9f
child 11 5294c000a26d
--- a/videoplayback/videoplaybackviews/tsrc/ut_userinputhandlertest/src/userinputhandlertestBlocks.cpp	Fri Feb 19 22:52:52 2010 +0200
+++ b/videoplayback/videoplaybackviews/tsrc/ut_userinputhandlertest/src/userinputhandlertestBlocks.cpp	Fri Mar 12 15:43:00 2010 +0200
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: ou1cpsw#5 %
+// Version : %version: 6 %
 
 
 // [INCLUDE FILES] - do not remove
@@ -33,7 +33,6 @@
 #include "mpxvideoplaybackuserinputhandler.h"
 #include "mpxvideo_debug.h"
 #include "hal_stub.h"
-#include <hal_data.h>
 
 //
 // pre-define
@@ -579,10 +578,13 @@
 {
     MPX_DEBUG(_L("CUserinputhandlertest::CheckBacklightState()"));
 
-    TBool backlightState;
+    TLightStatus backlightState = ELightStatusUnknown;
     TInt status;
     
-    HAL::Get( HALData::EBacklightState, backlightState );    
+    CHWRMLight* light = NULL;
+    MPX_TRAPD( err, light = CHWRMLight::NewL() );
+    backlightState = light->LightStatus( CHWRMLight::EPrimaryDisplay );
+    delete light;
 
     TInt result = aItem.GetNextInt( status );