217 } |
217 } |
218 } |
218 } |
219 } |
219 } |
220 |
220 |
221 // ---------------------------------------------------------------------------- |
221 // ---------------------------------------------------------------------------- |
|
222 // CCsConversation::GetEntryListL |
|
223 // This function shall return segment of Conversation Entry |
|
224 // of ConversationEntry based on aStartIndex and aEndIndex |
|
225 // ---------------------------------------------------------------------------- |
|
226 void |
|
227 CCsConversation::GetEntryListL ( |
|
228 RPointerArray<CCsConversationEntry>* aConversationEntryList, |
|
229 TInt aStartIndex, |
|
230 TInt aEndIndex) |
|
231 { |
|
232 TInt EntryCount = iEntryList->Count(); |
|
233 if (EntryCount > 0 && aStartIndex>=0 && aEndIndex<=EntryCount) |
|
234 { |
|
235 // loop through each entry make a clone and add |
|
236 // it to aConversationEntryList class |
|
237 for (TInt index=aEndIndex-1 ; index>=aStartIndex ; index--) |
|
238 { |
|
239 CCsConversationEntry* conEntry = |
|
240 (static_cast<CCsConversationEntry*>( |
|
241 (*iEntryList)[index]))->CloneL(); |
|
242 aConversationEntryList->Append(conEntry); |
|
243 } |
|
244 } |
|
245 } |
|
246 |
|
247 |
|
248 // ---------------------------------------------------------------------------- |
222 // CCsConversation::AddEntryL |
249 // CCsConversation::AddEntryL |
223 // Add a entry to this conversation |
250 // Add a entry to this conversation |
224 // ---------------------------------------------------------------------------- |
251 // ---------------------------------------------------------------------------- |
225 void |
252 void |
226 CCsConversation::AddEntryL( |
253 CCsConversation::AddEntryL( |