messagingapp/msgui/conversationview/inc/msgconversationbaseview.h
changeset 70 a15d9966050f
parent 44 36f374c67aa8
--- a/messagingapp/msgui/conversationview/inc/msgconversationbaseview.h	Thu Sep 02 20:23:03 2010 +0300
+++ b/messagingapp/msgui/conversationview/inc/msgconversationbaseview.h	Fri Sep 17 08:28:39 2010 +0300
@@ -18,10 +18,14 @@
 #ifndef MSG_CONVERSATION_VIEW_INTERFACE_H
 #define MSG_CONVERSATION_VIEW_INTERFACE_H
 
-#ifdef  CONVERSATIONVIEW_DLL
-#define CONVERSATION_VIEW_EXPORT Q_DECL_EXPORT
+#ifdef MSGUI_UNIT_TEST
+ #define CONVERSATION_VIEW_EXPORT
 #else
-#define CONVERSATION_VIEW_EXPORT Q_DECL_IMPORT
+ #ifdef  CONVERSATIONVIEW_DLL
+  #define CONVERSATION_VIEW_EXPORT Q_DECL_EXPORT
+ #else
+  #define CONVERSATION_VIEW_EXPORT Q_DECL_IMPORT
+ #endif
 #endif
 
 #include <xqsettingskey.h>
@@ -80,6 +84,14 @@
      */
     qint64 conversationId();
 
+    /**
+     * Event handler
+     * @param key Key code
+     * @return true if key event handled else false.
+     * @see MsgBaseView
+     */
+    bool handleKeyEvent(int key);
+
 public slots:
     /**
      * Close the conversation view