messagingapp/msgui/msguiutils/inc/msgcontactsutil.h
changeset 67 fc91263aee62
parent 37 518b245aa84c
child 73 ecf6a73a9186
--- a/messagingapp/msgui/msguiutils/inc/msgcontactsutil.h	Tue Sep 14 22:54:56 2010 +0530
+++ b/messagingapp/msgui/msguiutils/inc/msgcontactsutil.h	Fri Sep 17 20:01:45 2010 +0530
@@ -19,10 +19,14 @@
 #ifndef MSGCONTACTSUTIL_H_
 #define MSGCONTACTSUTIL_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
 
 /**
@@ -38,6 +42,13 @@
 private:
     static QString copyVCardToTemp(const QString& filepath);
     static void deleteVCardFromTemp(const QString& filepath);
+    
+#ifdef MSGUI_UNIT_TEST
+    /**
+     * Unit Testing
+     */
+    friend class TestMsgContactsUtil;
+#endif
 };
 
 #endif /* MSGCONTACTSUTIL_H_ */