equal
deleted
inserted
replaced
228 TInt count = iVideoTitleArray.Count(); |
228 TInt count = iVideoTitleArray.Count(); |
229 if( count > 0 ) |
229 if( count > 0 ) |
230 { |
230 { |
231 for( TInt i=0; i<count; i++ ) |
231 for( TInt i=0; i<count; i++ ) |
232 { |
232 { |
233 iTrackArray.Append( iVideoTitleArray[i] ); |
233 iTrackArray.AppendL( iVideoTitleArray[i] ); |
234 } |
234 } |
235 } |
235 } |
236 |
236 |
237 } |
237 } |
238 // Creates metadata collector and starts data fetching |
238 // Creates metadata collector and starts data fetching |
1174 { |
1174 { |
1175 iLimitType = static_cast<TCmLimitType> (addValue); |
1175 iLimitType = static_cast<TCmLimitType> (addValue); |
1176 } |
1176 } |
1177 // Remember IDs of template rules - rules will be set |
1177 // Remember IDs of template rules - rules will be set |
1178 // visible later |
1178 // visible later |
1179 iVisibleRules.Append( ruleId ); |
1179 iVisibleRules.AppendL( ruleId ); |
1180 |
1180 |
1181 // set value of rule |
1181 // set value of rule |
1182 SetDefaultValue( ruleId, value ); |
1182 SetDefaultValue( ruleId, value ); |
1183 } |
1183 } |
1184 |
1184 |
1275 TPtrC text = reader.ReadTPtrC(); |
1275 TPtrC text = reader.ReadTPtrC(); |
1276 |
1276 |
1277 // add only hidden items to the list |
1277 // add only hidden items to the list |
1278 if ( SearchItemById( value )->IsHidden() ) |
1278 if ( SearchItemById( value )->IsHidden() ) |
1279 { |
1279 { |
1280 indexArray.Append( value ); |
1280 indexArray.AppendL( value ); |
1281 ruleNames->AppendL( text ); |
1281 ruleNames->AppendL( text ); |
1282 } |
1282 } |
1283 } |
1283 } |
1284 |
1284 |
1285 TInt selectedRule( 0 ); |
1285 TInt selectedRule( 0 ); |
1416 |
1416 |
1417 switch ( metaData ) |
1417 switch ( metaData ) |
1418 { |
1418 { |
1419 case ECmArtist: |
1419 case ECmArtist: |
1420 { |
1420 { |
1421 iArtistArray.Append( ruleParam ); |
1421 iArtistArray.AppendL( ruleParam ); |
1422 break; |
1422 break; |
1423 } |
1423 } |
1424 case ECmAlbum: |
1424 case ECmAlbum: |
1425 { |
1425 { |
1426 iAlbumArray.Append( ruleParam ); |
1426 iAlbumArray.AppendL( ruleParam ); |
1427 break; |
1427 break; |
1428 } |
1428 } |
1429 case ECmGenre: |
1429 case ECmGenre: |
1430 { |
1430 { |
1431 iGenreArray.Append( ruleParam ); |
1431 iGenreArray.AppendL( ruleParam ); |
1432 break; |
1432 break; |
1433 } |
1433 } |
1434 case ECmTitle: |
1434 case ECmTitle: |
1435 { |
1435 { |
1436 if ( iMediaType == ECmAudio ) |
1436 if ( iMediaType == ECmAudio ) |
1437 { |
1437 { |
1438 iTrackArray.Append( ruleParam ); |
1438 iTrackArray.AppendL( ruleParam ); |
1439 } |
1439 } |
1440 else // video |
1440 else // video |
1441 { |
1441 { |
1442 iVideoTitleArray.Append( ruleParam ); |
1442 iVideoTitleArray.AppendL( ruleParam ); |
1443 } |
1443 } |
1444 |
1444 |
1445 break; |
1445 break; |
1446 } |
1446 } |
1447 case ECmDuration: |
1447 case ECmDuration: |
1969 TInt count = iVideoTitleArray.Count(); |
1969 TInt count = iVideoTitleArray.Count(); |
1970 if( count > 0 ) |
1970 if( count > 0 ) |
1971 { |
1971 { |
1972 for( TInt i=0; i<count; i++ ) |
1972 for( TInt i=0; i<count; i++ ) |
1973 { |
1973 { |
1974 iTrackArray.Append( iVideoTitleArray[i] ); |
1974 iTrackArray.AppendL( iVideoTitleArray[i] ); |
1975 } |
1975 } |
1976 } |
1976 } |
1977 |
1977 |
1978 } |
1978 } |
1979 iMetadataCollector->GetFilteredMetadataL(); |
1979 iMetadataCollector->GetFilteredMetadataL(); |