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