emailuis/emailui/src/FreestyleEmailUiMailListModel.cpp
branchRCL_3
changeset 31 72d484772ca6
parent 8 e1b6206813b4
child 52 efd4f1afd43e
--- 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;
+            }
+        }        
+    }