|
1 /*! |
|
2 * Copyright (c) 2009 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: Conference call bubble handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BUBBLECONFERENCEHANDLER_H_ |
|
19 #define BUBBLECONFERENCEHANDLER_H_ |
|
20 |
|
21 #include "bubblehandler.h" |
|
22 #include "bubblewidgetmanager.h" |
|
23 |
|
24 class BubbleHeader; |
|
25 class HbAction; |
|
26 class BubbleButton; |
|
27 class HbLabel; |
|
28 class BubbleConferenceHeader; |
|
29 class HbListWidgetItem; |
|
30 class BubbleParticipantListItem; |
|
31 class HbListView; |
|
32 class BubbleParticipantListModel; |
|
33 class QTimer; |
|
34 class QModelIndex; |
|
35 |
|
36 class BubbleConferenceHandler : public BubbleHandler |
|
37 { |
|
38 Q_OBJECT |
|
39 |
|
40 public: |
|
41 explicit BubbleConferenceHandler( |
|
42 BubbleWidgetManager& widgetManager, |
|
43 BubbleWidgetManager::View view, |
|
44 BubbleWidgetManager::Container container, |
|
45 QObject* parent = 0); |
|
46 virtual ~BubbleConferenceHandler(); |
|
47 |
|
48 protected: |
|
49 void reset(); |
|
50 |
|
51 void readBubbleHeader( const BubbleHeader& header ); |
|
52 |
|
53 void setButtons(const QList<HbAction*>& actions); |
|
54 |
|
55 QGraphicsWidget* graphicsWidgetForAction( HbAction* action ) const; |
|
56 |
|
57 void updateTimerDisplayNow(); |
|
58 |
|
59 void conferenceMemberRemoved(int bubbleId); |
|
60 |
|
61 void conferenceRemoved(); |
|
62 |
|
63 protected slots: |
|
64 void handleItemSelected( const QModelIndex& current, |
|
65 const QModelIndex& previous); |
|
66 void clearSelection(); |
|
67 |
|
68 protected: //data |
|
69 const BubbleConferenceHeader* mHeader; |
|
70 HbLabel* mTimerLabel; |
|
71 BubbleButton* mButtonCenter; |
|
72 BubbleButton* mButtonLeft; |
|
73 BubbleButton* mButtonRight; |
|
74 HbListView* mList; |
|
75 BubbleParticipantListModel* mModel; |
|
76 BubbleParticipantListItem* mPrototype; // not owned |
|
77 QTimer* mSelectionTimer; |
|
78 }; |
|
79 |
|
80 #endif /* BUBBLECONFERENCEHANDLER_H_ */ |