messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h
changeset 41 25fe1fe642e3
parent 37 518b245aa84c
child 51 3507212d340e
--- a/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h	Tue Jul 06 22:50:16 2010 +0530
+++ b/messagingapp/msgui/unifiedviewer/inc/univiewerpixmapwidget.h	Fri Jul 09 14:46:10 2010 +0530
@@ -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 when the thumbnail returned by Thumbnail manager is set
+     * to pixmap widget.
+     * @param iconName Overlay icon name to be set.
+     */
+    void setOverlayIcon(const QString& iconName);
+
 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,6 +121,12 @@
      */
     void handleLongTap(const QPointF &position);
 
+    /**
+     * Calculates the thumbnail size.
+     * @return Thumbnail size
+     */
+    QSize getThumbnailSize();
+
 private:
 
     /**
@@ -127,7 +139,7 @@
      * ThumbnailManager
      * Own.
      */
-   ThumbnailManager *mThumbnailManager;
+    ThumbnailManager *mThumbnailManager;
 
     /**
      * Mime Type of pixmap.