emailuis/nmhswidget/inc/nmhswidgettitlerow.h
changeset 47 f83bd4ae1fe3
parent 43 99bcbff212ad
child 49 00c7ae862740
equal deleted inserted replaced
45:780f926bc26c 47:f83bd4ae1fe3
    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 class HbPushButton;
       
    26 class HbFrameItem;
    26 
    27 
    27 class NmHsWidgetTitleRow : public HbWidget
    28 class NmHsWidgetTitleRow : public HbWidget
    28 {
    29 {
    29     Q_OBJECT
    30     Q_OBJECT
    30   
    31   
    31 public:
    32 public:
    32     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    33     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    33     ~NmHsWidgetTitleRow();
    34     ~NmHsWidgetTitleRow();
    34     bool loadDocML();
    35     QPainterPath shape() const;
    35     
    36     bool setupUI(); 
    36     void setAccountIcon(const QString& accountIconName );
    37     void setAccountIcon(const QString& accountIconName );
    37     void setExpandCollapseIcon(const bool& expand);
    38     void setExpandCollapseIcon(const bool& expand);
    38     void setFontsColor( bool pressed );
       
    39     
    39     
    40 private:
    40 private:
    41 
    41     bool loadDocML();
       
    42     bool setupGraphics();
    42     void updateData();
    43     void updateData();
       
    44     void setHighlighedFontsColor( bool pressed );
       
    45     void showHighlight( bool pressed );
    43     
    46     
    44 public slots: 
    47 public slots: 
    45     void updateAccountName(const QString& accountName );
    48     void updateAccountName(const QString& accountName );
    46     void updateUnreadCount(const int& unreadCount );
    49     void updateUnreadCount(const int& unreadCount );
    47 
    50 
    59     HbLabel *mMailboxInfo;
    62     HbLabel *mMailboxInfo;
    60     HbLabel *mUnreadCountLabel;
    63     HbLabel *mUnreadCountLabel;
    61     HbPushButton *mCollapseExpIconLabel;
    64     HbPushButton *mCollapseExpIconLabel;
    62     QString mAccountName;
    65     QString mAccountName;
    63     int mUnreadCount;
    66     int mUnreadCount;
       
    67     HbFrameItem* mBackgroundLayoutItem;
    64 };
    68 };
    65 
    69 
    66 #endif // NMHSWIDGETTITLEROW_H_
    70 #endif // NMHSWIDGETTITLEROW_H_