phoneuis/BubbleManager/Inc/BMBubbleOutlookTwoLined.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: 
       
    15 *     Base class for big bubbles (bottom, bottom right, middle).
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CBUBBLEOUTLOOKTWOLINED_H
       
    21 #define CBUBBLEOUTLOOKTWOLINED_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <calslbs.h>
       
    25 #include "BMBubbleOutlook.h"
       
    26 #include "BMBubbleManager.h"
       
    27 #include "BMUtils.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CBubbleHeader;
       
    31 class CEikLabel; 
       
    32 class CEikImage;
       
    33 class CBubbleImageManager;
       
    34 class CBubbleAnimationControl;
       
    35 class CTelBubbleCustomElement;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Base class for big bubbles (bottom, bottom right, middle).
       
    41 *
       
    42 *  @lib bubblemanager
       
    43 *  @since 1.0
       
    44 */
       
    45 class CBubbleOutlookTwoLined : public CBubbleOutlook
       
    46     {
       
    47     public:  // Destructor
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CBubbleOutlookTwoLined();
       
    53         
       
    54     protected: // Constructors
       
    55 
       
    56         /**
       
    57         * C++ default constructor.
       
    58         * @param aBubbleManager Main container
       
    59         */
       
    60         CBubbleOutlookTwoLined( CBubbleManager& aBubbleManager );
       
    61 
       
    62         /**
       
    63         * By default Symbian OS constructor is private.
       
    64         */
       
    65         void ConstructL();
       
    66         
       
    67     public: // Functions from base classes
       
    68 
       
    69         /**
       
    70         * From CBubbleOutlook.
       
    71         */
       
    72         virtual void Reset( );
       
    73         
       
    74         /**
       
    75         * From CBubbleOutlook.
       
    76         */
       
    77         virtual void ReadBubbleHeader( CBubbleHeader& aHeader );
       
    78         
       
    79         /**
       
    80         * From CBubbleOutlook.
       
    81         */
       
    82         virtual void DrawTimerCostNow();
       
    83         
       
    84         /**
       
    85         * From CBubbleOutlook.
       
    86         */
       
    87         virtual void DrawCLINow();
       
    88 
       
    89         /**
       
    90         * From CBubbleOutlook.
       
    91         */
       
    92         virtual void DrawBitmaps( CBitmapContext& aGc ) const;
       
    93 
       
    94         /**
       
    95         * From CBubbleOutlook.
       
    96         */
       
    97         virtual void HandleAnimationStartL() const;
       
    98 
       
    99         /**
       
   100         * From CBubbleOutlook.
       
   101         */
       
   102         virtual void DrawCallHeaderText();
       
   103         
       
   104     private:  // Functions from base classes
       
   105         
       
   106         /**
       
   107         * From CCoeControl
       
   108         */
       
   109         virtual void SizeChanged( ) = 0;
       
   110         
       
   111         /**
       
   112         * From CCoeControl
       
   113         */
       
   114         virtual TInt CountComponentControls( ) const;
       
   115         
       
   116         /**
       
   117         * From CCoeControl
       
   118         */
       
   119         virtual CCoeControl* ComponentControl( TInt aIndex ) const;
       
   120         
       
   121         /**
       
   122         * From CCoeControl
       
   123         */
       
   124         virtual void Draw( const TRect& aRect ) const;
       
   125         
       
   126     private: // New functions
       
   127 
       
   128         /**
       
   129         * Draw Call1 bitmaps
       
   130         */
       
   131         void DrawCall1Bitmaps( CBitmapContext& aGc ) const;
       
   132         
       
   133         /**
       
   134         * Draw Call2 bitmaps
       
   135         */
       
   136         void DrawCall2Bitmaps( CBitmapContext& aGc ) const;
       
   137 
       
   138     protected:  // Data
       
   139 
       
   140         // Current header
       
   141         CBubbleHeader* iHeader;
       
   142         // Line number where the label is set
       
   143         TUint8 iTextLineNumber;
       
   144         
       
   145         // Bubble image
       
   146         CEikImage* iBubble;
       
   147         
       
   148         // Big call indication / customized
       
   149         CTelBubbleCustomElement* iBigCallIndicator;
       
   150         // Small call indication
       
   151         CTelBubbleCustomElement* iSmallCallIndication;
       
   152         // Number type
       
   153         CTelBubbleCustomElement* iNumberType;
       
   154         // Call type indicator #1
       
   155         CEikImage* iTypeIndication1;
       
   156         // Call type indicator #2
       
   157         CEikImage* iTypeIndication2;
       
   158         // Cyphering off
       
   159         CEikImage* iCyphOffImage;
       
   160 
       
   161         // tn shadow
       
   162         TBubbleLayoutRect iTnImageShadow;
       
   163         
       
   164         // Thumbnail image
       
   165         CEikImage* iTnImage;
       
   166 
       
   167         // 1st line label
       
   168         mutable CEikLabel* iTextLine1; // Text will be clipped and placed in 
       
   169         // 2nd line text
       
   170         mutable CEikLabel* iTextLine2; // Draw() const method.
       
   171         // Original buffer
       
   172         TPtrC iFullText1; 
       
   173         // Original buffer
       
   174         TPtrC iFullText2;
       
   175         // Clip dir
       
   176         CBubbleManager::TPhoneClippingDirection iText1ClipDirection;
       
   177         // Clip dir
       
   178         CBubbleManager::TPhoneClippingDirection iText2ClipDirection;
       
   179         
       
   180         // Timer cost
       
   181         CEikLabel* iTimerCost;
       
   182         // Brand image.
       
   183         CTelBubbleCustomElement* iBrandImage;
       
   184     };
       
   185 
       
   186 #endif      // CBUBBLEOUTLOOKTWOLINED_H
       
   187             
       
   188 // End of File