phoneuis/bubblemanager2/bubblecore/src/bubbleparticipantlistitem.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    19 #define BUBBLEPARTICIPANTLISTITEM_H
    19 #define BUBBLEPARTICIPANTLISTITEM_H
    20 
    20 
    21 #include <hbabstractviewitem.h>
    21 #include <hbabstractviewitem.h>
    22 
    22 
    23 class QGraphicsItem;
    23 class QGraphicsItem;
    24 class HbPushButton;
    24 class HbGroupBox;
    25 class HbAction;
    25 class HbAction;
    26 class HbIconItem;
       
    27 class HbFrameItem;
       
    28 class HbTextItem;
       
    29 
    26 
    30 class BubbleParticipantListItem : public HbAbstractViewItem
    27 class BubbleParticipantListItem : public HbAbstractViewItem
    31 {
    28 {
    32     Q_OBJECT
    29     Q_OBJECT
    33 
    30 
    37     ~BubbleParticipantListItem();
    34     ~BubbleParticipantListItem();
    38 
    35 
    39     HbAbstractViewItem* createItem();
    36     HbAbstractViewItem* createItem();
    40 
    37 
    41     void updateChildItems();
    38     void updateChildItems();
    42     void setExpanded(bool expanded);
       
    43     void addAction(HbAction* action);
    39     void addAction(HbAction* action);
    44     void clearActions();
    40     void clearActions();
    45 
    41 
    46 private:
    42 private:
    47     void polish(HbStyleParameters& params);
    43     void polish(HbStyleParameters& params);
    48 
    44 
    49     int type() const;
       
    50 
       
    51 private slots:
    45 private slots:
    52     void currentIndexChanged(const QModelIndex &current,
    46     void currentIndexChanged(const QModelIndex &current,
    53                              const QModelIndex &previous);
    47                              const QModelIndex &previous);
    54 
    48 
       
    49     void setCollapsed();
       
    50 
       
    51     void handleItemStateChange(bool collapsed);
       
    52 
    55 private:
    53 private:
    56     HbTextItem* mText;
    54     HbGroupBox*      mGroupBox;
    57     HbIconItem* mStatusIcon;
       
    58     HbIconItem* mCipheringIcon;
       
    59     HbIconItem* mExpandIcon;
       
    60     HbPushButton* mButton1;
       
    61     HbPushButton* mButton2;
       
    62     QList<HbAction*> mActions;
    55     QList<HbAction*> mActions;
    63 
       
    64     bool mExpanded;
       
    65 };
    56 };
    66 
    57 
    67 #endif // BUBBLEPARTICIPANTLISTITEM_H
    58 #endif // BUBBLEPARTICIPANTLISTITEM_H