messagingapp/msgui/msgapp/inc/msgviewmanager.h
changeset 70 a15d9966050f
parent 52 12db4185673b
equal deleted inserted replaced
61:8ba0afbb4637 70:a15d9966050f
    31 class MsgBaseView;
    31 class MsgBaseView;
    32 class DraftsListView;
    32 class DraftsListView;
    33 class MsgSettingsView;
    33 class MsgSettingsView;
    34 class HbAction;
    34 class HbAction;
    35 class HbView;
    35 class HbView;
    36 class MsgAudioFetcherView;
       
    37 
    36 
    38 class MsgViewManager: public QObject
    37 class MsgViewManager: public QObject
    39 {
    38 {
    40 Q_OBJECT
    39 Q_OBJECT
    41 
    40 
    94 	
    93 	
    95     /**
    94     /**
    96 	 * Saves the content of editor or Cv to draft.
    95 	 * Saves the content of editor or Cv to draft.
    97 	 */
    96 	 */
    98     int saveContentToDraft();
    97     int saveContentToDraft();
       
    98 
       
    99     /**
       
   100      * Handles the HW key events.
       
   101      * @param key key type.
       
   102      * @return true if key event handled else false.
       
   103      */
       
   104     bool handleKeyEvent(int key);
       
   105 
    99 private:
   106 private:
   100     /**
   107     /**
   101      * swiches back to last view after service request is complete.
   108      * swiches back to last view after service request is complete.
   102      */
   109      */
   103     void switchToLastSavedView();
   110     void switchToLastSavedView();
   176 	  * @param editorData QVariantList
   183 	  * @param editorData QVariantList
   177 	  */    
   184 	  */    
   178     void populateUniEditorAfterViewReady(const QVariantList& editorData);
   185     void populateUniEditorAfterViewReady(const QVariantList& editorData);
   179     
   186     
   180     /**
   187     /**
   181      * Launch Audio fetcher view
       
   182      */
       
   183     void switchToAudioFetcher(const QVariantList& data);
       
   184 	
       
   185 	/**
       
   186 	 * opens unieditor as activity.
   188 	 * opens unieditor as activity.
   187 	 * @param activityMsgId activity msg id.
   189 	 * @param activityMsgId activity msg id.
   188 	 */
   190 	 */
   189 	void openUniEditorActivity(int activityMsgId);
   191 	void openUniEditorActivity(int activityMsgId);
   190 
   192 
   245     MsgListView* mListView;
   247     MsgListView* mListView;
   246     MsgConversationBaseView* mConversationView;
   248     MsgConversationBaseView* mConversationView;
   247     UnifiedViewer* mUniViewer;
   249     UnifiedViewer* mUniViewer;
   248     DraftsListView* mDraftsListView;
   250     DraftsListView* mDraftsListView;
   249     MsgSettingsView* mSettingsView;
   251     MsgSettingsView* mSettingsView;
   250     MsgAudioFetcherView* mAudioFetcherView;
   252     
   251     HbAction* mBackAction;
   253     HbAction* mBackAction;
   252 
   254 
   253     int mPreviousView;
   255     int mPreviousView;
   254     int mCurrentView;
   256     int mCurrentView;
   255     int mViewAtServiceRequest;
   257     int mViewAtServiceRequest;