phoneuis/BubbleManager/Inc/BMBubbleVideoContainer.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Video Ringing Tone / Video window (DSA)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CBUBBLEVIDEOCONTAINER_H
       
    21 #define CBUBBLEVIDEOCONTAINER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <coecntrl.h>
       
    25 #include <AknsDrawUtils.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Video Ringing Tone / Video window (DSA)
       
    41 *
       
    42 *  @lib BubbleManager
       
    43 *  @since Series 60 3.1
       
    44 */
       
    45 class CBubbleVideoContainer : public CCoeControl
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         */
       
    52         static CBubbleVideoContainer* NewL( const CCoeControl* aParent );
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CBubbleVideoContainer();
       
    58 
       
    59     public: // New functions
       
    60         
       
    61         /**
       
    62         * Get window handle.
       
    63         * @since Series 60 3.1
       
    64         * @return Window handle
       
    65         */
       
    66         RWindow& GetWindow() const;
       
    67         
       
    68         /**
       
    69         * Set parameters needed to draw this control.
       
    70         * @since Series 60 3.1
       
    71         * @param aFrameId Skin id of the frame.
       
    72         * @param aOuterRect Outer frame rectangle.
       
    73         * @param aInnerRect Inner frame rectangle.
       
    74         */
       
    75         void SetBackgroundFrame( const TAknsItemID& aFrameId,
       
    76                                  TRect& aOuterRect,
       
    77                                  TRect& aInnerRect );
       
    78                                  
       
    79         /**
       
    80         * Sets redraw disabled/enabled.
       
    81         * Video player draws this area, when video is playing.
       
    82         * @since Series 60 3.2
       
    83         * @param aDisabled ETrue if redrawing is set disabled.
       
    84         */
       
    85         void SetRedrawDisabled( TBool aDisabled );
       
    86 
       
    87     private: // From CCoeControl
       
    88         /**
       
    89         * Draw
       
    90         */
       
    91         void Draw( const TRect& aRect ) const;
       
    92        
       
    93         /**
       
    94         * SizeChanged
       
    95         */
       
    96         void SizeChanged();
       
    97         
       
    98     private:
       
    99 
       
   100         /**
       
   101         * C++ default constructor.
       
   102         */
       
   103         CBubbleVideoContainer();
       
   104 
       
   105         /**
       
   106         * By default Symbian 2nd phase constructor is private.
       
   107         */
       
   108         void ConstructL();
       
   109         
       
   110         /**
       
   111         * C++ constructor
       
   112         */
       
   113         CBubbleVideoContainer(  const CCoeControl* aParent );
       
   114 
       
   115     private:    // Data
       
   116         // Parent control
       
   117         const CCoeControl* iParent;
       
   118         // Background frame parameters.
       
   119         TAknsItemID iFrameId;
       
   120         TRect iFrameOuterRect;
       
   121         TRect iFrameInnerRect; 
       
   122         // Redrawing flag
       
   123         TBool iRedrawDisabled;
       
   124     };
       
   125 
       
   126 #endif      // CBUBBLEVIDEOCONTAINER_H   
       
   127             
       
   128 // End of File
       
   129