|
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: List item for conference participant list. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BUBBLEPARTICIPANTLISTITEM_H |
|
19 #define BUBBLEPARTICIPANTLISTITEM_H |
|
20 |
|
21 #include <hbabstractviewitem.h> |
|
22 |
|
23 class QGraphicsItem; |
|
24 class HbPushButton; |
|
25 class HbAction; |
|
26 class HbIconItem; |
|
27 class HbFrameItem; |
|
28 class HbTextItem; |
|
29 |
|
30 class BubbleParticipantListItem : public HbAbstractViewItem |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 BubbleParticipantListItem(QGraphicsItem *parent = 0); |
|
36 |
|
37 ~BubbleParticipantListItem(); |
|
38 |
|
39 HbAbstractViewItem* createItem(); |
|
40 |
|
41 void updateChildItems(); |
|
42 void setExpanded(bool expanded); |
|
43 void addAction(HbAction* action); |
|
44 void clearActions(); |
|
45 |
|
46 private: |
|
47 void polish(HbStyleParameters& params); |
|
48 |
|
49 int type() const; |
|
50 |
|
51 private slots: |
|
52 void currentIndexChanged(const QModelIndex ¤t, |
|
53 const QModelIndex &previous); |
|
54 |
|
55 private: |
|
56 HbTextItem* mText; |
|
57 HbIconItem* mStatusIcon; |
|
58 HbIconItem* mCipheringIcon; |
|
59 HbIconItem* mExpandIcon; |
|
60 HbPushButton* mButton1; |
|
61 HbPushButton* mButton2; |
|
62 QList<HbAction*> mActions; |
|
63 |
|
64 bool mExpanded; |
|
65 }; |
|
66 |
|
67 #endif // BUBBLEPARTICIPANTLISTITEM_H |