equal
deleted
inserted
replaced
1002 |
1002 |
1003 TInt c( aArray->Count() ); |
1003 TInt c( aArray->Count() ); |
1004 for( TInt i=0; i<c; ++i ) |
1004 for( TInt i=0; i<c; ++i ) |
1005 { |
1005 { |
1006 TMPXItemId id = aArray->AtL(i)->ValueTObjectL<TMPXItemId>( KMPXMediaGeneralId ); |
1006 TMPXItemId id = aArray->AtL(i)->ValueTObjectL<TMPXItemId>( KMPXMediaGeneralId ); |
1007 ids.Append( id ); |
1007 ids.AppendL( id ); |
1008 } |
1008 } |
1009 |
1009 |
1010 // Rest are all blank items |
1010 // Rest are all blank items |
1011 CMPXMedia* entry = CMPXMedia::NewL(); |
1011 CMPXMedia* entry = CMPXMedia::NewL(); |
1012 CleanupStack::PushL(entry); |
1012 CleanupStack::PushL(entry); |
1017 TInt count = iDbHandler->NumberOfItemsL(EMPXSong); |
1017 TInt count = iDbHandler->NumberOfItemsL(EMPXSong); |
1018 count-=c; |
1018 count-=c; |
1019 for( TInt i=0; i<count; ++i ) |
1019 for( TInt i=0; i<count; ++i ) |
1020 { |
1020 { |
1021 aArray->AppendL( *entry ); |
1021 aArray->AppendL( *entry ); |
1022 ids.Append( KMPXInvalidItemId ); |
1022 ids.AppendL( KMPXInvalidItemId ); |
1023 } |
1023 } |
1024 CleanupStack::PopAndDestroy( entry ); |
1024 CleanupStack::PopAndDestroy( entry ); |
1025 |
1025 |
1026 // Set the "Supportes incremental Command" flag |
1026 // Set the "Supportes incremental Command" flag |
1027 // |
1027 // |
1686 if (levels == 3) |
1686 if (levels == 3) |
1687 { |
1687 { |
1688 // return all songs of a particular artist (currently highlighted) |
1688 // return all songs of a particular artist (currently highlighted) |
1689 path->Set(EMPXOpenGroupOrPlaylist); |
1689 path->Set(EMPXOpenGroupOrPlaylist); |
1690 ids.Reset(); |
1690 ids.Reset(); |
1691 ids.Append(aPath.Id(2)); |
1691 ids.AppendL(aPath.Id(2)); |
1692 path->AppendL(ids.Array()); |
1692 path->AppendL(ids.Array()); |
1693 path->SelectL(aPath.Id(2)); |
1693 path->SelectL(aPath.Id(2)); |
1694 path->Set(EMPXOpenPlaylistOnly); |
1694 path->Set(EMPXOpenPlaylistOnly); |
1695 |
1695 |
1696 // Opens all songs of an artist and create the corresponding |
1696 // Opens all songs of an artist and create the corresponding |
4330 void CMPXDbPlugin::SetAttributesL( |
4330 void CMPXDbPlugin::SetAttributesL( |
4331 const CMPXCollectionPath& aPath, |
4331 const CMPXCollectionPath& aPath, |
4332 RArray<TMPXAttribute>& aAttrs, |
4332 RArray<TMPXAttribute>& aAttrs, |
4333 RArray<TInt>& aSupportedIds ) |
4333 RArray<TInt>& aSupportedIds ) |
4334 { |
4334 { |
|
4335 CleanupClosePushL(aAttrs); |
|
4336 CleanupClosePushL(aSupportedIds); |
|
4337 |
4335 aAttrs.AppendL( TMPXAttribute(KMPXMediaIdGeneral, |
4338 aAttrs.AppendL( TMPXAttribute(KMPXMediaIdGeneral, |
4336 EMPXMediaGeneralId | EMPXMediaGeneralType | EMPXMediaGeneralCategory | |
4339 EMPXMediaGeneralId | EMPXMediaGeneralType | EMPXMediaGeneralCategory | |
4337 EMPXMediaGeneralTitle | EMPXMediaGeneralFlags | EMPXMediaGeneralUri) ); |
4340 EMPXMediaGeneralTitle | EMPXMediaGeneralFlags | EMPXMediaGeneralUri) ); |
4338 |
4341 |
4339 aSupportedIds.AppendL(KMPXMediaIdContainer); |
4342 aSupportedIds.AppendL(KMPXMediaIdContainer); |
4426 { |
4429 { |
4427 aAttrs.AppendL( TMPXAttribute(KMPXMediaIdMusic, |
4430 aAttrs.AppendL( TMPXAttribute(KMPXMediaIdMusic, |
4428 EMPXMediaMusicArtist | EMPXMediaMusicAlbum | EMPXMediaMusicAlbumArtFileName ) ); |
4431 EMPXMediaMusicArtist | EMPXMediaMusicAlbum | EMPXMediaMusicAlbumArtFileName ) ); |
4429 aSupportedIds.AppendL( KMPXMediaIdMusic ); |
4432 aSupportedIds.AppendL( KMPXMediaIdMusic ); |
4430 } |
4433 } |
|
4434 CleanupStack::Pop(); |
|
4435 CleanupStack::Pop(); |
4431 } |
4436 } |
4432 |
4437 |
4433 #ifdef _DEBUG |
4438 #ifdef _DEBUG |
4434 // ---------------------------------------------------------------------------- |
4439 // ---------------------------------------------------------------------------- |
4435 // Print change events |
4440 // Print change events |