vtuis/videotelui/inc/CVtUiBlankControl.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Blank control for Video Telephone application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTUIBLANKCONTROL_H
       
    21 #define CVTUIBLANKCONTROL_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <coecntrl.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Blank control for Video Telephone application.
       
    30 *
       
    31 *  @since Series 60 2.6
       
    32 */
       
    33 class CVtUiBlankControl
       
    34     : public CCoeControl
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * C++ constructor.
       
    40         */
       
    41         CVtUiBlankControl();
       
    42 
       
    43         /**
       
    44         * Symbian constructor.
       
    45         * @param aRect control rectangle.
       
    46         */
       
    47         void ConstructL( const TRect& aRect );
       
    48 
       
    49         /**
       
    50         * C++ destructor.
       
    51         */
       
    52         ~CVtUiBlankControl();
       
    53 
       
    54     public: // New functions
       
    55 
       
    56         /**
       
    57         * Sets blanker active / inactive.
       
    58         * @param aStatus ETrue if to be activated.
       
    59         */
       
    60         void SetActive( TBool aStatus );
       
    61 
       
    62     protected: // Functions from base classes
       
    63 
       
    64         /**
       
    65         * From CCoeControl, handles key events.
       
    66         * @param aKeyEvent key event.
       
    67         * @param aType type of event.
       
    68         */
       
    69         virtual TKeyResponse OfferKeyEventL(
       
    70             const TKeyEvent& aKeyEvent,
       
    71             TEventCode aType );
       
    72 
       
    73         /**
       
    74         * From CCoeControl, draws the control.
       
    75         * @param aRect area to be drawn.
       
    76         */
       
    77         virtual void Draw( const TRect& aRect ) const;
       
    78 
       
    79         /**
       
    80         * From CCoeControl, handles size changes.
       
    81         */
       
    82         virtual void SizeChanged();
       
    83 
       
    84         /**
       
    85         * From CCoeControl, handles position changes.
       
    86         */
       
    87         virtual void PositionChanged();
       
    88 
       
    89     private: 
       
    90 
       
    91         // ETrue if blanker is active.
       
    92         TBool iBlankerActive;
       
    93 
       
    94     };
       
    95 
       
    96 #endif      // CVTUIBLANKCONTROL_H
       
    97             
       
    98 // End of File