screensaver/devicedialogplugins/snsrdevicedialogplugin/inc/snsrdevicedialogdisplaycontrol.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:27:54 +0300
changeset 92 6727c5d0afc7
permissions -rw-r--r--
Revision: 201036 Kit: 201037

/*
* 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