phoneuis/BubbleManager/Inc/BMBubbleOutlook.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-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: 
       
    15 *     Abstract base class fror bubble outlooks
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef BUBBLEOUTLOOK_H
       
    21 #define BUBBLEOUTLOOK_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <coecntrl.h>
       
    25 #include <AknsUtils.h>
       
    26 
       
    27 // CONSTANT
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CBubbleHeader;
       
    31 class CBubbleManager;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CBubbleOutlook container class
       
    37 *
       
    38 *  Abstract base class fror bubble outlooks
       
    39 *
       
    40 *  @lib bubblemanager
       
    41 *  @since 1.0
       
    42 */
       
    43 class CBubbleOutlook : public CCoeControl 
       
    44     {
       
    45     public: // Constructors and destructor
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CBubbleOutlook();
       
    51         
       
    52     protected:
       
    53         
       
    54         /**
       
    55         * Symbian OS 2nd phase constructor.
       
    56         */
       
    57         void ConstructL( );
       
    58         
       
    59         /**
       
    60         * Default constructor.
       
    61         * @param aBubbleManager Reference to the main component.
       
    62         */
       
    63         CBubbleOutlook( CBubbleManager& aBubbleManager );
       
    64         
       
    65     public: //member functions
       
    66         
       
    67         /**
       
    68         * To reset the outlook.
       
    69         */
       
    70         virtual void Reset( ) = 0;
       
    71         
       
    72         /**
       
    73         * Give header from which the outlook should read it's info.
       
    74         * @param aHeader The header.
       
    75         */
       
    76         virtual void ReadBubbleHeader( CBubbleHeader& aHeader ) = 0;
       
    77         
       
    78         /**
       
    79         * Update timer/cost value and redraw it.
       
    80         */
       
    81         virtual void DrawTimerCostNow() = 0;
       
    82         
       
    83         /**
       
    84         * Update CLI string and redraw it.
       
    85         */
       
    86         virtual void DrawCLINow() = 0;
       
    87 
       
    88         /**
       
    89         * Draw bitmaps to given context
       
    90         * @param aGc Context to draw to.
       
    91         */
       
    92         virtual void DrawBitmaps( CBitmapContext& aGc ) const = 0;
       
    93 
       
    94         /**
       
    95         * Start animation.
       
    96         */
       
    97         virtual void HandleAnimationStartL() const = 0;
       
    98 
       
    99         /**
       
   100         * Release anim
       
   101         * @since 2.0
       
   102         */
       
   103         virtual void ReleaseBitmaps();
       
   104 
       
   105         /**
       
   106         * Recreate the animation
       
   107         * @since 2.0
       
   108         */
       
   109         virtual void RebuildBitmaps();
       
   110 
       
   111         /**
       
   112         * Update call header text and redraw it.
       
   113         */
       
   114         virtual void DrawCallHeaderText() = 0;
       
   115         
       
   116         /**
       
   117         * Call object display on/off.
       
   118         * @since 3.1
       
   119         */
       
   120         void SetCallObjectDisplay( TBool aActive );
       
   121         
       
   122     protected: // New functions
       
   123 
       
   124         // Draws label
       
   125         void DrawLabelNow( const CCoeControl& aLabel );
       
   126         // Draws label if pointer is != NULL.
       
   127         void DrawLabelNow( const CCoeControl* aLabel );
       
   128         
       
   129     private: // Functions from base classes
       
   130         
       
   131         /**
       
   132         * From CCoeControl
       
   133         */
       
   134         virtual void SizeChanged( ) = 0;
       
   135         
       
   136         /**
       
   137         * From CCoeControl
       
   138         */
       
   139         virtual void PositionChanged();
       
   140 
       
   141         /**
       
   142         * From CCoeControl
       
   143         */
       
   144         virtual TInt CountComponentControls( ) const;
       
   145         
       
   146         /**
       
   147         * From CCoeControl
       
   148         */
       
   149         virtual CCoeControl* ComponentControl( TInt aIndex ) const;
       
   150         
       
   151         /**
       
   152         * From CCoeControl
       
   153         */
       
   154         virtual void Draw( const TRect& aRect ) const;
       
   155             
       
   156               
       
   157     protected: //data
       
   158 
       
   159         // Reference to the main control
       
   160         CBubbleManager& iBubbleManager;
       
   161         
       
   162         // Feature settings
       
   163         TBool iCallObjectDisplay;
       
   164         
       
   165         // Frame settings for Call2 layouts
       
   166         TAknsItemID iFrameId;
       
   167         TRect       iOuterRect;
       
   168         TRect       iInnerRect;
       
   169         
       
   170     };
       
   171 
       
   172 
       
   173 
       
   174 #endif // BUBBLEOUTLOOK_H
       
   175 
       
   176 // End of File