multimediacommsengine/tsrc/testdriver/testclient/ui/src/CTcBacklight.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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:  See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CTCBACKLIGHT_H__
       
    19 #define __CTCBACKLIGHT_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 //  CLASS DEFINITION
       
    25 /**
       
    26  * CTcBacklight implements a simple Active Object that keeps the LCD backlight
       
    27  * always on.
       
    28  */
       
    29 class CTcBacklight
       
    30     : public CActive
       
    31     {
       
    32     public: // Constructors and destructor
       
    33 
       
    34 		/**
       
    35 		 * Static constructor.
       
    36 		 *
       
    37 		 * @return An initialised instance of this class.
       
    38 		 */
       
    39 		static CTcBacklight* NewL( );
       
    40 
       
    41 		/// Destructor
       
    42 		~CTcBacklight();
       
    43 
       
    44     private: // Constructors
       
    45 
       
    46 		/// Default constructor.
       
    47 		CTcBacklight();
       
    48 
       
    49 		/// 2nd phase constructor.
       
    50         void ConstructL();
       
    51 
       
    52 	protected: // from CActive
       
    53 
       
    54 		void DoCancel();
       
    55 		void RunL();
       
    56 
       
    57 	private: // New methods
       
    58 
       
    59 		/// Start timer
       
    60 		void Start();
       
    61 
       
    62 	private: // Data
       
    63 
       
    64 		/// Backlight timer. Owned.
       
    65 		RTimer iTimer;
       
    66 
       
    67     };
       
    68 
       
    69 #endif // __CTCBACKLIGHT_H__