phoneuis/bubblemanager2/bubblecore/src/bubbleparticipantlistitem.h
changeset 21 92ab7f8d0eab
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 <hblistviewitem.h>
       
    22 
       
    23 class QGraphicsItem;
       
    24 class HbPushButton;
       
    25 class BubbleButtonStyle;
       
    26 class HbAction;
       
    27 
       
    28 class BubbleParticipantListItem : public HbListViewItem
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     BubbleParticipantListItem(
       
    34         const QString& stylePluginName,
       
    35         BubbleButtonStyle& buttonStyle,
       
    36         QGraphicsItem *parent = 0);
       
    37 
       
    38     ~BubbleParticipantListItem();
       
    39 
       
    40     HbAbstractViewItem* createItem();
       
    41 
       
    42     void updateChildItems();
       
    43     void receivedFocus();
       
    44     void lostFocus();
       
    45     void setExpanded(bool expanded);
       
    46     void addAction(HbAction* action);
       
    47     void clearActions();
       
    48 
       
    49 signals:
       
    50     void selectionChanged(int row);
       
    51 
       
    52 private:
       
    53     void polish(HbStyleParameters& params);
       
    54 
       
    55 private:
       
    56     QString mStylePluginName;
       
    57     int mStylePluginBaseId;
       
    58     BubbleButtonStyle& mButtonStyle;
       
    59     QGraphicsItem* mBackground;
       
    60     QGraphicsItem* mText;
       
    61     QGraphicsItem* mIcon;
       
    62     HbPushButton*  mButton1;
       
    63     HbPushButton*  mButton2;
       
    64     QList<HbAction*> mActions;
       
    65 
       
    66     bool mExpanded;
       
    67 };
       
    68 
       
    69 #endif // BUBBLEPARTICIPANTLISTITEM_H