equal
deleted
inserted
replaced
569 iItems.ResetAndDestroy(); |
569 iItems.ResetAndDestroy(); |
570 iSortCriteria.iField = EFSMailSortByDate; |
570 iSortCriteria.iField = EFSMailSortByDate; |
571 iSortCriteria.iOrder = EFSMailDescending; |
571 iSortCriteria.iOrder = EFSMailDescending; |
572 } |
572 } |
573 |
573 |
|
574 void CFSEmailUiMailListModel::GetItemIdsUnderNodeL( const TFsTreeItemId aNodeId, |
|
575 RFsTreeItemIdList& aMessageIds ) const |
|
576 { |
|
577 FUNC_LOG; |
|
578 aMessageIds.Reset(); |
|
579 const TInt count(iItems.Count()); |
|
580 for (TInt index = 0; index < count; index++) |
|
581 { |
|
582 if (iItems[index]->CorrespondingListId() == aNodeId) |
|
583 { |
|
584 // Found the node Id, now get all the items under it |
|
585 while (++index < count && iItems[index]->ModelItemType() == ETypeMailItem) |
|
586 { |
|
587 aMessageIds.AppendL(iItems[index]->CorrespondingListId()); |
|
588 } |
|
589 break; |
|
590 } |
|
591 } |
|
592 } |