vtuis/videotelui/inc/CVtUiMainControl.h
changeset 0 ed9695c8bcbe
child 11 50bbdc59f9c4
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2004, 2005 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:  Main pane control for Video Telephone application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTUIMAINCONTROL_H
       
    21 #define CVTUIMAINCONTROL_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    "cvtuivideocontrolbase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class TVtUiStates;
       
    28 class TAknTextLineLayout;
       
    29 
       
    30 /**
       
    31 *  Main pane control for Video Telephone application.
       
    32 *
       
    33 *  @since Series 60 2.6
       
    34 */
       
    35 class CVtUiMainControl : public CVtUiVideoControlBase
       
    36     {
       
    37 
       
    38     public: // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Constructor.
       
    42         * @param aBitmapManager bitmap manager.
       
    43         * @param aUiStates Ui states class.
       
    44         */
       
    45         static CVtUiMainControl* NewL( CVtUiBitmapManager& aBitmapManager,
       
    46             TVtUiStates& aUiStates );
       
    47 
       
    48         /**
       
    49         * C++ destructor.
       
    50         */
       
    51         ~CVtUiMainControl();
       
    52 
       
    53     public: // New functions.
       
    54 
       
    55         /**
       
    56         * Sets SQCif mode on/off.
       
    57         * @param aIsSupported whether on/off
       
    58         */
       
    59         void SupportSQCif( TBool aIsSupported );
       
    60 
       
    61          /**
       
    62          * LayoutRemoteVideo
       
    63          */
       
    64         void LayoutRemoteVideo();
       
    65 
       
    66     private: // from CVtUiVideoControlBase
       
    67 
       
    68         /**
       
    69         * @see CVtUiContextControl::HandleSizeChanged
       
    70         */
       
    71         void HandleSizeChanged();
       
    72 
       
    73         /**
       
    74         * @see CVtUiContextControl::DrawWaitingText
       
    75         */
       
    76         TBool DrawWaitingText( CWindowGc& aGc ) const;
       
    77 
       
    78         /**
       
    79         * @see CVtUiContextControl::StreamBlitPosition
       
    80         */
       
    81         TPoint StreamBlitPosition() const;
       
    82 
       
    83         /**
       
    84         * @see CVtUiContextControl::StreamClippingRect
       
    85         */
       
    86         TRect StreamClippingRect() const;
       
    87 
       
    88         /**
       
    89         * @see CVtUiContextControl::BlindImage
       
    90         */
       
    91         CFbsBitmap* BlindImage() const;
       
    92 
       
    93         /**
       
    94         * @see CVtUiContextControl::BlindMask
       
    95         */
       
    96         CFbsBitmap* BlindMask() const;
       
    97 
       
    98         /**
       
    99         * @see CVtUiContextControl::BlindBlitPosition
       
   100         */
       
   101         TPoint BlindBlitPosition() const;
       
   102 
       
   103         /**
       
   104         * @see CVtUiContextControl::WaitingTextLayout
       
   105         */
       
   106         TAknTextLineLayout WaitingTextLayout( TInt aLine );
       
   107 
       
   108     private:
       
   109 
       
   110         /**
       
   111         * Private constructor.
       
   112         */
       
   113         CVtUiMainControl( CVtUiBitmapManager& aBitmapManager,
       
   114             TVtUiStates& aUiStates );
       
   115 
       
   116         /**
       
   117         * C++ constructor.
       
   118         * @param aBitmapManager bitmap manager.
       
   119         */
       
   120         CVtUiMainControl();
       
   121 
       
   122         /**
       
   123         * Symbian constructor.
       
   124         */
       
   125         void ConstructL();
       
   126 
       
   127     private:
       
   128 
       
   129         // Background layout.
       
   130         TAknLayoutRect iBackgroundLayout;
       
   131 
       
   132         // Blind icon identifier.
       
   133         TVtUiBitmapPoolId iBlindId;
       
   134 
       
   135         // Blind icon mask identifier.
       
   136         TVtUiBitmapPoolId iBlindMaskId;
       
   137 
       
   138         // Blind icon layout.
       
   139         TAknLayoutRect iBlindLayout;
       
   140 
       
   141         // Stream layout.
       
   142         TAknLayoutRect iStreamLayoutRect;
       
   143 
       
   144         // ETrue if sqcif is used in remote video.
       
   145         TBool iSQCifRemote;
       
   146 
       
   147         // reference to uistates
       
   148         TVtUiStates& iUiStates;
       
   149 
       
   150     };
       
   151 
       
   152 #endif      // CVTUIMAINCONTROL_H
       
   153 
       
   154 // End of File