messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h
changeset 52 12db4185673b
parent 43 35b64624a9e7
child 70 a15d9966050f
--- a/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h	Tue Jul 06 14:12:40 2010 +0300
+++ b/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h	Wed Aug 18 09:45:25 2010 +0300
@@ -25,7 +25,6 @@
 class UniMessageInfo;
 class ThumbnailManager;
 
-
 /**
  * This widget displays the pixmap content in viewer.
  */
@@ -65,6 +64,13 @@
      */
     void longTap(const QPointF &position);
 
+    /**
+     * Signal emitted indicating if thumbnail was found or not
+     * @param result true if thumbnail was found else false.
+     * @param info UniMessageInfo of the media object.
+     */
+    void thumbnailFound(bool result, UniMessageInfo *info);
+
 protected:
 
     /**
@@ -77,12 +83,12 @@
 private slots:
 
     /**
-     *
+     * Handles opening of media.
      */
     void handleOpen();
 
     /**
-     *
+     * Handles saving of media.
      */
     void handleSave();
 
@@ -95,7 +101,7 @@
     /**
      * Slot hit when the thumbnail is ready.
      */
-   void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error);
+    void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error);
 
 private:
 
@@ -115,9 +121,21 @@
      */
     void handleLongTap(const QPointF &position);
 
+    /**
+     * Calculates the thumbnail size.
+     * @return Thumbnail size
+     */
+    QSize getThumbnailSize();
+
 private:
 
     /**
+     * UniMessageInfo object.
+     * Own.
+     */
+    UniMessageInfo *mInfo;
+
+    /**
      * UniViewerUtils object.
      * Own
      */
@@ -127,7 +145,7 @@
      * ThumbnailManager
      * Own.
      */
-   ThumbnailManager *mThumbnailManager;
+    ThumbnailManager *mThumbnailManager;
 
     /**
      * Mime Type of pixmap.