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