|
1 /* |
|
2 * Copyright (c) 2002 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 * Concrete class which holds info about conference call |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CONFHEADER_H |
|
21 #define CONFHEADER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "BMBubbleHeader.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CBubbleCallHeader; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CBubbleConfHeader class |
|
33 * |
|
34 * Concrete class which holds info about conference call |
|
35 * |
|
36 * @lib bubblemanager |
|
37 * @since 1.0 |
|
38 */ |
|
39 |
|
40 class CBubbleConfHeader : public CBubbleHeader |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * two phase constructor |
|
46 * @param aBubbleId Id of the call header |
|
47 * @return New instance |
|
48 */ |
|
49 static CBubbleConfHeader* NewL( |
|
50 const CBubbleManager::TBubbleId& aBubbleId); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CBubbleConfHeader(); |
|
56 |
|
57 public: // Member functions |
|
58 |
|
59 /** |
|
60 * Add call to conference call. |
|
61 * @param aCall Added call. |
|
62 */ |
|
63 void AddRow( CBubbleCallHeader& aCall ); |
|
64 |
|
65 /** |
|
66 * Remove call from conferece. |
|
67 * @param aCallId Bubble id of removed call. |
|
68 */ |
|
69 void RemoveRow( const CBubbleManager::TBubbleId& aCallId ); |
|
70 |
|
71 /** |
|
72 * Get headers in conference call. |
|
73 * @param aCalls Reference where item are put to. |
|
74 */ |
|
75 void GetRows( CArrayPtrFlat<CBubbleCallHeader>& aCalls ) const; |
|
76 |
|
77 /** |
|
78 * Get amount of calls in conference call. |
|
79 * @return Amount of calls in conf. |
|
80 */ |
|
81 TUint8 RowCount() const; |
|
82 |
|
83 /** |
|
84 * Set highlight row. |
|
85 * @param aRow The row number 1-n. KBubbleNoHighlightRow no highlight. |
|
86 */ |
|
87 void SetHighlight( const CBubbleManager::TRowNumber& aRow ); |
|
88 |
|
89 /** |
|
90 * Set highlight header. |
|
91 * @param aBubbleId Id of highlighted item. |
|
92 */ |
|
93 void SetHighlightId( const CBubbleManager::TBubbleId& aBubbleId ); |
|
94 |
|
95 /** |
|
96 * Get bubble id of highlighted item. |
|
97 * @return Id of highlighted item. KBubbleInvalidId if no highlight. |
|
98 */ |
|
99 CBubbleManager::TBubbleId HighlightId() const; |
|
100 |
|
101 /** |
|
102 * Move highlight one item upwards. If already at upmost, no change. |
|
103 */ |
|
104 void MoveHighlightOneUp(); |
|
105 |
|
106 /** |
|
107 * Move highlight one item downwards. If already at lowest, no change. |
|
108 */ |
|
109 void MoveHighlightOneDown(); |
|
110 |
|
111 /** |
|
112 * Get the highlight row number. |
|
113 * @return The row number 1-n. KBubbleNoHighlightRow no highlight. |
|
114 */ |
|
115 CBubbleManager::TRowNumber Highlight() const; |
|
116 |
|
117 /** |
|
118 * Set conference call expanded. |
|
119 * @param aIsExpanded ETrue expands the conf call. |
|
120 */ |
|
121 void SetIsExpanded( TBool aIsExpanded ); |
|
122 |
|
123 /** |
|
124 * Is conference expanded. |
|
125 * @return ETrue if expanded. |
|
126 */ |
|
127 TBool IsExpanded( ) const; |
|
128 |
|
129 public: // Functions form base classes |
|
130 |
|
131 /** |
|
132 * From CBubbleHeader. |
|
133 */ |
|
134 virtual void Reset(); |
|
135 |
|
136 /** |
|
137 * From CBubbleHeader. |
|
138 */ |
|
139 virtual void SetIsUsed( const TBool& aIsUsed ); |
|
140 |
|
141 /** |
|
142 * From CBubbleHeader. |
|
143 */ |
|
144 virtual TBool IsUsed() const; |
|
145 |
|
146 /** |
|
147 * From CBubbleHeader. |
|
148 */ |
|
149 virtual TBool IsConference() const; |
|
150 |
|
151 protected: |
|
152 |
|
153 /** |
|
154 * Default constructor. |
|
155 */ |
|
156 CBubbleConfHeader(); |
|
157 |
|
158 private: // private functions |
|
159 |
|
160 /** |
|
161 * 2nd phase constructor. |
|
162 */ |
|
163 void ConstructL( const CBubbleManager::TBubbleId& aBubbleId ); |
|
164 |
|
165 private: //data |
|
166 // Is header used? |
|
167 TBool iIsUsed; |
|
168 // Is conference expanded? |
|
169 TBool iIsExpanded; |
|
170 //1-5 , KBubbleNoHighlightRow no highlight |
|
171 CBubbleManager::TRowNumber iSelection; |
|
172 // Current calls in conference call |
|
173 CArrayPtrFlat<CBubbleCallHeader>* iCalls; |
|
174 |
|
175 private: |
|
176 friend class CT_CBubbleConfHeader; |
|
177 }; |
|
178 |
|
179 #endif //CONFHEADER_H |
|
180 |
|
181 // End of File |