videoplayback/videoplaybackviews/tsrc/ut_userinputhandlertest/src/userinputhandlertestBlocks.cpp
--- 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 );