inc/screensaverctrlnone.h
changeset 14 8a173132b0aa
parent 2 058b1fc1663a
equal deleted inserted replaced
2:058b1fc1663a 14:8a173132b0aa
     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:   Definitions for the display object of none type
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_SCREENSAVERCTRLNONE_H
       
    21 #define C_SCREENSAVERCTRLNONE_H
       
    22 
       
    23 #include "screensaverbase.h"
       
    24 
       
    25 /**
       
    26  * The none type of the display object to cut off the screen light  
       
    27  */
       
    28 class CScreensaverCtrlNone : public CScreensaverBase
       
    29     {
       
    30 public:
       
    31     /**
       
    32     * The symbian c++ constructor
       
    33     */
       
    34     static CScreensaverCtrlNone* NewL();
       
    35     
       
    36     
       
    37     /**
       
    38     * destructor
       
    39     */
       
    40     ~CScreensaverCtrlNone();
       
    41 
       
    42     /**
       
    43     * Start the control needed timer
       
    44     */
       
    45     void StartTimer();
       
    46     
       
    47     /**
       
    48     * Cancels the timer
       
    49     */
       
    50     void CancelTimer();
       
    51     
       
    52     /**
       
    53     * Show the control
       
    54     */
       
    55     void DrawObject();
       
    56     
       
    57     /**
       
    58     * Clear the screen
       
    59     */
       
    60     void ClearScreen();
       
    61     
       
    62     /*
       
    63     * Refresh the display 
       
    64     */
       
    65     void Refresh();
       
    66     
       
    67 public:
       
    68     // From CCoeControl
       
    69     
       
    70     /** 
       
    71     * Resource change handling  
       
    72     */
       
    73     void HandleResourceChange( TInt aType );
       
    74 
       
    75     /**
       
    76     * Responds to changes to the size and position of the contents 
       
    77     * of this control.  
       
    78     */
       
    79     void SizeChanged();
       
    80     
       
    81 private:
       
    82 
       
    83     /**
       
    84     *The Default C++ constructor   
       
    85     */
       
    86     CScreensaverCtrlNone();
       
    87     
       
    88     /**
       
    89     * The two-phased constructor
       
    90     */
       
    91     void ConstructL();
       
    92 
       
    93     /**
       
    94     * Switch off light in aSecs
       
    95     * 
       
    96     * @param aSecs after this seconds, screen will switch light
       
    97     */
       
    98     void SwitchLights( TInt aSecs );
       
    99     
       
   100     /**
       
   101     * Switch on/off the screen
       
   102     */
       
   103     void SwitchDisplayState( TInt aState );
       
   104     
       
   105     };
       
   106 
       
   107 #endif // C_SCREENSAVERCTRLNONE_H