videoplayback/videoplaybackviews/tsrc/ut_userinputhandlertest/src/hal_stub.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:43:00 +0200
branchRCL_3
changeset 8 ce5ada96ab30
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of HAL stub for STIF
*
*/

// Version : %version: 3 %


// INCLUDE FILES
#include <e32std.h>

#include "hal_stub.h"
#include "mpxvideo_debug.h"


// ================= MEMBER FUNCTIONS ==============================================================

// -------------------------------------------------------------------------------------------------
// CHWRMLight::CHWRMLight()
// C++ default constructor can NOT contain any code, that
// might leave.
// -------------------------------------------------------------------------------------------------
//
CHWRMLight::CHWRMLight()
{
}

CHWRMLight::~CHWRMLight()
{
    MPX_DEBUG(_L("CHWRMLight::~CHWRMLight()"));
}

CHWRMLight* CHWRMLight::NewL()
{
    MPX_DEBUG(_L("CHWRMLight::NewL()"));

    CHWRMLight* self = new (ELeave) CHWRMLight();
    CleanupStack::PushL(self);
    self->ConstructL();
    CleanupStack::Pop();

    return self;
}

void CHWRMLight::ConstructL()
{
	 MPX_DEBUG(_L("CHWRMLight::ConstructL()"));
}

void CHWRMLight::ReserveLightL(TInt aTarget)
{
	MPX_DEBUG(_L("CHWRMLight::ReserveLightL()"));
}

void CHWRMLight::ReleaseLight(TInt aTarget)
{
	MPX_DEBUG(_L("CHWRMLight::ReleaseLight()"));
}

void CHWRMLight::LightOnL(TInt aTarget)
{
	MPX_DEBUG(_L("CHWRMLight::LightOnL()"));
	iBacklightState = ELightOn;	
}
void CHWRMLight::LightOffL(TInt aTarget)
{
	MPX_DEBUG(_L("CHWRMLight::LightOffL()"));
	iBacklightState = ELightOff;
}

TLightStatus CHWRMLight::LightStatus(TInt aTarget) const
{
	MPX_DEBUG(_L("CHWRMLight::LightStatus()"));
	return iBacklightState;
}


// End of File