diff -r 8ba0afbb4637 -r a15d9966050f messagingapp/msgui/unifiededitor/inc/msgunieditorview.h --- a/messagingapp/msgui/unifiededitor/inc/msgunieditorview.h Thu Sep 02 20:23:03 2010 +0300 +++ b/messagingapp/msgui/unifiededitor/inc/msgunieditorview.h Fri Sep 17 08:28:39 2010 +0300 @@ -18,10 +18,14 @@ #ifndef MSG_UNIFIED_EDITOR_VIEW_H #define MSG_UNIFIED_EDITOR_VIEW_H -#ifdef UNIFIEDEDITOR_DLL -#define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT +#ifdef MSGUI_UNIT_TEST + #define UNIFIEDEDITOR_EXPORT #else -#define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT + #ifdef UNIFIEDEDITOR_DLL + #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT + #else + #define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT + #endif #endif #include "msgbaseview.h" @@ -42,6 +46,7 @@ class HbAbstractVkbHost; class MsgUnifiedEditorBaseWidget; class HbListWidget; +class MsgAudioFetcherDialog; class UNIFIEDEDITOR_EXPORT MsgUnifiedEditorView : public MsgBaseView { @@ -77,6 +82,14 @@ */ int saveContentToDrafts(); + /** + * Event handler + * @param key Key code + * @return true if key event handled else false. + * @see MsgBaseView + */ + bool handleKeyEvent(int key); + protected: /** * reimplemented from base class to provide proper geometry for scrolling. @@ -100,8 +113,9 @@ * @param [OUT]msg, converged message to hold editor data * @param isSave, flag to indicate that msg needs to be packed * for saving to draft or not + * @return returns error if something fails */ - void packMessage(ConvergedMessage &msg, bool isSave=false); + int packMessage(ConvergedMessage &msg, bool isSave=false); /** * Populate editor with prepopulated msg content @@ -337,8 +351,21 @@ * This slot is triggered when vkb is about to be closed. */ void vkbAboutToClose(); + + /** + * This slot is called after sound clip is + * selected from audio fetcher dialog + */ + void onAudioSelected(QString& filePath); + + /** + * Check if the reply-path is broken + * @return bool, true if reply-path constraints are broken + */ + bool isReplyPathBroken(); private: + HbAction* mSubjectAction; HbAction* mCcBccAction; HbAction* mSendAction; @@ -369,6 +396,29 @@ */ HbAbstractVkbHost* mVkbHost; + /** + * Instance of Audio Fetcher Dialog + * Need to show when attachment audio selected + */ + MsgAudioFetcherDialog* mDialog; + + /** + * Originating SC, + * to be used only when reply-path is available + */ + QString mOriginatingSC; + + /** + * Originating SME, + * to be used only when reply-path is available + */ + QString mOriginatingSME; + + /** + * Flag to tell if reply-path is available + */ + bool mReplyPath; + friend class MsgUnifiedEditorMonitor; };