diff -r b1f0785c289d -r 4f501b74aeb1 messagingapp/msgappfw/server/src/ccssession.cpp --- a/messagingapp/msgappfw/server/src/ccssession.cpp Tue Jul 13 22:09:22 2010 +0530 +++ b/messagingapp/msgappfw/server/src/ccssession.cpp Sun Jul 25 18:59:19 2010 +0530 @@ -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++) {