equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef UNIFIED_VIEWER_H |
18 #ifndef UNIFIED_VIEWER_H |
19 #define UNIFIED_VIEWER_H |
19 #define UNIFIED_VIEWER_H |
20 |
20 |
21 #ifdef BUILD_UNI_VIEWER_DLL |
21 #ifdef MSGUI_UNIT_TEST |
22 #define UNI_VIEWER_DLL Q_DECL_EXPORT |
22 #define UNI_VIEWER_DLL |
23 #else |
23 #else |
24 #define UNI_VIEWER_DLL Q_DECL_IMPORT |
24 #ifdef BUILD_UNI_VIEWER_DLL |
|
25 #define UNI_VIEWER_DLL Q_DECL_EXPORT |
|
26 #else |
|
27 #define UNI_VIEWER_DLL Q_DECL_IMPORT |
|
28 #endif |
25 #endif |
29 #endif |
26 |
30 |
27 #include <sqldb.h> |
|
28 #include "msgbaseview.h" |
31 #include "msgbaseview.h" |
29 |
|
30 #include "convergedmessage.h" |
32 #include "convergedmessage.h" |
31 |
33 |
32 class UniViewerFeeder; |
34 class UniViewerFeeder; |
33 class ConvergedMessage; |
35 class ConvergedMessage; |
34 class HbScrollArea; |
36 class HbScrollArea; |
56 ~UnifiedViewer(); |
58 ~UnifiedViewer(); |
57 |
59 |
58 /** |
60 /** |
59 * Populates the content on the widget |
61 * Populates the content on the widget |
60 */ |
62 */ |
61 void populateContent(const qint32 messageId, bool update, int msgCount, qint64 conversationId=-1); |
63 void populateContent(const qint32 messageId, bool update, int msgCount, qint64 conversationId = -1); |
62 |
64 |
63 /** |
65 /** |
64 * Event handler |
66 * Event handler |
65 * @param key Key code |
67 * @param key Key code |
66 * @return true if key event handled else false. |
68 * @return true if key event handled else false. |
156 /** |
158 /** |
157 * UniContentsWidget object |
159 * UniContentsWidget object |
158 * Owned |
160 * Owned |
159 */ |
161 */ |
160 UniContentsWidget* mContentsWidget; |
162 UniContentsWidget* mContentsWidget; |
161 |
163 |
162 /** |
164 /** |
163 * Conversation ID |
165 * Conversation ID |
164 */ |
166 */ |
165 qint64 mConversationID; |
167 qint64 mConversationID; |
166 |
168 |
171 |
173 |
172 /** |
174 /** |
173 * Message id |
175 * Message id |
174 */ |
176 */ |
175 qint32 mMessageId; |
177 qint32 mMessageId; |
176 |
178 |
177 /** |
179 /** |
178 * Message count |
180 * Message count |
179 */ |
181 */ |
180 int mMsgCount; |
182 int mMsgCount; |
181 |
183 |
|
184 #ifdef MSGUI_UNIT_TEST |
|
185 /** |
|
186 * Unit Testing |
|
187 */ |
|
188 friend class TestUnifiedViewer; |
|
189 #endif |
182 }; |
190 }; |
183 |
191 |
184 #endif |
192 #endif |
185 // EOF |
193 // EOF |