vtuis/videotelui/inc/CVtUiMainControl.h
branchRCL_3
changeset 24 f15ac8e65a02
parent 23 890b5dd735f8
child 25 779871d1e4f4
equal deleted inserted replaced
23:890b5dd735f8 24:f15ac8e65a02
     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 CVtUiAppUi;
       
    28 class TVtUiStates;
       
    29 class TAknTextLineLayout;
       
    30 
       
    31 /**
       
    32 *  Main pane control for Video Telephone application.
       
    33 *
       
    34 *  @since Series 60 2.6
       
    35 */
       
    36 class CVtUiMainControl : public CVtUiVideoControlBase
       
    37     {
       
    38 
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Constructor.
       
    43         * @param aBitmapManager bitmap manager.
       
    44         * @param aUiStates Ui states class.
       
    45         */
       
    46         static CVtUiMainControl* NewL( CVtUiBitmapManager& aBitmapManager,
       
    47                 CVtUiAppUi& aAppUi,
       
    48                 TVtUiStates& aUiStates );
       
    49 
       
    50         /**
       
    51         * C++ destructor.
       
    52         */
       
    53         ~CVtUiMainControl();
       
    54 
       
    55     public: // New functions.
       
    56 
       
    57         /**
       
    58         * Sets SQCif mode on/off.
       
    59         * @param aIsSupported whether on/off
       
    60         */
       
    61         void SupportSQCif( TBool aIsSupported );
       
    62 
       
    63          /**
       
    64          * LayoutRemoteVideo
       
    65          */
       
    66         void LayoutRemoteVideo();
       
    67 
       
    68         /**
       
    69         * Get main control pointer event flag
       
    70         * @return pointer event is from main control
       
    71         */
       
    72         TBool IsMainControlPointerEvent();
       
    73 
       
    74     public: // from CCoeControl
       
    75 
       
    76         /**
       
    77         * @see CCoeControl::HandlePointerEventL
       
    78         */
       
    79         void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    80 
       
    81     private: // from CVtUiVideoControlBase
       
    82 
       
    83         /**
       
    84         * @see CVtUiContextControl::HandleSizeChanged
       
    85         */
       
    86         void HandleSizeChanged();
       
    87 
       
    88         /**
       
    89         * @see CVtUiContextControl::DrawWaitingText
       
    90         */
       
    91         TBool DrawWaitingText( CWindowGc& aGc ) const;
       
    92 
       
    93         /**
       
    94         * @see CVtUiContextControl::StreamBlitPosition
       
    95         */
       
    96         TPoint StreamBlitPosition() const;
       
    97 
       
    98         /**
       
    99         * @see CVtUiContextControl::StreamClippingRect
       
   100         */
       
   101         TRect StreamClippingRect() const;
       
   102 
       
   103         /**
       
   104         * @see CVtUiContextControl::BlindImage
       
   105         */
       
   106         CFbsBitmap* BlindImage() const;
       
   107 
       
   108         /**
       
   109         * @see CVtUiContextControl::BlindMask
       
   110         */
       
   111         CFbsBitmap* BlindMask() const;
       
   112 
       
   113         /**
       
   114         * @see CVtUiContextControl::BlindBlitPosition
       
   115         */
       
   116         TPoint BlindBlitPosition() const;
       
   117 
       
   118         /**
       
   119         * @see CVtUiContextControl::WaitingTextLayout
       
   120         */
       
   121         TAknTextLineLayout WaitingTextLayout( TInt aLine );
       
   122 
       
   123     private:
       
   124 
       
   125         /**
       
   126         * Private constructor.
       
   127         */
       
   128         CVtUiMainControl( CVtUiBitmapManager& aBitmapManager,
       
   129                 CVtUiAppUi& aAppUi,
       
   130                 TVtUiStates& aUiStates );
       
   131 
       
   132         /**
       
   133         * C++ constructor.
       
   134         * @param aBitmapManager bitmap manager.
       
   135         */
       
   136         CVtUiMainControl();
       
   137 
       
   138         /**
       
   139         * Symbian constructor.
       
   140         */
       
   141         void ConstructL();
       
   142 
       
   143     private:
       
   144 
       
   145         // Background layout.
       
   146         TAknLayoutRect iBackgroundLayout;
       
   147 
       
   148         // Blind icon identifier.
       
   149         TVtUiBitmapPoolId iBlindId;
       
   150 
       
   151         // Blind icon mask identifier.
       
   152         TVtUiBitmapPoolId iBlindMaskId;
       
   153 
       
   154         // Blind icon layout.
       
   155         TAknLayoutRect iBlindLayout;
       
   156 
       
   157         // Stream layout.
       
   158         TAknLayoutRect iStreamLayoutRect;
       
   159 
       
   160         // ETrue if sqcif is used in remote video.
       
   161         TBool iSQCifRemote;
       
   162 
       
   163         // Reference to application UI.
       
   164         CVtUiAppUi& iAppUi;
       
   165 
       
   166         // reference to uistates
       
   167         TVtUiStates& iUiStates;
       
   168 
       
   169         // Main control pointer event flag
       
   170         TBool iMCPointerEvent;
       
   171     };
       
   172 
       
   173 #endif      // CVTUIMAINCONTROL_H
       
   174 
       
   175 // End of File