diff -r 36f374c67aa8 -r 12db4185673b messagingapp/msgappfw/server/src/ccssession.cpp --- a/messagingapp/msgappfw/server/src/ccssession.cpp Tue Jul 06 14:12:40 2010 +0300 +++ b/messagingapp/msgappfw/server/src/ccssession.cpp Wed Aug 18 09:45:25 2010 +0300 @@ -489,7 +489,11 @@ // Stream over the buffer RDesReadStream stream(bufferPtr); stream.PushL(); - + + //Read known index and page size + TInt knownIndex = stream.ReadInt32L(); + TInt pageSize = stream.ReadInt32L(); + // get cache pointer CCsConversationCache* cache = iServer->ConversationCacheInterface(); @@ -506,8 +510,13 @@ new (ELeave) RPointerArray(10); CleanupResetAndDestroyPushL(conversationEntryList); - // get conversationlist for given ClientConversation - cache->GetConversationsL(ClientConversation, conversationEntryList); + // get conversation entry list for given ClientConversation + TInt totalCount(0); + cache->GetConversationsL (ClientConversation, + conversationEntryList, + knownIndex, + pageSize, + totalCount); // create a new buffer for writing into stream // write all list data into stream @@ -520,7 +529,10 @@ TInt ItemCount = conversationEntryList->Count(); //write recent conversation entry list writeStream.WriteInt32L(ItemCount); - + + //Write total count in the stream to update UI + writeStream.WriteInt32L(totalCount); + // Write the conversation entry for (TInt iloop = 0; iloop < ItemCount; iloop++) {