inc/screensaverctrlnone.h
branchRCL_3
changeset 26 e8d784ac1a4b
child 27 fc25e03508fd
equal deleted inserted replaced
25:aaeeca1f15af 26:e8d784ac1a4b
       
     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     /**
       
    82      * Draw
       
    83      * @see CCoeControl::Draw(const TRect& aRect)
       
    84      */
       
    85     void Draw( const TRect& aRect ) const;
       
    86     
       
    87 private:
       
    88 
       
    89     /**
       
    90     *The Default C++ constructor   
       
    91     */
       
    92     CScreensaverCtrlNone();
       
    93     
       
    94     /**
       
    95     * The two-phased constructor
       
    96     */
       
    97     void ConstructL();
       
    98 
       
    99     /**
       
   100     * Switch off light in aSecs
       
   101     * 
       
   102     * @param aSecs after this seconds, screen will switch light
       
   103     */
       
   104     void SwitchLights( TInt aSecs );
       
   105     
       
   106     /**
       
   107     * Switch on/off the screen
       
   108     */
       
   109     void SwitchDisplayState( TInt aState );
       
   110     
       
   111     };
       
   112 
       
   113 #endif // C_SCREENSAVERCTRLNONE_H