messagingapp/msgui/unifiededitor/inc/msgunieditorview.h
changeset 56 f42d9a78f435
parent 51 3507212d340e
child 62 fdbe8253b596
equal deleted inserted replaced
55:5b3b2fa8c3ec 56:f42d9a78f435
    16  */
    16  */
    17 
    17 
    18 #ifndef MSG_UNIFIED_EDITOR_VIEW_H
    18 #ifndef MSG_UNIFIED_EDITOR_VIEW_H
    19 #define MSG_UNIFIED_EDITOR_VIEW_H
    19 #define MSG_UNIFIED_EDITOR_VIEW_H
    20 
    20 
    21 #ifdef UNIFIEDEDITOR_DLL
    21 #ifdef MSGUI_UNIT_TEST
    22 #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT
    22  #define UNIFIEDEDITOR_EXPORT
    23 #else
    23 #else
    24 #define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT
    24  #ifdef UNIFIEDEDITOR_DLL
       
    25   #define UNIFIEDEDITOR_EXPORT Q_DECL_EXPORT
       
    26  #else
       
    27   #define UNIFIEDEDITOR_EXPORT Q_DECL_IMPORT
       
    28  #endif
    25 #endif
    29 #endif
    26 
    30 
    27 #include "msgbaseview.h"
    31 #include "msgbaseview.h"
    28 #include "convergedmessage.h"
    32 #include "convergedmessage.h"
    29 #include "convergedmessageid.h"
    33 #include "convergedmessageid.h"
    40 class UniEditorPluginLoader;
    44 class UniEditorPluginLoader;
    41 class HbListWidgetItem;
    45 class HbListWidgetItem;
    42 class HbAbstractVkbHost;
    46 class HbAbstractVkbHost;
    43 class MsgUnifiedEditorBaseWidget;
    47 class MsgUnifiedEditorBaseWidget;
    44 class HbListWidget;
    48 class HbListWidget;
       
    49 class MsgAudioFetcherDialog;
    45 
    50 
    46 class UNIFIEDEDITOR_EXPORT MsgUnifiedEditorView : public MsgBaseView
    51 class UNIFIEDEDITOR_EXPORT MsgUnifiedEditorView : public MsgBaseView
    47     {
    52     {
    48     Q_OBJECT
    53     Q_OBJECT
    49 
    54 
    98     /**
   103     /**
    99      * Packs the content inside editor into converged message
   104      * Packs the content inside editor into converged message
   100      * @param [OUT]msg, converged message to hold editor data
   105      * @param [OUT]msg, converged message to hold editor data
   101      * @param isSave, flag to indicate that msg needs to be packed
   106      * @param isSave, flag to indicate that msg needs to be packed
   102      * for saving to draft or not
   107      * for saving to draft or not
   103      */
   108      * @return returns error if something fails
   104     void packMessage(ConvergedMessage &msg, bool isSave=false);
   109      */
       
   110     int packMessage(ConvergedMessage &msg, bool isSave=false);
   105 
   111 
   106     /**
   112     /**
   107      * Populate editor with prepopulated msg content
   113      * Populate editor with prepopulated msg content
   108      * @param messageDetails message details
   114      * @param messageDetails message details
   109      * @param draftMessage boolean for specifying draft message
   115      * @param draftMessage boolean for specifying draft message
   335      
   341      
   336      /**
   342      /**
   337       * This slot is triggered when vkb is about to be closed.
   343       * This slot is triggered when vkb is about to be closed.
   338       */
   344       */
   339      void vkbAboutToClose();
   345      void vkbAboutToClose();
       
   346      
       
   347      /** 
       
   348       * This slot is called after sound clip is 
       
   349       * selected from audio fetcher dialog    
       
   350       */
       
   351      void onAudioSelected(QString& filePath);
       
   352 	 
       
   353 	 /**
       
   354       * Check if the reply-path is broken
       
   355       * @return bool, true if reply-path constraints are broken
       
   356       */
       
   357      bool isReplyPathBroken();
   340     
   358     
   341 private:
   359 private:
       
   360      
   342     HbAction* mSubjectAction;
   361     HbAction* mSubjectAction;
   343     HbAction* mCcBccAction;
   362     HbAction* mCcBccAction;
   344     HbAction* mSendAction;
   363     HbAction* mSendAction;
   345     QGraphicsLinearLayout* mMainLayout;
   364     QGraphicsLinearLayout* mMainLayout;
   346     MsgUnifiedEditorSubject* mSubjectField;
   365     MsgUnifiedEditorSubject* mSubjectField;
   367     /**
   386     /**
   368      * Instance of VKB host
   387      * Instance of VKB host
   369      */
   388      */
   370 	HbAbstractVkbHost* mVkbHost;
   389 	HbAbstractVkbHost* mVkbHost;
   371 	
   390 	
       
   391 	/**
       
   392 	 * Instance of Audio Fetcher Dialog
       
   393 	 * Need to show when attachment audio selected
       
   394 	 */
       
   395 	MsgAudioFetcherDialog* mDialog;
       
   396 
       
   397     /**
       
   398      * Originating SC, 
       
   399      * to be used only when reply-path is available
       
   400      */
       
   401     QString mOriginatingSC;
       
   402 
       
   403     /**
       
   404      * Originating SME,
       
   405      * to be used only when reply-path is available
       
   406      */
       
   407     QString mOriginatingSME;
       
   408 
       
   409     /**
       
   410      * Flag to tell if reply-path is available
       
   411      */
       
   412     bool mReplyPath;	
       
   413 
   372 	friend class MsgUnifiedEditorMonitor;
   414 	friend class MsgUnifiedEditorMonitor;
   373     };
   415     };
   374 
   416 
   375 #endif //MSG_UNIFIED_EDITOR_VIEW_H
   417 #endif //MSG_UNIFIED_EDITOR_VIEW_H