camerauis/cameraxui/cxui/inc/cxuidisplaypropertyhandler.h
changeset 19 d9aefe59d544
child 58 ddba9caa7f32
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #ifndef CXUIDISPLAYPROPERTYHANDLER_H
       
    18 #define CXUIDISPLAYPROPERTYHANDLER_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QTimer>
       
    22 #include <XQUtils>
       
    23 
       
    24 /**
       
    25  * CxuiDisplayPropertyHandler
       
    26  *
       
    27  * Utility class for display visibility settings.
       
    28  * Can be used for enabling / disabling screensaver and
       
    29  * setting backlight constantly on or to normal timeout mode.
       
    30  */
       
    31 class CxuiDisplayPropertyHandler : public QObject
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36 
       
    37     CxuiDisplayPropertyHandler();
       
    38     virtual ~CxuiDisplayPropertyHandler();
       
    39 
       
    40     void setDisplayAlwaysVisible(bool visible);
       
    41 
       
    42 protected slots:
       
    43 
       
    44     void simulateActivity();
       
    45 
       
    46 private: // Data
       
    47 
       
    48     QTimer mBacklightTimer;
       
    49     XQUtils mUtility;
       
    50 };
       
    51 
       
    52 #endif // CXUIDISPLAYPROPERTYHANDLER_H