equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 #ifndef MSGCONTACTSUTIL_H_ |
19 #ifndef MSGCONTACTSUTIL_H_ |
20 #define MSGCONTACTSUTIL_H_ |
20 #define MSGCONTACTSUTIL_H_ |
21 |
21 |
|
22 #ifdef MSGUI_UNIT_TEST |
|
23 #define MSGUI_UTILS_DLL_EXPORT |
|
24 #else |
22 #ifdef BUILD_MSGUI_UTILS_DLL |
25 #ifdef BUILD_MSGUI_UTILS_DLL |
23 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
26 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
24 #else |
27 #else |
25 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT |
28 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT |
|
29 #endif |
26 #endif |
30 #endif |
27 |
31 |
28 /** |
32 /** |
29 * static utility class to handle contacts related common functionality |
33 * static utility class to handle contacts related common functionality |
30 * for UI modules |
34 * for UI modules |
36 static bool launchVCardViewer(const QString& filepath); |
40 static bool launchVCardViewer(const QString& filepath); |
37 |
41 |
38 private: |
42 private: |
39 static QString copyVCardToTemp(const QString& filepath); |
43 static QString copyVCardToTemp(const QString& filepath); |
40 static void deleteVCardFromTemp(const QString& filepath); |
44 static void deleteVCardFromTemp(const QString& filepath); |
|
45 |
|
46 #ifdef MSGUI_UNIT_TEST |
|
47 /** |
|
48 * Unit Testing |
|
49 */ |
|
50 friend class TestMsgContactsUtil; |
|
51 #endif |
41 }; |
52 }; |
42 |
53 |
43 #endif /* MSGCONTACTSUTIL_H_ */ |
54 #endif /* MSGCONTACTSUTIL_H_ */ |