equal
deleted
inserted
replaced
2742 { |
2742 { |
2743 const TEntry item = (*dir)[i]; |
2743 const TEntry item = (*dir)[i]; |
2744 filename.Format( KFormat, &aDirectory, &item.iName ); |
2744 filename.Format( KFormat, &aDirectory, &item.iName ); |
2745 index = aList.Count(); |
2745 index = aList.Count(); |
2746 CSearchListItem* item2 = SearchListItemFromRomL( filename, index ); |
2746 CSearchListItem* item2 = SearchListItemFromRomL( filename, index ); |
2747 aList.Append( item2 ); |
2747 aList.AppendL( item2 ); |
2748 } |
2748 } |
2749 |
2749 |
2750 CleanupStack::PopAndDestroy( dir ); |
2750 CleanupStack::PopAndDestroy( dir ); |
2751 |
2751 |
2752 CleanupStack::PopAndDestroy(); // fsSession |
2752 CleanupStack::PopAndDestroy(); // fsSession |
2782 TFileName filename; |
2782 TFileName filename; |
2783 for ( TInt i=0; i<count; i++ ) |
2783 for ( TInt i=0; i<count; i++ ) |
2784 { |
2784 { |
2785 const TEntry item = (*dir)[i]; |
2785 const TEntry item = (*dir)[i]; |
2786 filename.Format( KFormat, &aDirectory, &item.iName ); |
2786 filename.Format( KFormat, &aDirectory, &item.iName ); |
2787 aList.Append( filename ); |
2787 aList.AppendL( filename ); |
2788 } |
2788 } |
2789 |
2789 |
2790 CleanupStack::PopAndDestroy( dir ); |
2790 CleanupStack::PopAndDestroy( dir ); |
2791 |
2791 |
2792 CleanupStack::PopAndDestroy(); // fsSession |
2792 CleanupStack::PopAndDestroy(); // fsSession |
2984 { |
2984 { |
2985 TPtrC title = item->Title(); |
2985 TPtrC title = item->Title(); |
2986 TInt rt = title.FindF( aSearchText ); |
2986 TInt rt = title.FindF( aSearchText ); |
2987 if ( rt != KErrNotFound ) |
2987 if ( rt != KErrNotFound ) |
2988 { |
2988 { |
2989 iList.Append( item ); |
2989 iList.AppendL( item ); |
2990 } |
2990 } |
2991 } |
2991 } |
2992 } |
2992 } |
2993 } |
2993 } |
2994 |
2994 |
3013 { |
3013 { |
3014 TPtrC title = item->Title(); |
3014 TPtrC title = item->Title(); |
3015 TInt rt = title.FindF( aSearchText ); |
3015 TInt rt = title.FindF( aSearchText ); |
3016 if ( rt != KErrNotFound ) |
3016 if ( rt != KErrNotFound ) |
3017 { |
3017 { |
3018 iList.Append( item ); |
3018 iList.AppendL( item ); |
3019 } |
3019 } |
3020 } |
3020 } |
3021 } |
3021 } |
3022 } |
3022 } |
3023 // ----------------------------------------------------------------------------- |
3023 // ----------------------------------------------------------------------------- |