messagingapp/msgui/msguiutils/inc/msgcontactsutil.h
changeset 72 6f657153cbc5
parent 34 84197e66a4bd
child 73 ecf6a73a9186
--- a/messagingapp/msgui/msguiutils/inc/msgcontactsutil.h	Fri Sep 17 08:28:39 2010 +0300
+++ b/messagingapp/msgui/msguiutils/inc/msgcontactsutil.h	Mon Oct 04 00:13:15 2010 +0300
@@ -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_ */