diff -r b1f0785c289d -r 4f501b74aeb1 messagingapp/msgappfw/server/src/ccsconversation.cpp --- a/messagingapp/msgappfw/server/src/ccsconversation.cpp Tue Jul 13 22:09:22 2010 +0530 +++ b/messagingapp/msgappfw/server/src/ccsconversation.cpp Sun Jul 25 18:59:19 2010 +0530 @@ -219,6 +219,33 @@ } // ---------------------------------------------------------------------------- +// CCsConversation::GetEntryListL +// This function shall return segment of Conversation Entry +// of ConversationEntry based on aStartIndex and aEndIndex +// ---------------------------------------------------------------------------- +void +CCsConversation::GetEntryListL ( + RPointerArray* aConversationEntryList, + TInt aStartIndex, + TInt aEndIndex) + { + TInt EntryCount = iEntryList->Count(); + if (EntryCount > 0 && aStartIndex>=0 && aEndIndex<=EntryCount) + { + // loop through each entry make a clone and add + // it to aConversationEntryList class + for (TInt index=aEndIndex-1 ; index>=aStartIndex ; index--) + { + CCsConversationEntry* conEntry = + (static_cast( + (*iEntryList)[index]))->CloneL(); + aConversationEntryList->Append(conEntry); + } + } + } + + +// ---------------------------------------------------------------------------- // CCsConversation::AddEntryL // Add a entry to this conversation // ----------------------------------------------------------------------------