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