59 QGraphicsItem *parent = NULL); |
59 QGraphicsItem *parent = NULL); |
60 ~NmViewerView(); |
60 ~NmViewerView(); |
61 void reloadViewContents(NmUiStartParam* startParam); |
61 void reloadViewContents(NmUiStartParam* startParam); |
62 NmUiViewId nmailViewId() const; |
62 NmUiViewId nmailViewId() const; |
63 NmMailViewerWK* webView(); |
63 NmMailViewerWK* webView(); |
|
64 NmMessage* message(); |
64 void viewReady(); |
65 void viewReady(); |
65 void aboutToExitView(); |
66 void aboutToExitView(); |
66 |
67 |
67 signals: |
68 signals: |
68 void progressValueChanged(int index, int value); |
69 void progressValueChanged(int index, int value); |
75 void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
76 void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
76 void handleMousePressEvent(QGraphicsSceneMouseEvent *event); |
77 void handleMousePressEvent(QGraphicsSceneMouseEvent *event); |
77 void fetchMessage(); |
78 void fetchMessage(); |
78 void openAttachment(int index); |
79 void openAttachment(int index); |
79 void createOptionsMenu(); |
80 void createOptionsMenu(); |
80 void deleteButton(HbAction* result); |
|
81 |
81 |
82 private slots: |
82 private slots: |
83 void setMessageData(); |
83 void setMessageData(); |
84 void messageFetched(int result); |
84 void messageFetched(int result); |
85 void waitNoteCancelled(); |
85 void waitNoteCancelled(); |
94 public: // From NmAttachmentFetchObserver |
94 public: // From NmAttachmentFetchObserver |
95 void progressChanged(int value); |
95 void progressChanged(int value); |
96 void fetchCompleted(int result); |
96 void fetchCompleted(int result); |
97 |
97 |
98 private: |
98 private: |
|
99 void deleteMessage(); |
99 void loadMessage(); |
100 void loadMessage(); |
100 void loadViewLayout(); |
101 void loadViewLayout(); |
101 QString formatMessage(); |
102 QString formatMessage(); |
102 bool eventOnTopOfHeaderArea(QGraphicsSceneMouseEvent *event); |
103 bool eventOnTopOfHeaderArea(QGraphicsSceneMouseEvent *event); |
103 void changeMessageReadStatus(bool read); |
104 void changeMessageReadStatus(bool read); |
104 void setMailboxName(); |
105 void setMailboxName(); |
105 void createToolBar(); |
106 void createToolBar(); |
106 void setAttachmentList(); |
107 void setAttachmentList(); |
|
108 void createAndShowWaitDialog(); |
|
109 void setWebViewWidth(int width); |
|
110 void setWebViewHeighth(int height); |
|
111 void handleMouseEvent(QGraphicsSceneMouseEvent *event, bool pressed); |
107 |
112 |
108 private: |
113 private: |
109 NmApplication &mApplication; |
114 NmApplication &mApplication; |
110 NmUiEngine &mUiEngine; |
115 NmUiEngine &mUiEngine; |
111 HbMainWindow *mMainWindow; // Not owned |
116 HbMainWindow *mMainWindow; // Not owned |