--- a/emailuis/emailui/src/FreestyleEmailUiMailListModel.cpp Fri Feb 19 22:37:30 2010 +0200
+++ b/emailuis/emailui/src/FreestyleEmailUiMailListModel.cpp Fri Mar 12 15:41:14 2010 +0200
@@ -571,3 +571,22 @@
iSortCriteria.iOrder = EFSMailDescending;
}
+void CFSEmailUiMailListModel::GetItemIdsUnderNodeL( const TFsTreeItemId aNodeId,
+ RFsTreeItemIdList& aMessageIds ) const
+ {
+ FUNC_LOG;
+ aMessageIds.Reset();
+ const TInt count(iItems.Count());
+ for (TInt index = 0; index < count; index++)
+ {
+ if (iItems[index]->CorrespondingListId() == aNodeId)
+ {
+ // Found the node Id, now get all the items under it
+ while (++index < count && iItems[index]->ModelItemType() == ETypeMailItem)
+ {
+ aMessageIds.AppendL(iItems[index]->CorrespondingListId());
+ }
+ break;
+ }
+ }
+ }