messagingapp/msgui/conversationview/inc/msgconversationview.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    30 class MsgEditorWidget;
    30 class MsgEditorWidget;
    31 class MsgContactCardWidget;
    31 class MsgContactCardWidget;
    32 class MsgConversationViewItem;
    32 class MsgConversationViewItem;
    33 class HbStaticVkbHost;
    33 class HbStaticVkbHost;
    34 class QGraphicsLinearLayout;
    34 class QGraphicsLinearLayout;
    35 
    35 class HbAction;
    36 //Defines
    36 //Defines
    37 #define INVALID_MSG_ID -1
    37 #define INVALID_MSG_ID -1
    38 
    38 
    39 /**
    39 /**
    40  * This class provides the message chat view for the messaging application.
    40  * This class provides the message chat view for the messaging application.
    75     /**
    75     /**
    76      * Slot is called when menu is about to be shown.
    76      * Slot is called when menu is about to be shown.
    77      * Populates the menu with relevant actions.
    77      * Populates the menu with relevant actions.
    78      */
    78      */
    79     void menuAboutToShow();
    79     void menuAboutToShow();
       
    80     
       
    81 	/**
       
    82      * This slot is called when settings dialog is launched.
       
    83      * @param action selected action (yes or no).
       
    84      */
       
    85     void onDialogSettingsLaunch(HbAction* action);
       
    86     
       
    87 	/**
       
    88      * This slot is called when delete message centre dialog is launched.
       
    89      * @param action selected action (yes or no).
       
    90      */	
       
    91     void onDialogdeleteMsg(HbAction* action);
       
    92 	
       
    93 	/**
       
    94      * This slot is called when download message centre dialog is launched.
       
    95      * @param action selected action (yes or no).
       
    96      */	    
       
    97     void onDialogDownLoadMsg(HbAction* action);
       
    98 	
       
    99 	/**
       
   100      * This slot is called when save tone dialog is launched.
       
   101      * @param action selected action (yes or no).
       
   102      */	
       
   103     void onDialogSaveTone(HbAction* action);
    80 
   104 
    81 private:
   105 private:
    82 
   106 
    83     /**
   107     /**
    84      * View initialization function.
   108      * View initialization function.
   103      * @param int sendingstate.
   127      * @param int sendingstate.
   104      * @see ConvergedMessage::MessageType
   128      * @see ConvergedMessage::MessageType
   105      */
   129      */
   106     void setContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu, int sendingState);
   130     void setContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu, int sendingState);
   107 	
   131 	
       
   132     /**
       
   133      * Adds context menu entry to context menu for saving items
       
   134      * @param MsgConversationViewItem* item whose information is needed.
       
   135      * @param HbMenu context menu
       
   136      * @param int sendingstate.
       
   137      * @see ConvergedMessage::MessageType
       
   138      */    
       
   139     void addSaveItemToContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu, int sendingState);
       
   140     
   108     /**
   141     /**
   109      * Adds context menu entry to context menu for Opening items
   142      * Adds context menu entry to context menu for Opening items
   110 	 * @param MsgConversationViewItem* item whose information is needed.
   143 	 * @param MsgConversationViewItem* item whose information is needed.
   111      * @param HbMenu context menu
   144      * @param HbMenu context menu
   112      * @param int sendingstate.
   145      * @param int sendingstate.
   334 
   367 
   335     /**
   368     /**
   336      * Deactivate Input Blocker
   369      * Deactivate Input Blocker
   337      */
   370      */
   338     void deactivateInputBlocker();
   371     void deactivateInputBlocker();
       
   372     
       
   373     /**
       
   374      * Handle provisioning message
       
   375      * @param msgId message id
       
   376      */
       
   377     void handleProvisoningMsg(int msgId);
   339 
   378 
   340 private:
   379 private:
   341 
   380 
   342     /**
   381     /**
   343      * List to hold the conversations
   382      * List to hold the conversations
   371      */
   410      */
   372     QGraphicsLinearLayout *mMainLayout;
   411     QGraphicsLinearLayout *mMainLayout;
   373 
   412 
   374 	/**
   413 	/**
   375 	 * Flag to track if item has been long pressed.
   414 	 * Flag to track if item has been long pressed.
       
   415 	 * TODO: Remove it, once unique longpress and click event signal released in week16
   376 	 */
   416 	 */
   377     bool mItemLongPressed;
   417     bool mItemLongPressed;
   378     /*
   418     /*
   379      * Instance of VKB 
   419      * Instance of VKB 
   380      */
   420      */