emailuis/nmhswidget/inc/nmhswidgettitlerow.h
changeset 23 2dc6caa42ec3
parent 18 578830873419
child 30 759dc5235cdb
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    20 
    20 
    21 #include <hbwidget.h>
    21 #include <hbwidget.h>
    22 
    22 
    23 //FORWARD DECLARATIONS:
    23 //FORWARD DECLARATIONS:
    24 class HbLabel;
    24 class HbLabel;
       
    25 class HbPushButton;
    25 
    26 
    26 class NmHsWidgetTitleRow : public HbWidget
    27 class NmHsWidgetTitleRow : public HbWidget
    27 {
    28 {
    28     Q_OBJECT
    29     Q_OBJECT
    29   
    30   
    30 public:
    31 public:
    31     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    32     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    32     ~NmHsWidgetTitleRow();
    33     ~NmHsWidgetTitleRow();
       
    34     bool loadDocML();
       
    35     
       
    36     void setAccountIcon(const QString& accountIconName );
    33     
    37     
    34 private:
    38 private:
    35     void loadDocML();
    39 
    36     void updateData();
    40     void updateData();
    37     
    41     
    38 public slots: 
    42 public slots: 
    39     void updateAccountName(const QString& accountName );
    43     void updateAccountName(const QString& accountName );
    40     void updateUnreadCount(const int& unreadCount );
    44     void updateUnreadCount(const int& unreadCount );
    41 
    45 
       
    46 signals:
       
    47     void expandCollapseButtonPressed();
       
    48     void mailboxLaunchTriggered();
       
    49     
       
    50 protected:
       
    51     void mousePressEvent(QGraphicsSceneMouseEvent *event);
       
    52     
    42 private:
    53 private:
    43     HbLabel *mMailboxIcon;
    54     HbLabel *mMailboxIcon;
    44     HbLabel *mMailboxInfo;
    55     HbLabel *mMailboxInfo;
       
    56     HbLabel *mUnreadCountLabel;
       
    57     HbPushButton *mCollapseExpIconLabel;
    45     QString mAccountName;
    58     QString mAccountName;
    46     int mUnreadCount;
    59     int mUnreadCount;
    47 };
    60 };
    48 
    61 
    49 #endif // NMHSWIDGETTITLEROW_H_
    62 #endif // NMHSWIDGETTITLEROW_H_