equal
deleted
inserted
replaced
751 // Now we should have a list of all local folders. |
751 // Now we should have a list of all local folders. |
752 // Prune away the standard folders. |
752 // Prune away the standard folders. |
753 // They should be at the end of the list |
753 // They should be at the end of the list |
754 TInt count = selection->Count(); |
754 TInt count = selection->Count(); |
755 TInt i; |
755 TInt i; |
756 for ( i = count - 1; i >= 0; i-- ) |
756 for ( i = count - 1; i >= 0; --i ) |
757 { |
757 { |
758 if ( selection->At( i ) <= KMsvDeletedEntryFolderEntryId ) |
758 if ( selection->At( i ) <= KMsvDeletedEntryFolderEntryId ) |
759 { |
759 { |
760 // Anything below this should not be ours |
760 // Anything below this should not be ours |
761 selection->Delete( i ); |
761 selection->Delete( i ); |
763 } |
763 } |
764 |
764 |
765 // Check if anything left. |
765 // Check if anything left. |
766 count = selection->Count(); |
766 count = selection->Count(); |
767 // Loop through the rest and find possible correct folder |
767 // Loop through the rest and find possible correct folder |
768 for ( i = 0; i < count && mmsFolderId == KMsvNullIndexEntryId; i++ ) |
768 for ( i = 0; i < count && mmsFolderId == KMsvNullIndexEntryId; ++i ) |
769 { |
769 { |
770 cMsvEntry->SetEntryL( selection->At( i ) ); |
770 cMsvEntry->SetEntryL( selection->At( i ) ); |
771 // must be exact match |
771 // must be exact match |
772 if (cMsvEntry->Entry().iDetails.Compare( KMMSNotificationFolder ) == 0) |
772 if (cMsvEntry->Entry().iDetails.Compare( KMMSNotificationFolder ) == 0) |
773 { |
773 { |