16 */ |
16 */ |
17 |
17 |
18 #ifndef BUBBLEPARTICIPANTLISTITEM_H |
18 #ifndef BUBBLEPARTICIPANTLISTITEM_H |
19 #define BUBBLEPARTICIPANTLISTITEM_H |
19 #define BUBBLEPARTICIPANTLISTITEM_H |
20 |
20 |
21 #include <hblistviewitem.h> |
21 #include <hbabstractviewitem.h> |
22 |
22 |
23 class QGraphicsItem; |
23 class QGraphicsItem; |
24 class HbPushButton; |
24 class HbPushButton; |
25 class BubbleButtonStyle; |
|
26 class HbAction; |
25 class HbAction; |
27 class HbIconItem; |
26 class HbIconItem; |
|
27 class HbFrameItem; |
|
28 class HbTextItem; |
28 |
29 |
29 class BubbleParticipantListItem : public HbListViewItem |
30 class BubbleParticipantListItem : public HbAbstractViewItem |
30 { |
31 { |
31 Q_OBJECT |
32 Q_OBJECT |
32 |
33 |
33 public: |
34 public: |
34 BubbleParticipantListItem( |
35 BubbleParticipantListItem(QGraphicsItem *parent = 0); |
35 const QString& stylePluginName, |
|
36 BubbleButtonStyle& buttonStyle, |
|
37 QGraphicsItem *parent = 0); |
|
38 |
36 |
39 ~BubbleParticipantListItem(); |
37 ~BubbleParticipantListItem(); |
40 |
38 |
41 HbAbstractViewItem* createItem(); |
39 HbAbstractViewItem* createItem(); |
42 |
40 |
43 void updateChildItems(); |
41 void updateChildItems(); |
44 void receivedFocus(); |
|
45 void lostFocus(); |
|
46 void setExpanded(bool expanded); |
42 void setExpanded(bool expanded); |
47 void addAction(HbAction* action); |
43 void addAction(HbAction* action); |
48 void clearActions(); |
44 void clearActions(); |
49 |
45 |
50 signals: |
|
51 void selectionChanged(int row); |
|
52 |
|
53 private: |
46 private: |
54 void polish(HbStyleParameters& params); |
47 void polish(HbStyleParameters& params); |
55 |
48 |
|
49 int type() const; |
|
50 |
|
51 private slots: |
|
52 void currentIndexChanged(const QModelIndex ¤t, |
|
53 const QModelIndex &previous); |
|
54 |
56 private: |
55 private: |
57 QString mStylePluginName; |
56 HbTextItem* mText; |
58 int mStylePluginBaseId; |
57 HbIconItem* mStatusIcon; |
59 BubbleButtonStyle& mButtonStyle; |
58 HbIconItem* mCipheringIcon; |
60 QGraphicsItem* mBackground; |
59 HbIconItem* mExpandIcon; |
61 QGraphicsItem* mText; |
60 HbPushButton* mButton1; |
62 QGraphicsItem* mStatusIcon; |
61 HbPushButton* mButton2; |
63 QGraphicsItem* mCipheringIcon; |
|
64 HbIconItem* mExpandIcon; |
|
65 HbPushButton* mButton1; |
|
66 HbPushButton* mButton2; |
|
67 QList<HbAction*> mActions; |
62 QList<HbAction*> mActions; |
68 |
63 |
69 bool mExpanded; |
64 bool mExpanded; |
70 }; |
65 }; |
71 |
66 |