diff -r a32b19fb291e -r 5b14749788d7 messagingapp/msgui/msgapp/inc/msgviewmanager.h --- a/messagingapp/msgui/msgapp/inc/msgviewmanager.h Thu Jun 17 09:57:06 2010 +0100 +++ b/messagingapp/msgui/msgapp/inc/msgviewmanager.h Thu Jul 22 16:32:06 2010 +0100 @@ -20,6 +20,7 @@ #define MSGVIEWMANAGER_H_ #include +#include #include class HbMainWindow; @@ -32,6 +33,7 @@ class MsgSettingsView; class HbAction; class HbView; +class MsgAudioFetcherView; class MsgViewManager: public QObject { @@ -41,7 +43,8 @@ /** * constructor */ - MsgViewManager(bool serviceRequest, HbMainWindow* mainWindow, QObject* parent = 0); + MsgViewManager(bool serviceRequest, HbMainWindow* mainWindow, + QObject* parent = 0,int activityMsgId = -1); /** * Destructor. @@ -84,6 +87,15 @@ */ void view(int msgId); + /** + * Returns the current active view. + */ + int currentView(); + + /** + * Saves the content of editor or Cv to draft. + */ + int saveContentToDraft(); private: /** * swiches back to last view after service request is complete. @@ -158,6 +170,29 @@ * Appends the views to be deleted into a QList to be deleted when view is ready */ void appendViewToBeDeleted(HbView* view); + + /** + * Save the editor data to be populated + * @param editorData QVariantList + */ + void populateUniEditorAfterViewReady(const QVariantList& editorData); + + /** + * Launch Audio fetcher view + */ + void switchToAudioFetcher(const QVariantList& data); + + /** + * opens unieditor as activity. + * @param activityMsgId activity msg id. + */ + void openUniEditorActivity(int activityMsgId); + + /** + * find contact id corresponding to given phone no. + * @param phoneNum + */ + qint32 findContactId(const QString address); private slots: /** @@ -191,6 +226,11 @@ * @param action selected action (yes or no). */ void onDialogSaveTone(HbAction* action); + + /** + * When this slot is called the saved editor data is set to the editor + */ + void populateUniEditorView(); private: /** @@ -207,6 +247,7 @@ UnifiedViewer* mUniViewer; DraftsListView* mDraftsListView; MsgSettingsView* mSettingsView; + MsgAudioFetcherView* mAudioFetcherView; HbAction* mBackAction; int mPreviousView; @@ -218,6 +259,8 @@ QList mViewTobeDeleted; HbView* mDummyview; int mMessageId; + + QVariantList mEditorData; }; #endif /* MSGVIEWMANAGER_H_ */