diff -r 9ba4404ef423 -r 759dc5235cdb emailuis/nmailui/inc/nmviewerwebview.h --- a/emailuis/nmailui/inc/nmviewerwebview.h Thu May 27 12:43:55 2010 +0300 +++ b/emailuis/nmailui/inc/nmviewerwebview.h Fri Jun 11 13:27:14 2010 +0300 @@ -20,25 +20,39 @@ #include +#include "nmcommon.h" + class NmViewerView; class NmMessage; class QMouseEvent; +class NmMailViewerWkContentItem +{ +public: + NmMailViewerWkContentItem() + : mData(0), mPartId(0), mIsFetched(false) {} + NmMailViewerWkContentItem(QVariant data, NmId partId, bool isFetched) + : mData(data), mPartId(partId), mIsFetched(isFetched) {} + QVariant mData; + NmId mPartId; + bool mIsFetched; +}; + class NmMailViewerWK : public QGraphicsWebView { Q_OBJECT public: NmMailViewerWK(); ~NmMailViewerWK(); - virtual QVariant loadResource ( int type, const QUrl & name ); + virtual QVariant loadResource (int type, const QUrl &name, NmId &partId, bool &isFetched); void setParentView(NmViewerView *parentView); - void addContent(QString key, QVariant val); + void addContent(QString key, QVariant val, NmId partId, bool isFetched); void sendMousePressEvent(QGraphicsSceneMouseEvent *event); void sendMouseReleaseEvent(QGraphicsSceneMouseEvent *event); private: - QMap mContent; + QMap mContent; NmViewerView *mParentView; // Not owned };