diff -r 84d9eb65b26f -r 518b245aa84c messagingapp/msgui/conversationview/inc/msgconversationview.h --- a/messagingapp/msgui/conversationview/inc/msgconversationview.h Mon May 03 12:29:07 2010 +0300 +++ b/messagingapp/msgui/conversationview/inc/msgconversationview.h Fri Jun 25 15:47:40 2010 +0530 @@ -32,7 +32,7 @@ class MsgConversationViewItem; class HbStaticVkbHost; class QGraphicsLinearLayout; - +class HbAction; //Defines #define INVALID_MSG_ID -1 @@ -66,9 +66,10 @@ /** * Save the content inside editor to drafts - * @return true if save is success else false. + * @return valid message id if save is success + * else invalid message id ( i.e. -1 ) */ - bool saveContentToDrafts(); + int saveContentToDrafts(); private slots: @@ -77,7 +78,47 @@ * Populates the menu with relevant actions. */ void menuAboutToShow(); + + /** + * This slot is called when settings dialog is launched. + * @param action selected action (yes or no). + */ + void onDialogSettingsLaunch(HbAction* action); + + /** + * This slot is called when delete message centre dialog is launched. + * @param action selected action (yes or no). + */ + void onDialogdeleteMsg(HbAction* action); + + /** + * This slot is called when download message centre dialog is launched. + * @param action selected action (yes or no). + */ + void onDialogDownLoadMsg(HbAction* action); + + /** + * This slot is called when save tone dialog is launched. + * @param action selected action (yes or no). + */ + void onDialogSaveTone(HbAction* action); + /** + * This slot is called when the orientation is changed + * @param newOrientation orientation + */ + void onOrientationChanged(Qt::Orientation newOrientation); + + /** + * This slot is called when the orientation is about to bechanged + */ + void onOrientationAboutToBeChanged(); + + /** + * This slot is called when the view is successfully added to main window + */ + void onViewReady(); + private: /** @@ -106,6 +147,15 @@ void setContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu, int sendingState); /** + * Adds context menu entry to context menu for saving items + * @param MsgConversationViewItem* item whose information is needed. + * @param HbMenu context menu + * @param int sendingstate. + * @see ConvergedMessage::MessageType + */ + void addSaveItemToContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu, int sendingState); + + /** * Adds context menu entry to context menu for Opening items * @param MsgConversationViewItem* item whose information is needed. * @param HbMenu context menu @@ -148,15 +198,6 @@ * @see ConvergedMessage::MessageType */ void addDownloadItemToContextMenu(MsgConversationViewItem* item, HbMenu* contextMenu); - - /** - * Validates if message can be forwarded - * @param messageType - * @param messageId - * @return true if message can be forwarded - * false if message cant be forwarded - */ - bool validateMsgForForward(int &messageType,qint32 &messageId); /** * Launches the BT message display service. @@ -177,6 +218,8 @@ * Utility method to scroll the list to show the bottom most item */ void scrollToBottom(); + + void onConversationViewEmpty(); /** * Handler for long tap of a list item. @@ -224,11 +267,6 @@ */ void contactsFetched(const QVariant& value); - /* - * Get audio files from audio-fetcher and launch editor - */ - void audiosFetched(const QVariant& result ); - /** * slot to receive fetched contacts for vcard addition */ @@ -295,10 +333,11 @@ */ void replyStarted(); - /** - * This signal is emitted when vkb is open. - */ - void hideChrome(bool); + /** + * This signal is emitted when vkb is open/closed. + * @param state True if keypad is opened else false. + */ + void vkbOpened(bool state); private slots: /** @@ -336,6 +375,12 @@ * Deactivate Input Blocker */ void deactivateInputBlocker(); + + /** + * Handle provisioning message + * @param msgId message id + */ + void handleProvisoningMsg(int msgId); private: @@ -371,10 +416,6 @@ */ QGraphicsLinearLayout *mMainLayout; - /** - * Flag to track if item has been long pressed. - */ - bool mItemLongPressed; /* * Instance of VKB */ @@ -385,6 +426,11 @@ */ bool mVkbopened; + /** + * variable holding the visible model index + */ + QModelIndex mVisibleIndex; + }; #endif // MSG_CONVERSATION_VIEW_H