|
1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 * All rights reserved. |
|
3 * This component and the accompanying materials are made available |
|
4 * under the terms of the License "Eclipse Public License v1.0" |
|
5 * which accompanies this distribution, and is available |
|
6 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * |
|
15 */ |
|
16 #include <QDebug> |
|
17 #include <smcmockclassincludes.h> |
|
18 #include <hbaction.h> |
|
19 #include "bubblemanager2.h" |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // BubbleManager::BubbleManager |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 BubbleManager::BubbleManager( |
|
28 QGraphicsItem * parent ) |
|
29 : HbWidget( parent ) |
|
30 { |
|
31 |
|
32 } |
|
33 |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // BubbleManager::~BubbleManager |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 BubbleManager::~BubbleManager( ) |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // BubbleManager::startChanges |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 void BubbleManager::startChanges( ) |
|
50 { |
|
51 SMC_MOCK_METHOD0( void ) |
|
52 } |
|
53 |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // BubbleManager::endChanges |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 void BubbleManager::endChanges( ) |
|
60 { |
|
61 SMC_MOCK_METHOD0( void ) |
|
62 } |
|
63 |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // BubbleManager::createCallHeader |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 int BubbleManager::createCallHeader( ) |
|
70 { |
|
71 SMC_MOCK_METHOD0( int ) |
|
72 } |
|
73 |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // BubbleManager::removeCallHeader |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 void BubbleManager::removeCallHeader( |
|
80 int bubbleId ) |
|
81 { |
|
82 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
83 } |
|
84 |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // BubbleManager::setState |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void BubbleManager::setState( |
|
91 int bubbleId, |
|
92 PhoneCallState state ) |
|
93 { |
|
94 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
95 PhoneCallState, state ) |
|
96 } |
|
97 |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // BubbleManager::setLabel |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void BubbleManager::setLabel( |
|
104 int bubbleId, |
|
105 const QString & text, |
|
106 Qt::TextElideMode clipDirection ) |
|
107 { |
|
108 SMC_MOCK_METHOD3( void, int, bubbleId, |
|
109 const QString &, text, |
|
110 Qt::TextElideMode, clipDirection ) |
|
111 } |
|
112 |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // BubbleManager::setCli |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 void BubbleManager::setCli( |
|
119 int bubbleId, |
|
120 const QString & cliText, |
|
121 Qt::TextElideMode clipDirection ) |
|
122 { |
|
123 SMC_MOCK_METHOD3( void, int, bubbleId, |
|
124 const QString &, cliText, |
|
125 Qt::TextElideMode, clipDirection ) |
|
126 } |
|
127 |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // BubbleManager::updateCLI |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 void BubbleManager::updateCLI( |
|
134 int bubbleId, |
|
135 const QString & cliText, |
|
136 Qt::TextElideMode clipDirection ) |
|
137 { |
|
138 SMC_MOCK_METHOD3( void, int, bubbleId, |
|
139 const QString &, cliText, |
|
140 Qt::TextElideMode, clipDirection ) |
|
141 } |
|
142 |
|
143 |
|
144 // ----------------------------------------------------------------------------- |
|
145 // BubbleManager::setSecondaryCli |
|
146 // ----------------------------------------------------------------------------- |
|
147 // |
|
148 void BubbleManager::setSecondaryCli( |
|
149 int bubbleId, |
|
150 const QString & cliText, |
|
151 Qt::TextElideMode clipDirection ) |
|
152 { |
|
153 SMC_MOCK_METHOD3( void, int, bubbleId, |
|
154 const QString &, cliText, |
|
155 Qt::TextElideMode, clipDirection ) |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // BubbleManager::setCallTime |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 void BubbleManager::setCallTime( |
|
164 int bubbleId, |
|
165 const QString & callTime ) |
|
166 { |
|
167 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
168 const QString &, callTime ) |
|
169 } |
|
170 |
|
171 |
|
172 // ----------------------------------------------------------------------------- |
|
173 // BubbleManager::updateCallTime |
|
174 // ----------------------------------------------------------------------------- |
|
175 // |
|
176 void BubbleManager::updateCallTime( |
|
177 int bubbleId, |
|
178 const QString & callTime ) |
|
179 { |
|
180 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
181 const QString &, callTime ) |
|
182 } |
|
183 |
|
184 |
|
185 // ----------------------------------------------------------------------------- |
|
186 // BubbleManager::setCallObjectImage |
|
187 // ----------------------------------------------------------------------------- |
|
188 // |
|
189 void BubbleManager::setCallObjectImage( |
|
190 int bubbleId, |
|
191 const QString & fileName ) |
|
192 { |
|
193 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
194 const QString &, fileName ) |
|
195 } |
|
196 |
|
197 |
|
198 // ----------------------------------------------------------------------------- |
|
199 // BubbleManager::setCallObjectFromTheme |
|
200 // ----------------------------------------------------------------------------- |
|
201 // |
|
202 void BubbleManager::setCallObjectFromTheme( |
|
203 int bubbleId ) |
|
204 { |
|
205 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
206 } |
|
207 |
|
208 |
|
209 // ----------------------------------------------------------------------------- |
|
210 // BubbleManager::setCallFlags |
|
211 // ----------------------------------------------------------------------------- |
|
212 // |
|
213 void BubbleManager::setCallFlags( |
|
214 int bubbleId, |
|
215 int flags ) |
|
216 { |
|
217 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
218 int, flags ) |
|
219 } |
|
220 |
|
221 |
|
222 // ----------------------------------------------------------------------------- |
|
223 // BubbleManager::setCallFlag |
|
224 // ----------------------------------------------------------------------------- |
|
225 // |
|
226 void BubbleManager::setCallFlag( |
|
227 int bubbleId, |
|
228 PhoneCallFlags flag, |
|
229 bool set ) |
|
230 { |
|
231 SMC_MOCK_METHOD3( void, int, bubbleId, |
|
232 /*PhoneCallFlags*/int, flag, |
|
233 bool, set ) |
|
234 } |
|
235 |
|
236 |
|
237 // ----------------------------------------------------------------------------- |
|
238 // BubbleManager::setNumberType |
|
239 // ----------------------------------------------------------------------------- |
|
240 // |
|
241 void BubbleManager::setNumberType( |
|
242 int bubbleId, |
|
243 PhoneNumberType type ) |
|
244 { |
|
245 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
246 PhoneNumberType, type ) |
|
247 } |
|
248 |
|
249 |
|
250 // ----------------------------------------------------------------------------- |
|
251 // BubbleManager::setPhoneMuted |
|
252 // ----------------------------------------------------------------------------- |
|
253 // |
|
254 void BubbleManager::setPhoneMuted( |
|
255 bool muted ) |
|
256 { |
|
257 SMC_MOCK_METHOD1( void, bool, muted ) |
|
258 } |
|
259 |
|
260 |
|
261 // ----------------------------------------------------------------------------- |
|
262 // BubbleManager::createConference |
|
263 // ----------------------------------------------------------------------------- |
|
264 // |
|
265 int BubbleManager::createConference( |
|
266 int bubble1, |
|
267 int bubble2 ) |
|
268 { |
|
269 SMC_MOCK_METHOD2( int, int, bubble1, |
|
270 int, bubble2 ) |
|
271 } |
|
272 |
|
273 |
|
274 // ----------------------------------------------------------------------------- |
|
275 // BubbleManager::removeConference |
|
276 // ----------------------------------------------------------------------------- |
|
277 // |
|
278 void BubbleManager::removeConference( ) |
|
279 { |
|
280 SMC_MOCK_METHOD0( void ) |
|
281 } |
|
282 |
|
283 |
|
284 // ----------------------------------------------------------------------------- |
|
285 // BubbleManager::addRowToConference |
|
286 // ----------------------------------------------------------------------------- |
|
287 // |
|
288 void BubbleManager::addRowToConference( |
|
289 int bubbleId ) |
|
290 { |
|
291 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
292 } |
|
293 |
|
294 |
|
295 // ----------------------------------------------------------------------------- |
|
296 // BubbleManager::removeRowFromConference |
|
297 // ----------------------------------------------------------------------------- |
|
298 // |
|
299 void BubbleManager::removeRowFromConference( |
|
300 int bubbleId ) |
|
301 { |
|
302 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
303 } |
|
304 |
|
305 |
|
306 // ----------------------------------------------------------------------------- |
|
307 // BubbleManager::conferenceRowCount |
|
308 // ----------------------------------------------------------------------------- |
|
309 // |
|
310 int BubbleManager::conferenceRowCount( ) const |
|
311 { |
|
312 SMC_MOCK_METHOD0( int ) |
|
313 } |
|
314 |
|
315 |
|
316 // ----------------------------------------------------------------------------- |
|
317 // BubbleManager::setSelectionInConference |
|
318 // ----------------------------------------------------------------------------- |
|
319 // |
|
320 void BubbleManager::setSelectionInConference( |
|
321 int rowNumber ) |
|
322 { |
|
323 SMC_MOCK_METHOD1( void, int, rowNumber ) |
|
324 } |
|
325 |
|
326 |
|
327 // ----------------------------------------------------------------------------- |
|
328 // BubbleManager::setSelectionIdInConference |
|
329 // ----------------------------------------------------------------------------- |
|
330 // |
|
331 void BubbleManager::setSelectionIdInConference( |
|
332 int bubbleId ) |
|
333 { |
|
334 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
335 } |
|
336 |
|
337 |
|
338 // ----------------------------------------------------------------------------- |
|
339 // BubbleManager::selectionInConference |
|
340 // ----------------------------------------------------------------------------- |
|
341 // |
|
342 int BubbleManager::selectionInConference( ) const |
|
343 { |
|
344 SMC_MOCK_METHOD0( int ) |
|
345 } |
|
346 |
|
347 |
|
348 // ----------------------------------------------------------------------------- |
|
349 // BubbleManager::selectionIdInConference |
|
350 // ----------------------------------------------------------------------------- |
|
351 // |
|
352 int BubbleManager::selectionIdInConference( ) const |
|
353 { |
|
354 SMC_MOCK_METHOD0( int ) |
|
355 } |
|
356 |
|
357 |
|
358 // ----------------------------------------------------------------------------- |
|
359 // BubbleManager::moveHighlightOneUpInConference |
|
360 // ----------------------------------------------------------------------------- |
|
361 // |
|
362 void BubbleManager::moveHighlightOneUpInConference( ) |
|
363 { |
|
364 SMC_MOCK_METHOD0( void ) |
|
365 } |
|
366 |
|
367 |
|
368 // ----------------------------------------------------------------------------- |
|
369 // BubbleManager::moveHighlightOneDownInConference |
|
370 // ----------------------------------------------------------------------------- |
|
371 // |
|
372 void BubbleManager::moveHighlightOneDownInConference( ) |
|
373 { |
|
374 SMC_MOCK_METHOD0( void ) |
|
375 } |
|
376 |
|
377 |
|
378 // ----------------------------------------------------------------------------- |
|
379 // BubbleManager::setExpandedConferenceCallHeader |
|
380 // ----------------------------------------------------------------------------- |
|
381 // |
|
382 void BubbleManager::setExpandedConferenceCallHeader( |
|
383 bool expanded ) |
|
384 { |
|
385 SMC_MOCK_METHOD1( void, bool, expanded ) |
|
386 } |
|
387 |
|
388 |
|
389 // ----------------------------------------------------------------------------- |
|
390 // BubbleManager::isConferenceExpanded |
|
391 // ----------------------------------------------------------------------------- |
|
392 // |
|
393 bool BubbleManager::isConferenceExpanded( ) const |
|
394 { |
|
395 SMC_MOCK_METHOD0( bool ) |
|
396 } |
|
397 |
|
398 |
|
399 // ----------------------------------------------------------------------------- |
|
400 // BubbleManager::shownHeaderCount |
|
401 // ----------------------------------------------------------------------------- |
|
402 // |
|
403 int BubbleManager::shownHeaderCount( ) const |
|
404 { |
|
405 SMC_MOCK_METHOD0( int ) |
|
406 } |
|
407 |
|
408 |
|
409 // ----------------------------------------------------------------------------- |
|
410 // BubbleManager::setParticipantListCli |
|
411 // ----------------------------------------------------------------------------- |
|
412 // |
|
413 void BubbleManager::setParticipantListCli( |
|
414 int aBubbleId, |
|
415 ParticipantListCli aParticipantCli ) |
|
416 { |
|
417 SMC_MOCK_METHOD2( void, int, aBubbleId, |
|
418 ParticipantListCli, aParticipantCli ) |
|
419 } |
|
420 |
|
421 |
|
422 // ----------------------------------------------------------------------------- |
|
423 // BubbleManager::addAction |
|
424 // ----------------------------------------------------------------------------- |
|
425 // |
|
426 void BubbleManager::addAction( |
|
427 int bubbleId, |
|
428 HbAction * a ) |
|
429 { |
|
430 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
431 HbAction *, a ) |
|
432 } |
|
433 |
|
434 |
|
435 // ----------------------------------------------------------------------------- |
|
436 // BubbleManager::clearActions |
|
437 // ----------------------------------------------------------------------------- |
|
438 // |
|
439 void BubbleManager::clearActions( |
|
440 int bubbleId ) |
|
441 { |
|
442 SMC_MOCK_METHOD1( void, int, bubbleId ) |
|
443 } |
|
444 |
|
445 |
|
446 // ----------------------------------------------------------------------------- |
|
447 // BubbleManager::graphicsWidgetForAction |
|
448 // ----------------------------------------------------------------------------- |
|
449 // |
|
450 QGraphicsWidget * BubbleManager::graphicsWidgetForAction( |
|
451 HbAction * a ) const |
|
452 { |
|
453 SMC_MOCK_METHOD1( QGraphicsWidget *, HbAction *, a ) |
|
454 } |
|
455 |
|
456 |
|
457 // ----------------------------------------------------------------------------- |
|
458 // BubbleManager::addParticipantListAction |
|
459 // ----------------------------------------------------------------------------- |
|
460 // |
|
461 void BubbleManager::addParticipantListAction( |
|
462 HbAction * a ) |
|
463 { |
|
464 SMC_MOCK_METHOD1( void, HbAction *, a ) |
|
465 } |
|
466 |
|
467 |
|
468 // ----------------------------------------------------------------------------- |
|
469 // BubbleManager::clearParticipantListActions |
|
470 // ----------------------------------------------------------------------------- |
|
471 // |
|
472 void BubbleManager::clearParticipantListActions( ) |
|
473 { |
|
474 SMC_MOCK_METHOD0( void ) |
|
475 } |
|
476 |
|
477 |
|
478 // ----------------------------------------------------------------------------- |
|
479 // BubbleManager::expandedBubble |
|
480 // ----------------------------------------------------------------------------- |
|
481 // |
|
482 int BubbleManager::expandedBubble( ) const |
|
483 { |
|
484 SMC_MOCK_METHOD0( int ) |
|
485 } |
|
486 |
|
487 |
|
488 // ----------------------------------------------------------------------------- |
|
489 // BubbleManager::setExpandAction |
|
490 // ----------------------------------------------------------------------------- |
|
491 // |
|
492 void BubbleManager::setExpandAction( |
|
493 int bubbleId, |
|
494 HbAction * a ) |
|
495 { |
|
496 SMC_MOCK_METHOD2( void, int, bubbleId, |
|
497 HbAction *, a ) |
|
498 } |
|
499 |
|
500 |
|
501 // ----------------------------------------------------------------------------- |
|
502 // BubbleManager::setBubbleSelectionDisabled |
|
503 // ----------------------------------------------------------------------------- |
|
504 // |
|
505 void BubbleManager::setBubbleSelectionDisabled( |
|
506 bool disabled ) |
|
507 { |
|
508 SMC_MOCK_METHOD1( void, bool, disabled ) |
|
509 } |
|
510 |
|
511 |
|
512 // ----------------------------------------------------------------------------- |
|
513 // BubbleManager::handleOrientationChange |
|
514 // ----------------------------------------------------------------------------- |
|
515 // |
|
516 void BubbleManager::handleOrientationChange( |
|
517 Qt::Orientation orientation ) |
|
518 { |
|
519 SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) |
|
520 } |
|
521 |
|
522 |