messagingapp/msgui/appengine/inc/conversationchangehandler.h
changeset 52 12db4185673b
parent 23 238255e8b033
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
    80      * This is for handling GetConversation results asynchronusly
    80      * This is for handling GetConversation results asynchronusly
    81      * from the server.
    81      * from the server.
    82      * 
    82      * 
    83      * @param aConversationEntryList List of conversation entries
    83      * @param aConversationEntryList List of conversation entries
    84      * returned by server.
    84      * returned by server.
       
    85      * @param aTotalCount total number of conversation entries
    85      */
    86      */
    86 
    87 
    87     void ConversationsL(
    88     void ConversationsL(
    88         RPointerArray<CCsConversationEntry>& aConversationEntryList);
    89         RPointerArray<CCsConversationEntry>& aConversationEntryList,
       
    90         TInt& aTotalCount);
       
    91     
       
    92     /**
       
    93      * ResetValuesForNewConversation
       
    94      * Resets the values of flags, and indexes for a new conversation
       
    95      */
       
    96     void ResetValuesForNewConversation();
    89 
    97 
    90 public://MCsConversationChangeObserver
    98 public://MCsConversationChangeObserver
    91     /**  
    99     /**  
    92      * AddConversation
   100      * AddConversation
    93      * This is for handling addition of new conversation entry in
   101      * This is for handling addition of new conversation entry in
   132 
   140 
   133     /**
   141     /**
   134      * Handles Conversations received from server and updates into model
   142      * Handles Conversations received from server and updates into model
   135      */    
   143      */    
   136     void HandleConversationsL();
   144     void HandleConversationsL();
   137 
   145     
       
   146     /**
       
   147      * Fetch remaning conversations from Server Cache
       
   148      * @param aCount - count of conversations added to entry list
       
   149      */
       
   150     void FetchRemainingConversations(TInt aCount);
       
   151     
   138 private:
   152 private:
   139     // Data
   153     // Data
   140 
   154 
   141     /**
   155     /**
   142      * ConversationsChangeHandler Internal States
   156      * ConversationsChangeHandler Internal States
   143      */
   157      */
   144     enum ConvChangeHandlerStates
   158     enum ConvChangeHandlerStates
   145     {
   159     {
   146         EInit = 500, 
   160         EInit = 500, 
   147         EInitialCache, 
   161         EInitialCache, 
       
   162         EFetchMoreConversations,
   148         EListenToEvents
   163         EListenToEvents
   149     };
   164     };
   150 
   165 
   151     /**
   166     /**
   152      * mCurrentState
   167      * mCurrentState
   165      * Own.
   180      * Own.
   166      */
   181      */
   167     TInt mCurrentIndex;
   182     TInt mCurrentIndex;
   168     
   183     
   169     /**
   184     /**
       
   185      * Total count of conversation entries in the Conversation
       
   186      * Own
       
   187      */
       
   188     TInt mTotalCount;
       
   189     /**
   170      * ConversationsModel Object
   190      * ConversationsModel Object
   171      * Not Own.
   191      * Not Own.
   172      */
   192      */
   173     ConversationsModel* mConversationsModel;
   193     ConversationsModel* mConversationsModel;
   174 
   194