messagingapp/msgui/msguiutils/inc/msgmediautil.h
changeset 72 6f657153cbc5
parent 25 84d9eb65b26f
child 73 ecf6a73a9186
--- a/messagingapp/msgui/msguiutils/inc/msgmediautil.h	Fri Sep 17 08:28:39 2010 +0300
+++ b/messagingapp/msgui/msguiutils/inc/msgmediautil.h	Mon Oct 04 00:13:15 2010 +0300
@@ -18,10 +18,14 @@
 #ifndef MSG_MEDIA_UTIL_H
 #define MSG_MEDIA_UTIL_H
 
+#ifdef MSGUI_UNIT_TEST
+ #define MSGUI_UTILS_DLL_EXPORT
+#else
 #ifdef BUILD_MSGUI_UTILS_DLL
-#define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
+ #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
 #else
-#define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
+ #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
+#endif
 #endif
 
 /**
@@ -57,6 +61,13 @@
      * @return media duration in miliseconds
      */
     TInt mediaDurationL(const TDesC& mediaFile);
+    
+#ifdef MSGUI_UNIT_TEST
+    /**
+     * Unit Testing
+     */
+    friend class TestMsgMediaUtil;
+#endif
     };
     
 #endif // MSG_MEDIA_UTIL_H