|
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 * Draws expanded conference call |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef BUBBLEOUTLOOKCONFERENCE_H |
|
21 #define BUBBLEOUTLOOKCONFERENCE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <calslbs.h> |
|
25 |
|
26 #include "BMBubbleOutlook.h" |
|
27 #include "BMCallHeader.h" |
|
28 #include "BMConfPane.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CEikLabel; |
|
32 class CEikImage; |
|
33 class CBubbleImageManager; |
|
34 class CConfHeader; |
|
35 |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * CBubbleOutlookConference container class |
|
41 * |
|
42 * Object handles expanded conference call. |
|
43 * |
|
44 * @lib bubblemanager |
|
45 * @since 1.0 |
|
46 */ |
|
47 class CBubbleOutlookConference : public CBubbleOutlook |
|
48 { |
|
49 |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Symbian OS default constructor. |
|
54 * @param aBubbleManager Main container |
|
55 */ |
|
56 CBubbleOutlookConference( CBubbleManager& aBubbleManager ); |
|
57 |
|
58 /** |
|
59 * Symbian OS 2nd phase constructor. |
|
60 * @param aCallAmount Amount of panes allocated. |
|
61 */ |
|
62 void ConstructL( const TUint8& aCallAmount ); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CBubbleOutlookConference(); |
|
68 |
|
69 public: // New functions |
|
70 |
|
71 /** |
|
72 * Draws given row |
|
73 * @param aRow Row number to be drawn. |
|
74 */ |
|
75 void DrawRowNow( CBubbleManager::TRowNumber aRow ); |
|
76 |
|
77 |
|
78 public:// Functions from base classes |
|
79 |
|
80 /** |
|
81 * From CBubbleOutlook |
|
82 */ |
|
83 void Reset(); |
|
84 |
|
85 /** |
|
86 * From CBubbleOutlook |
|
87 */ |
|
88 void ReadBubbleHeader( CBubbleHeader& aHeader ); |
|
89 |
|
90 /** |
|
91 * From CBubbleOutlook |
|
92 */ |
|
93 virtual void DrawTimerCostNow(); |
|
94 |
|
95 /** |
|
96 * From CBubbleOutlook |
|
97 */ |
|
98 virtual void DrawCLINow(); |
|
99 |
|
100 /** |
|
101 * From CBubbleOutlook |
|
102 */ |
|
103 void DrawBitmaps( CBitmapContext& aGc ) const; |
|
104 |
|
105 /** |
|
106 * From CBubbleOutlook. |
|
107 */ |
|
108 virtual void HandleAnimationStartL() const; |
|
109 |
|
110 /** |
|
111 * From CBubbleOutlook. |
|
112 */ |
|
113 virtual void DrawCallHeaderText(); |
|
114 |
|
115 private: // Functions from base classes |
|
116 |
|
117 /** |
|
118 * From CCoeControl Called when rect changes |
|
119 */ |
|
120 void SizeChanged(); |
|
121 |
|
122 /** |
|
123 * From CCoeControl |
|
124 */ |
|
125 TInt CountComponentControls() const; |
|
126 |
|
127 /** |
|
128 * From CCoeControl |
|
129 */ |
|
130 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
131 |
|
132 /** |
|
133 * From CCoeControl |
|
134 */ |
|
135 void Draw( const TRect& aRect ) const; |
|
136 |
|
137 /** |
|
138 * From CCoeControl |
|
139 */ |
|
140 void CBubbleOutlookConference::HandlePointerEventL |
|
141 ( const TPointerEvent& aPointerEvent ); |
|
142 |
|
143 private: |
|
144 |
|
145 /** |
|
146 * DoCall1Layout |
|
147 */ |
|
148 void DoCall1Layout(); |
|
149 |
|
150 /** |
|
151 * DoCall2LayoutL |
|
152 */ |
|
153 void DoCall2LayoutL(); |
|
154 |
|
155 /** |
|
156 * DoCall4Layout |
|
157 */ |
|
158 void DoCall4LayoutL(); |
|
159 |
|
160 /** |
|
161 * GetCall1BubbleBitmaps |
|
162 */ |
|
163 void GetCall1BubbleBitmaps(); |
|
164 |
|
165 private: //data |
|
166 |
|
167 // call amount in conference |
|
168 TUint8 iPaneAmount; |
|
169 |
|
170 // all the information |
|
171 CBubbleConfHeader* iHeader; |
|
172 |
|
173 // speech bubble image |
|
174 CEikImage* iBubble; |
|
175 // Timer control |
|
176 CEikLabel* iTimerCost; |
|
177 |
|
178 // for drawing |
|
179 CArrayPtrFlat<CBubbleConfPane>* iConfPanes; |
|
180 // for fetching info |
|
181 CArrayPtrFlat<CBubbleCallHeader>* iCalls; |
|
182 |
|
183 private: |
|
184 |
|
185 friend class CT_CBubbleOutlookConference; |
|
186 |
|
187 }; |
|
188 |
|
189 #endif // BUBBLEOUTLOOKCONFERENCE_H |
|
190 |
|
191 // End of File |