emailuis/nmhswidget/inc/nmhswidgettitlerow.h
changeset 62 a8c646b56683
parent 49 00c7ae862740
child 76 38bf5461e270
equal deleted inserted replaced
57:ae34e1715e21 62:a8c646b56683
    32   
    32   
    33 public:
    33 public:
    34     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    34     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
    35     ~NmHsWidgetTitleRow();
    35     ~NmHsWidgetTitleRow();
    36     QPainterPath shape() const;
    36     QPainterPath shape() const;
       
    37     qreal containerHeight();
    37     bool setupUI(HbDocumentLoader &loader); 
    38     bool setupUI(HbDocumentLoader &loader); 
    38     void setAccountIcon(const QString& accountIconName );
    39     void setAccountIcon(const QString& accountIconName );
    39     void setExpandCollapseIcon(const bool& expand);
    40     void setExpandCollapseIcon(const bool& expand);
       
    41     void gestureEvent(QGestureEvent *event);
    40     
    42     
    41 private:
    43 private:
    42     bool loadDocML(HbDocumentLoader &loader);
    44     bool loadDocML(HbDocumentLoader &loader);
    43     bool setupGraphics();
    45     bool setupGraphics();
    44     void updateData();
    46     void updateData();
    52 signals:
    54 signals:
    53     void expandCollapseButtonPressed();
    55     void expandCollapseButtonPressed();
    54     void mailboxLaunchTriggered();
    56     void mailboxLaunchTriggered();
    55     
    57     
    56 protected:
    58 protected:
    57     void mousePressEvent(QGraphicsSceneMouseEvent *event);
       
    58     void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
       
    59     bool event( QEvent *event );
    59     bool event( QEvent *event );
    60     
    60     
    61 private:
    61 private:
       
    62     HbWidget *mContainer;
    62     HbLabel *mMailboxIcon;
    63     HbLabel *mMailboxIcon;
    63     HbLabel *mMailboxInfo;
    64     HbLabel *mMailboxInfo;
    64     HbLabel *mUnreadCountLabel;
    65     HbLabel *mUnreadCountLabel;
    65     HbPushButton *mCollapseExpIconLabel;
    66     HbPushButton *mCollapseExpIconLabel;
    66     QString mAccountName;
    67     QString mAccountName;