equal
deleted
inserted
replaced
604 // Current selected IDs |
604 // Current selected IDs |
605 // ----------------------------------------------------------------------------- |
605 // ----------------------------------------------------------------------------- |
606 // |
606 // |
607 EXPORT_C void CMPXCollectionPath::SelectionL(RArray<TMPXItemId>& aIds) const |
607 EXPORT_C void CMPXCollectionPath::SelectionL(RArray<TMPXItemId>& aIds) const |
608 { |
608 { |
|
609 CleanupClosePushL(aIds); |
609 aIds.Reset(); |
610 aIds.Reset(); |
610 TInt idCount(iIds.Count()); |
611 TInt idCount(iIds.Count()); |
611 TInt selCount(iSelection.Count()); |
612 TInt selCount(iSelection.Count()); |
612 for (TInt i=0; i<selCount; ++i) |
613 for (TInt i=0; i<selCount; ++i) |
613 { |
614 { |
615 if (idIndex < idCount) |
616 if (idIndex < idCount) |
616 { |
617 { |
617 aIds.AppendL(iIds[idIndex]); |
618 aIds.AppendL(iIds[idIndex]); |
618 } |
619 } |
619 } |
620 } |
|
621 CleanupStack::Pop(); |
620 } |
622 } |
621 |
623 |
622 // ----------------------------------------------------------------------------- |
624 // ----------------------------------------------------------------------------- |
623 // Update the item id at a particular index |
625 // Update the item id at a particular index |
624 // ----------------------------------------------------------------------------- |
626 // ----------------------------------------------------------------------------- |