screensaver/devicedialogplugins/snsrdevicedialogplugin/inc/snsrdevicedialogdisplaycontrol.h
changeset 86 e4f038c420f7
equal deleted inserted replaced
81:7dd137878ff8 86:e4f038c420f7
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Platform agnostic Qt wrapper class for controlling display
       
    15 *              power save mode. The power save mode gets actually activated
       
    16 *              only on Symbian environment; in other environments the provided
       
    17 *              functions do nothing.
       
    18 *              The use of Symbian display power save API has been wrapped with
       
    19 *              client-server pair because HbDeviceDialogs don't have enough
       
    20 *              capabilities to call that API directly.
       
    21 */
       
    22 
       
    23 #ifndef SNSRDEVICEDIALOGDISPLAYCONTROL_H
       
    24 #define SNSRDEVICEDIALOGDISPLAYCONTROL_H
       
    25 
       
    26 #ifdef Q_OS_SYMBIAN
       
    27 #include "snsrdisplaycontrolclient.h"
       
    28 #endif
       
    29 
       
    30 class SnsrDeviceDialogDisplayControl
       
    31 {
       
    32 
       
    33 public:
       
    34 
       
    35     SnsrDeviceDialogDisplayControl();
       
    36     ~SnsrDeviceDialogDisplayControl();
       
    37 
       
    38     void setDisplayFullPower();
       
    39     void setDisplayLowPower( int startRow, int endRow );
       
    40     void setDisplayOff();
       
    41 
       
    42 private:
       
    43     
       
    44 #ifdef Q_OS_SYMBIAN
       
    45     RSnsrDisplayControlClient mDisplayClient;
       
    46 #endif
       
    47 };
       
    48 
       
    49 #endif // SNSRDEVICEDIALOGDISPLAYCONTROL_H