messagingapp/msgui/unifiedviewer/inc/univiewerbodywidget.h
changeset 34 84197e66a4bd
parent 31 ebfee66fde93
child 43 35b64624a9e7
--- a/messagingapp/msgui/unifiedviewer/inc/univiewerbodywidget.h	Fri Jun 04 10:25:39 2010 +0100
+++ b/messagingapp/msgui/unifiedviewer/inc/univiewerbodywidget.h	Fri Jun 11 13:35:48 2010 +0300
@@ -24,13 +24,12 @@
 
 class UniViewerTextItem;
 class UniViewerPixmapWidget;
+class UniViewerAudioWidget;
 class HbTextItem;
-class HbPushButton;
-//class HbGestureSceneFilter;
-class QSignalMapper;
 
 /**
- * This widget displays the body of the viewer
+ * @class UniViewerBodyWidget
+ * @brief This widget displays the body of the viewer.
  */
 class UniViewerBodyWidget: public HbWidget
 {
@@ -57,25 +56,25 @@
      * Called to insert image content in viewer.
      * @param medialist list of absolute paths of media.
      */
-    void setPixmap(QString pixmapFile);
+    void setPixmap(const QString &mimeType, const QString &pixmapFile);
 
     /**
      * Called to insert audio content in viewer.
      * @param medialist list of absolute paths of media.
      */
-    void setAudio(QString audiofile);
+    void setAudio(const QString &mimeType, const QString &audiofile);
 
     /**
      * Called to insert video content in viewer.
      * @param medialist list of absolute paths of media.
      */
-    void setVideo(QString videofile);
+    void setVideo(const QString &mimeType, const QString &videofile);
 
     /**
      * Called to insert text content in viewer.
      * @param text Body text to be set.
      */
-    void setTextContent(QString text);
+    void setText(QString text);
 
     /**
      * Sets the slide counter.
@@ -127,38 +126,6 @@
      */
     QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
 
-private slots:
-
-    /**
-     * called on long press on the media objects
-     */
-    void longPressed(QPointF position);
-
-    /**
-     * called from the media object's item specific menu
-     */
-    void openMedia();
-
-    /**
-     * Open a specified media file
-     */
-    void openMedia(const QString& fileName);
-
-    /**
-     * called from the media object's item specific menu
-     */
-    void saveMedia();
-
-    /**
-     * Service launch complete.
-     */
-    void handleOk(const QVariant& result);
-
-    /**
-     * Service launch errors.
-     */
-    void handleError(int errorCode, const QString& errorMessage);
-
 signals:
     /**
      * this signal is emitted when sendMessage is emitted from UniViewerTextItem.
@@ -196,17 +163,7 @@
     /**
      * Media widget for embedded audio content.
      */
-    HbPushButton *mAudioItem;
-
-    /**
-     * To setup longpress gesture on media objects
-     */
-   // HbGestureSceneFilter* gestureFilter;
-
-    /**
-     * File mapper for opening media
-     */
-    QSignalMapper* mSignalMapper;
+    UniViewerAudioWidget *mAudioItem;
 };
 
 #endif //UNIVIEWER_BODY_WIDGET_H