diff -r 84197e66a4bd -r 35b64624a9e7 messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h --- a/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h Fri Jun 11 13:35:48 2010 +0300 +++ b/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h Wed Jun 23 18:09:17 2010 +0300 @@ -22,6 +22,9 @@ // FORWARD DECLARATIONS class UniViewerUtils; +class UniMessageInfo; +class ThumbnailManager; + /** * This widget displays the pixmap content in viewer. @@ -44,10 +47,9 @@ /** * Sets the pixmap content to be displayed. - * @param mimeType Mime type of the pixmap. - * @param pixmapPath File path of the pixmap. + * @param info Object information. */ - void populate(const QString &mimeType, const QString &pixmapPath); + void populate(UniMessageInfo *info); signals: @@ -83,16 +85,26 @@ * */ void handleSave(); - + /** * Slot to regrab gesture after some delay (300 ms) to avoid multiple gesture * events back to back. */ void regrabGesture(); + /** + * Slot hit when the thumbnail is ready. + */ + void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); + private: /** + * Initialization function. + */ + void init(); + + /** * Handles short tap event. */ void handleShortTap(); @@ -112,6 +124,12 @@ UniViewerUtils *mViewerUtils; /** + * ThumbnailManager + * Own. + */ + ThumbnailManager *mThumbnailManager; + + /** * Mime Type of pixmap. */ QString mMimeType;