equal
deleted
inserted
replaced
20 |
20 |
21 #include <msvstd.h> |
21 #include <msvstd.h> |
22 #include <QObject> |
22 #include <QObject> |
23 #include "convergedmessage.h" |
23 #include "convergedmessage.h" |
24 |
24 |
|
25 #ifdef MSGUI_UNIT_TEST |
|
26 #define MSGUI_UTILS_DLL_EXPORT |
|
27 #else |
25 #ifdef BUILD_MSGUI_UTILS_DLL |
28 #ifdef BUILD_MSGUI_UTILS_DLL |
26 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
29 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
27 #else |
30 #else |
28 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT |
31 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT |
|
32 #endif |
29 #endif |
33 #endif |
30 |
34 |
31 |
35 |
32 class UniEditorPluginLoader; |
36 class UniEditorPluginLoader; |
33 class UniEditorGenUtils; |
37 class UniEditorGenUtils; |
65 * @return KErrNone if send is successful, |
69 * @return KErrNone if send is successful, |
66 * KErrNotFound if settings are not available, |
70 * KErrNotFound if settings are not available, |
67 * KErrGeneral for other cases |
71 * KErrGeneral for other cases |
68 */ |
72 */ |
69 int send(ConvergedMessage& msg); |
73 int send(ConvergedMessage& msg); |
|
74 |
|
75 /** |
|
76 * Checks for valid phone number and email address. |
|
77 * @param address Address to be checked. |
|
78 * @return true if valid address else false. |
|
79 */ |
|
80 bool isValidAddress(const QString &address); |
70 |
81 |
71 private: |
82 private: |
72 /** |
83 /** |
73 * Check if email over sms is supported and change msgtype appropriately. |
84 * Check if email over sms is supported and change msgtype appropriately. |
74 * @param msg Message to be sent |
85 * @param msg Message to be sent |
131 /** |
142 /** |
132 * General utils for send-time checks |
143 * General utils for send-time checks |
133 * Own |
144 * Own |
134 */ |
145 */ |
135 UniEditorGenUtils* mUniEditorGenUtils; |
146 UniEditorGenUtils* mUniEditorGenUtils; |
|
147 |
|
148 #ifdef MSGUI_UNIT_TEST |
|
149 /** |
|
150 * Unit Testing |
|
151 */ |
|
152 friend class TestMsgSendUtil; |
|
153 #endif |
136 }; |
154 }; |
137 |
155 |
138 #endif // MSG_SEND_UTIL_H |
156 #endif // MSG_SEND_UTIL_H |
139 |
157 |
140 // EOF |
158 // EOF |