upnpframework/upnpmusicadapter/src/upnpalbumservices.cpp
changeset 32 3785f754ee62
parent 0 7f85d04be362
child 38 5360b7ddc251
equal deleted inserted replaced
27:03808033c9a2 32:3785f754ee62
   130     CleanupStack::PushL( path );
   130     CleanupStack::PushL( path );
   131     path->SelectAllL();
   131     path->SelectAllL();
   132 
   132 
   133     RArray<TMPXAttribute> attrs;
   133     RArray<TMPXAttribute> attrs;
   134     CleanupClosePushL( attrs );
   134     CleanupClosePushL( attrs );
   135     attrs.Append( KMPXMediaGeneralId );
   135     attrs.AppendL( KMPXMediaGeneralId );
   136     attrs.Append( KMPXMediaGeneralTitle );
   136     attrs.AppendL( KMPXMediaGeneralTitle );
   137 
   137 
   138     // Get album list from collection. Callback to HandleCollectionMediaL
   138     // Get album list from collection. Callback to HandleCollectionMediaL
   139     iCollectionUtility->Collection().MediaL( *path, attrs.Array() );
   139     iCollectionUtility->Collection().MediaL( *path, attrs.Array() );
   140     CleanupStack::PopAndDestroy( &attrs );
   140     CleanupStack::PopAndDestroy( &attrs );
   141     CleanupStack::PopAndDestroy( path );
   141     CleanupStack::PopAndDestroy( path );
   366     CleanupStack::PushL( mediaPath );
   366     CleanupStack::PushL( mediaPath );
   367     mediaPath->SelectAllL();
   367     mediaPath->SelectAllL();
   368 
   368 
   369     RArray<TMPXAttribute> attrs;
   369     RArray<TMPXAttribute> attrs;
   370     CleanupClosePushL( attrs );
   370     CleanupClosePushL( attrs );
   371     attrs.Append( KMPXMediaGeneralId );
   371     attrs.AppendL( KMPXMediaGeneralId );
   372     attrs.Append( KMPXMediaGeneralTitle );
   372     attrs.AppendL( KMPXMediaGeneralTitle );
   373 
   373 
   374     // Get album data. Callback to HandleCollectionMediaL
   374     // Get album data. Callback to HandleCollectionMediaL
   375     iCollectionUtility->Collection().MediaL( *mediaPath, attrs.Array() );
   375     iCollectionUtility->Collection().MediaL( *mediaPath, attrs.Array() );
   376     CleanupStack::PopAndDestroy( &attrs );
   376     CleanupStack::PopAndDestroy( &attrs );
   377     CleanupStack::PopAndDestroy( mediaPath );
   377     CleanupStack::PopAndDestroy( mediaPath );