messagingapp/msgui/conversationview/inc/msgconversationview.h
changeset 70 a15d9966050f
parent 52 12db4185673b
--- a/messagingapp/msgui/conversationview/inc/msgconversationview.h	Thu Sep 02 20:23:03 2010 +0300
+++ b/messagingapp/msgui/conversationview/inc/msgconversationview.h	Fri Sep 17 08:28:39 2010 +0300
@@ -33,6 +33,8 @@
 class HbStaticVkbHost;
 class QGraphicsLinearLayout;
 class HbAction;
+class MsgAudioFetcherDialog;
+
 //Defines
 #define INVALID_MSG_ID -1
 
@@ -71,6 +73,14 @@
      */
     int saveContentToDrafts();
 
+    /**
+     * Event handler
+     * @param key Key code
+     * @return true if key event handled else false.
+     * @see MsgBaseView
+     */
+    bool handleKeyEvent(int key);
+
 private slots:
 
     /**
@@ -337,6 +347,12 @@
      */
     bool isSharedMessage(qint32 messageId);
     
+    /** 
+     * This slot is called after sound clip is 
+     * selected from audio fetcher dialog    
+     */
+    void onAudioSelected(QString& filePath);
+    
 signals:
     /**
      * Signal emitted to inform close the conversation view.
@@ -409,6 +425,11 @@
      */
     void showContextMenu(HbAbstractViewItem* viewItem,const QPointF& point, int placement);
 
+    /**
+     * Launches Dialer Service 
+     */
+    void call(const QString& address);
+
 private:
 
     /**
@@ -449,6 +470,12 @@
     HbStaticVkbHost* mVkbHost;
     
     /**
+     * Instance of Audio Fetcher Dialog
+     * Need to show when attachment audio selected
+     */
+    MsgAudioFetcherDialog* mDialog;
+    
+    /**
      * variable holding the visible model index
      */
     QModelIndex mVisibleIndex;
@@ -463,6 +490,13 @@
      * Flag is set when 
      */
     bool mViewReady;
+
+#ifdef MSGUI_UNIT_TEST
+    /**
+     * Unit Testing
+     */
+    friend class TestMsgConversationView;
+#endif
 };
 
 #endif // MSG_CONVERSATION_VIEW_H