--- a/emailuis/nmailui/inc/nmviewerview.h Thu Jun 24 14:32:18 2010 +0300
+++ b/emailuis/nmailui/inc/nmviewerview.h Tue Jun 29 17:12:28 2010 +0300
@@ -24,7 +24,6 @@
#include "nmactionobserver.h"
#include "nmattachmentfetchobserver.h"
-class QGraphicsLinearLayout;
class QWebPage;
class HbWidget;
@@ -45,6 +44,7 @@
class NmAttachmentListWidget;
class NmAttachmentManager;
class HbMessageBox;
+class NmMessagePart;
class NmViewerView : public NmBaseView, public NmActionObserver, public NmAttachmentFetchObserver
{
@@ -55,8 +55,8 @@
NmUiStartParam* startParam,
NmUiEngine &uiEngine,
HbMainWindow *mainWindow,
- NmAttachmentManager &attaManager,
- bool toolbar = false,
+ NmAttachmentManager &attaManager,
+ bool toolbar = false,
QGraphicsItem *parent = NULL);
~NmViewerView();
void reloadViewContents(NmUiStartParam* startParam);
@@ -99,6 +99,8 @@
void loadMessage();
void loadViewLayout();
QString formatMessage();
+ QString formatHtmlMessage(NmMessagePart *html);
+ QString formatPlainTextMessage(NmMessagePart *plain);
bool eventOnTopOfHeaderArea(QGraphicsSceneMouseEvent *event);
void changeMessageReadStatus(bool read);
void setMailboxName();
@@ -123,9 +125,8 @@
QPointF mLatestScrollPos;
bool mDisplayingPlainText;
QObjectList mWidgetList;
- NmUiDocumentLoader *mDocumentLoader;
- HbWidget *mScrollAreaContents;
- HbWidget *mViewerHeaderContainer;
+ NmUiDocumentLoader *mDocumentLoader; // Owned
+ HbWidget *mScrollAreaContents; // Not owned
QSize mScreenSize;
HbProgressDialog *mWaitDialog; // Owned
bool webFrameloadingCompleted;