diff -r 7dd137878ff8 -r e4f038c420f7 screensaver/devicedialogplugins/snsrdevicedialogplugin/inc/snsrdevicedialogdisplaycontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/screensaver/devicedialogplugins/snsrdevicedialogplugin/inc/snsrdevicedialogdisplaycontrol.h Mon Sep 13 13:03:23 2010 +0300 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2010 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: Platform agnostic Qt wrapper class for controlling display +* power save mode. The power save mode gets actually activated +* only on Symbian environment; in other environments the provided +* functions do nothing. +* The use of Symbian display power save API has been wrapped with +* client-server pair because HbDeviceDialogs don't have enough +* capabilities to call that API directly. +*/ + +#ifndef SNSRDEVICEDIALOGDISPLAYCONTROL_H +#define SNSRDEVICEDIALOGDISPLAYCONTROL_H + +#ifdef Q_OS_SYMBIAN +#include "snsrdisplaycontrolclient.h" +#endif + +class SnsrDeviceDialogDisplayControl +{ + +public: + + SnsrDeviceDialogDisplayControl(); + ~SnsrDeviceDialogDisplayControl(); + + void setDisplayFullPower(); + void setDisplayLowPower( int startRow, int endRow ); + void setDisplayOff(); + +private: + +#ifdef Q_OS_SYMBIAN + RSnsrDisplayControlClient mDisplayClient; +#endif +}; + +#endif // SNSRDEVICEDIALOGDISPLAYCONTROL_H