messagingapp/msgui/conversationview/inc/msgconversationview.h
changeset 44 36f374c67aa8
parent 43 35b64624a9e7
child 47 5b14749788d7
child 52 12db4185673b
equal deleted inserted replaced
43:35b64624a9e7 44:36f374c67aa8
   112     /**
   112     /**
   113      * This slot is called when the orientation is about to bechanged
   113      * This slot is called when the orientation is about to bechanged
   114      */
   114      */
   115     void onOrientationAboutToBeChanged();
   115     void onOrientationAboutToBeChanged();
   116     
   116     
   117     /**
       
   118      * This slot is called when the view is successfully added to main window
       
   119      */
       
   120     void onViewReady();
       
   121     
       
   122 private:
   117 private:
   123 
   118 
   124     /**
   119     /**
   125      * View initialization function.
   120      * View initialization function.
   126      */
   121      */
   128 
   123 
   129     /**
   124     /**
   130      * Setup view menu items.
   125      * Setup view menu items.
   131      */
   126      */
   132     void setupMenu();
   127     void setupMenu();
       
   128 
       
   129     /**
       
   130      * Triggers model to fetch more conversations.
       
   131      */
       
   132     void fetchMoreConversations();
   133 
   133 
   134     /**
   134     /**
   135      * Populates ConvergedMessage for sending.
   135      * Populates ConvergedMessage for sending.
   136      * @param ConvergedMessage to be populated
   136      * @param ConvergedMessage to be populated
   137      * @see ConvergedMessage::MessageType
   137      * @see ConvergedMessage::MessageType
   209     /**
   209     /**
   210      * Refreshes all widgets in the conversation view according to latest model
   210      * Refreshes all widgets in the conversation view according to latest model
   211      * data
   211      * data
   212      */
   212      */
   213     void refreshView();
   213     void refreshView();
       
   214 
       
   215     /**
       
   216      * This slot is called when the view is successfully added to main window
       
   217      */
       
   218     void onViewReady();
   214     
   219     
   215 private slots:
   220 private slots:
   216 
   221 
   217     /**
   222     /**
   218      * Utility method to scroll the list to show the bottom most item
   223      * Utility method to scroll the list to show the bottom most item
   219      */
   224      */
   220     void scrollToBottom();
   225     void scrollToBottom();
       
   226     
       
   227     void onConversationViewEmpty();
   221 
   228 
   222     /**
   229     /**
   223      * Handler for long tap of a list item.
   230      * Handler for long tap of a list item.
   224      * @param viewItem  Long tapped view item
   231      * @param viewItem  Long tapped view item
   225      * @param point X and Y co-ordinates of long tap
   232      * @param point X and Y co-ordinates of long tap
   418      * Instance of VKB 
   425      * Instance of VKB 
   419      */
   426      */
   420     HbStaticVkbHost* mVkbHost;
   427     HbStaticVkbHost* mVkbHost;
   421     
   428     
   422     /**
   429     /**
       
   430      * variable holding the visible model index
       
   431      */
       
   432     QModelIndex mVisibleIndex;
       
   433     
       
   434     /**
   423      * Flag to check it vkb is open.
   435      * Flag to check it vkb is open.
   424      */
   436      */
   425     bool mVkbopened;
   437     bool mVkbopened;
   426 
   438     
   427     /**
   439     /**
   428      * variable holding the visible model index
   440      * Flag is set when model is populated.
   429      */
   441      * @see signal conversationModelPopulated()
   430     QModelIndex mVisibleIndex;
   442      */
   431 
   443     bool mModelPopulated;
       
   444     
       
   445     /**
       
   446      * Flag is set when 
       
   447      */
       
   448     bool mViewReady;
   432 };
   449 };
   433 
   450 
   434 #endif // MSG_CONVERSATION_VIEW_H
   451 #endif // MSG_CONVERSATION_VIEW_H
   435 // EOF
   452 // EOF