phoneuis/BubbleManager/Inc/BMBubbleOutlookOneLined.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 *     Base class for big bubbles (bottom, bottom right, middle).
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CBUBBLEOUTLOOKONELINED_H
       
    21 #define CBUBBLEOUTLOOKONELINED_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <calslbs.h>
       
    25 #include "BMBubbleOutlook.h"
       
    26 #include "BMBubbleManager.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CBubbleHeader;
       
    30 class CEikLabel; 
       
    31 class CEikImage;
       
    32 class CBubbleImageManager;
       
    33 class CBubbleAnimationControl;
       
    34 class CTelBubbleCustomElement;
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  Base class for big bubbles (bottom, bottom right, middle).
       
    39 *
       
    40 *  @lib bubblemanager
       
    41 *  @since 1.0
       
    42 */
       
    43 class CBubbleOutlookOneLined : public CBubbleOutlook
       
    44     {
       
    45     public:  // Destructor
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CBubbleOutlookOneLined();
       
    51         
       
    52     protected: // Constructors
       
    53 
       
    54         /**
       
    55         * C++ default constructor.
       
    56         * @param aBubbleManager Main container
       
    57         */
       
    58         CBubbleOutlookOneLined( CBubbleManager& aBubbleManager );
       
    59 
       
    60         /**
       
    61         * 2nd phase constructor
       
    62         */
       
    63         void ConstructL();
       
    64 
       
    65     public: // Functions from base classes
       
    66 
       
    67         /**
       
    68         * From CBubbleOutlook.
       
    69         */
       
    70         virtual void Reset();
       
    71         
       
    72         /**
       
    73         * From CBubbleOutlook.
       
    74         */
       
    75         virtual void ReadBubbleHeader( CBubbleHeader& aHeader );
       
    76         
       
    77         /**
       
    78         * From CBubbleOutlook.
       
    79         */
       
    80         virtual void DrawTimerCostNow();
       
    81         
       
    82         /**
       
    83         * From CBubbleOutlook.
       
    84         */
       
    85         virtual void DrawCLINow();
       
    86 
       
    87         /**
       
    88         * From CBubbleOutlook.
       
    89         */
       
    90         virtual void DrawBitmaps( CBitmapContext& aGc ) const;
       
    91 
       
    92         /**
       
    93         * From CBubbleOutlook.
       
    94         */
       
    95         virtual void HandleAnimationStartL() const;
       
    96 
       
    97         /**
       
    98         * From CBubbleOutlook.
       
    99         */
       
   100         virtual void ReleaseBitmaps();
       
   101 
       
   102         /**
       
   103         * From CBubbleOutlook.
       
   104         */
       
   105         virtual void RebuildBitmaps();
       
   106 
       
   107 
       
   108         /**
       
   109         * From CBubbleOutlook.
       
   110         */
       
   111         virtual void DrawCallHeaderText();
       
   112 
       
   113     private:  // Functions from base classes
       
   114         
       
   115         /**
       
   116         * From CCoeControl
       
   117         */
       
   118         virtual void SizeChanged( ) = 0;
       
   119         
       
   120         /**
       
   121         * From CCoeControl
       
   122         */
       
   123         virtual TInt CountComponentControls( ) const;
       
   124         
       
   125         /**
       
   126         * From CCoeControl
       
   127         */
       
   128         virtual CCoeControl* ComponentControl( TInt aIndex ) const;
       
   129         
       
   130         /**
       
   131         * From CCoeControl
       
   132         */
       
   133         virtual void Draw( const TRect& aRect ) const;
       
   134         
       
   135     private: // New functions
       
   136 
       
   137         /**
       
   138         * Draw Call1 bitmaps
       
   139         */
       
   140         void DrawCall1Bitmaps( CBitmapContext& aGc ) const;
       
   141 
       
   142         /**
       
   143         * Draw Call2 bitmaps
       
   144         */
       
   145         void DrawCall2Bitmaps( CBitmapContext& aGc ) const;
       
   146 
       
   147     protected:  // Data
       
   148 
       
   149         // Current call header
       
   150         CBubbleHeader* iHeader;
       
   151         
       
   152         // Bubble image
       
   153         CEikImage* iBubble;
       
   154 
       
   155         // Small call indication
       
   156         CTelBubbleCustomElement* iSmallCallIndication;
       
   157         
       
   158         // Type indication #1
       
   159         CEikImage* iTypeIndication1;
       
   160         // Type indication #2
       
   161         CEikImage* iTypeIndication2;
       
   162         // Cyphering off indication
       
   163         CEikImage* iCyphOffImage;
       
   164         
       
   165         // Text label
       
   166         mutable CEikLabel* iTextLine1;
       
   167         // Pointer to original text.
       
   168         TPtrC iFullText1;
       
   169         // Clipping direction
       
   170         CBubbleManager::TPhoneClippingDirection iText1ClipDirection;
       
   171     };
       
   172 
       
   173 #endif      // CBUBBLEOUTLOOKONELINED_H
       
   174             
       
   175 // End of File