13 * |
13 * |
14 * Description:uni editor view class. |
14 * Description:uni editor view class. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef UNIFIED_EDITOR_VIEW_H |
18 #ifndef MSG_UNIFIED_EDITOR_VIEW_H |
19 #define UNIFIED_EDITOR_VIEW_H |
19 #define MSG_UNIFIED_EDITOR_VIEW_H |
20 |
20 |
21 #ifdef UNIFIEDEDITOR_DLL |
21 #ifdef UNIFIEDEDITOR_DLL |
22 #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT |
22 #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT |
23 #else |
23 #else |
24 #define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT |
24 #define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT |
33 class HbGroupBox; |
33 class HbGroupBox; |
34 class QGraphicsLinearLayout; |
34 class QGraphicsLinearLayout; |
35 class MsgUnifiedEditorSubject; |
35 class MsgUnifiedEditorSubject; |
36 class MsgUnifiedEditorAddress; |
36 class MsgUnifiedEditorAddress; |
37 class MsgUnifiedEditorBody; |
37 class MsgUnifiedEditorBody; |
38 class MsgMonitor; |
38 class MsgUnifiedEditorMonitor; |
39 class MsgAttachmentContainer; |
39 class MsgAttachmentContainer; |
40 class UniEditorPluginLoader; |
40 class UniEditorPluginLoader; |
41 class HbListWidgetItem; |
41 class HbListWidgetItem; |
42 class HbAbstractVkbHost; |
42 class HbAbstractVkbHost; |
43 class MsgUnifiedEditorBaseWidget; |
43 class MsgUnifiedEditorBaseWidget; |
103 */ |
103 */ |
104 void packMessage(ConvergedMessage &msg, bool isSave=false); |
104 void packMessage(ConvergedMessage &msg, bool isSave=false); |
105 |
105 |
106 /** |
106 /** |
107 * Populate editor with prepopulated msg content |
107 * Populate editor with prepopulated msg content |
|
108 * @param messageDetails message details |
|
109 * @param draftMessage boolean for specifying draft message |
108 */ |
110 */ |
109 void populateContentIntoEditor( |
111 void populateContentIntoEditor( |
110 const ConvergedMessage& messageDetails); |
112 const ConvergedMessage& messageDetails, bool draftMessage = false); |
111 |
113 |
112 /** |
114 /** |
113 * Populate the editor with the forwarded message's content |
115 * Populate the editor with the forwarded message's content |
114 */ |
116 */ |
115 void forwardMessage(ConvergedMessageId& messageId, |
117 void forwardMessage(ConvergedMessageId& messageId, |
315 /** |
317 /** |
316 * This slot is called when define mms settings dialog is launched. |
318 * This slot is called when define mms settings dialog is launched. |
317 * @param action selected action (yes or no). |
319 * @param action selected action (yes or no). |
318 */ |
320 */ |
319 void onDialogMmsSettings(HbAction* action); |
321 void onDialogMmsSettings(HbAction* action); |
|
322 |
|
323 /** |
|
324 * Enable/Disable send tool button. |
|
325 * @param true/false to enable/disable. |
|
326 */ |
|
327 void enableSendButton(bool enable); |
320 |
328 |
321 private: |
329 private: |
322 HbAction* mSubjectAction; |
330 HbAction* mSubjectAction; |
323 HbAction* mCcBccAction; |
331 HbAction* mCcBccAction; |
|
332 HbAction* mSendAction; |
324 QGraphicsLinearLayout* mMainLayout; |
333 QGraphicsLinearLayout* mMainLayout; |
325 MsgUnifiedEditorSubject* mSubjectField; |
334 MsgUnifiedEditorSubject* mSubjectField; |
326 MsgUnifiedEditorAddress* mToField; |
335 MsgUnifiedEditorAddress* mToField; |
327 MsgUnifiedEditorAddress* mCcField; |
336 MsgUnifiedEditorAddress* mCcField; |
328 MsgUnifiedEditorAddress* mBccField; |
337 MsgUnifiedEditorAddress* mBccField; |
329 MsgUnifiedEditorBody* mBody; |
338 MsgUnifiedEditorBody* mBody; |
330 |
339 |
331 HbWidget* mContentWidget; |
340 HbWidget* mContentWidget; |
332 |
341 |
333 MsgMonitor* mMsgMonitor; |
342 MsgUnifiedEditorMonitor* mMsgMonitor; |
334 MsgAttachmentContainer* mAttachmentContainer; |
343 MsgAttachmentContainer* mAttachmentContainer; |
335 UniEditorPluginLoader* mPluginLoader; |
344 UniEditorPluginLoader* mPluginLoader; |
336 ConvergedMessageId mOpenedMessageId; |
345 ConvergedMessageId mOpenedMessageId; |
337 ConvergedMessage::MessageType mmOpenedMessageType; |
346 ConvergedMessage::MessageType mmOpenedMessageType; |
338 bool mCanSaveToDrafts; |
347 bool mCanSaveToDrafts; |