diff -r a32b19fb291e -r 5b14749788d7 messagingapp/msgui/unifiededitor/inc/msgunieditorview.h --- a/messagingapp/msgui/unifiededitor/inc/msgunieditorview.h Thu Jun 17 09:57:06 2010 +0100 +++ b/messagingapp/msgui/unifiededitor/inc/msgunieditorview.h Thu Jul 22 16:32:06 2010 +0100 @@ -15,8 +15,8 @@ * */ -#ifndef UNIFIED_EDITOR_VIEW_H -#define UNIFIED_EDITOR_VIEW_H +#ifndef MSG_UNIFIED_EDITOR_VIEW_H +#define MSG_UNIFIED_EDITOR_VIEW_H #ifdef UNIFIEDEDITOR_DLL #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT @@ -35,7 +35,7 @@ class MsgUnifiedEditorSubject; class MsgUnifiedEditorAddress; class MsgUnifiedEditorBody; -class MsgMonitor; +class MsgUnifiedEditorMonitor; class MsgAttachmentContainer; class UniEditorPluginLoader; class HbListWidgetItem; @@ -75,7 +75,7 @@ /** * Saves the content inside editor to save */ - void saveContentToDrafts(); + int saveContentToDrafts(); protected: /** @@ -105,9 +105,11 @@ /** * Populate editor with prepopulated msg content + * @param messageDetails message details + * @param draftMessage boolean for specifying draft message */ void populateContentIntoEditor( - const ConvergedMessage& messageDetails); + const ConvergedMessage& messageDetails, bool draftMessage = false); /** * Populate the editor with the forwarded message's content @@ -182,6 +184,13 @@ void setAttachOptionEnabled(MsgUnifiedEditorView::TBE_AttachOption opt, bool enable); + /** + * Addresses are all ok. Now parse not allowed chars away + * before giving it to MTM + * @param addresses, list of ConvergedMessageAddress + */ + void formatAddresses(ConvergedMessageAddressList& addresses); + private slots: /** @@ -205,11 +214,6 @@ void changePriority(); /** - * slot for different sending options. - */ - void sendingOptions(); - - /** * slot to current delete message. */ void deleteMessage(); @@ -220,11 +224,6 @@ void imagesFetched(const QVariant& result ); /** - * slot to fetch audio files - */ - void audiosFetched(const QVariant& result ); - - /** * slot to receive fetched contacts */ void contactsFetched(const QVariant& value); @@ -317,10 +316,17 @@ * @param action selected action (yes or no). */ void onDialogMmsSettings(HbAction* action); + + /** + * Enable/Disable send tool button. + * @param true/false to enable/disable. + */ + void enableSendButton(bool enable); private: HbAction* mSubjectAction; HbAction* mCcBccAction; + HbAction* mSendAction; QGraphicsLinearLayout* mMainLayout; MsgUnifiedEditorSubject* mSubjectField; MsgUnifiedEditorAddress* mToField; @@ -330,7 +336,7 @@ HbWidget* mContentWidget; - MsgMonitor* mMsgMonitor; + MsgUnifiedEditorMonitor* mMsgMonitor; MsgAttachmentContainer* mAttachmentContainer; UniEditorPluginLoader* mPluginLoader; ConvergedMessageId mOpenedMessageId; @@ -347,7 +353,7 @@ */ HbAbstractVkbHost* mVkbHost; - friend class MsgMonitor; + friend class MsgUnifiedEditorMonitor; }; -#endif //UNIFIED_EDITOR_VIEW_H +#endif //MSG_UNIFIED_EDITOR_VIEW_H