--- a/messagingapp/msgui/unifiedviewer/inc/univiewerbodywidget.h Tue Jul 06 14:12:40 2010 +0300
+++ b/messagingapp/msgui/unifiedviewer/inc/univiewerbodywidget.h Wed Aug 18 09:45:25 2010 +0300
@@ -26,6 +26,7 @@
class UniViewerPixmapWidget;
class UniViewerAudioWidget;
class HbTextItem;
+class HbIconItem;
/**
* @class UniViewerBodyWidget
@@ -50,38 +51,6 @@
*/
~UniViewerBodyWidget();
-public slots:
-
- /**
- * Called to insert image content in viewer.
- * @param info Object information.
- */
- void setPixmap(UniMessageInfo *info);
-
- /**
- * Called to insert audio content in viewer.
- * @param info Object information.
- */
- void setAudio(UniMessageInfo *info);
-
- /**
- * Called to insert video content in viewer.
- * @param info Object information.
- */
- void setVideo(UniMessageInfo *info);
-
- /**
- * Called to insert text content in viewer.
- * @param text Body text to be set.
- */
- void setText(QString text);
-
- /**
- * Sets the slide counter.
- * @param slideCounter Slide counter string to be set.
- */
- void setSlideCounter(QString &slideCounter);
-
/**
* Specify if this slide has text
* @param bool
@@ -118,6 +87,21 @@
*/
void clearContent();
+signals:
+
+ /**
+ * this signal is emitted when sendMessage is emitted from UniViewerTextItem.
+ */
+ void sendMessage(const QString& phoneNumber);
+
+public slots:
+
+ /**
+ * Called to insert text content in viewer.
+ * @param text Body text to be set.
+ */
+ void setText(QString text);
+
protected:
/**
@@ -126,13 +110,49 @@
*/
QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
-signals:
+private:
+
+ /**
+ * Called to insert image content in viewer.
+ * @param info Object information.
+ */
+ void setPixmap(UniMessageInfo *info);
+
+ /**
+ * Called to insert audio content in viewer.
+ * @param info Object information.
+ */
+ void setAudio(UniMessageInfo *info);
+
/**
- * this signal is emitted when sendMessage is emitted from UniViewerTextItem.
+ * Called to insert video content in viewer.
+ * @param info Object information.
+ */
+ void setVideo(UniMessageInfo *info);
+
+ /**
+ * Sets the slide counter.
+ * @param slideCounter Slide counter string to be set.
*/
- void sendMessage(const QString& phoneNumber);
+ void setSlideCounter(QString &slideCounter);
+
+ /**
+ * Sets overlay icon on top of pixmap widget.
+ * @param iconName Overlay icon name to be set.
+ */
+ void setOverlayIcon(const QString &iconName);
+
+private slots:
+
+ /**
+ * Handles the cases related to video thumbnail generation success/failure.
+ * @param result true if thumbnail was found else false.
+ * @param info UniMessageInfo of the media object.
+ */
+ void onThumbnailFound(bool result, UniMessageInfo *info);
private:
+
/**
* Info if slide has text.
* true if slide has text else false.
@@ -164,6 +184,11 @@
* Media widget for embedded audio content.
*/
UniViewerAudioWidget *mAudioItem;
+
+ /**
+ * Overlay icon on top of pixmap widget.
+ */
+ HbIconItem *mOverlayItem;
};
#endif //UNIVIEWER_BODY_WIDGET_H