diff -r a05c44bc3c61 -r d881023c13eb mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp --- a/mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp Fri Apr 16 15:28:14 2010 +0300 +++ b/mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp Mon May 03 12:58:40 2010 +0300 @@ -168,8 +168,14 @@ // generic way of resolving collections aside from using file extension // or UID. // +#ifdef ABSTRACTAUDIOALBUM_INCLUDED + if ( aMedia->ValueTObjectL(KMPXMediaGeneralType) == EMPXItem && + (aMedia->ValueTObjectL(KMPXMediaGeneralCategory) == EMPXPlaylist || + aMedia->ValueTObjectL(KMPXMediaGeneralCategory) == EMPXAbstractAlbum)) +#else if ( aMedia->ValueTObjectL(KMPXMediaGeneralType) == EMPXItem && aMedia->ValueTObjectL(KMPXMediaGeneralCategory) == EMPXPlaylist ) +#endif { aMedia->SetTObjectValueL( KMPXMediaGeneralCollectionId, iMusicCollectionId ); @@ -348,9 +354,13 @@ // TMPXGeneralCategory category = aMedia->ValueTObjectL(KMPXMediaGeneralCategory); - +#ifdef ABSTRACTAUDIOALBUM_INCLUDED + if ((aMedia->ValueTObjectL(KMPXMediaGeneralType) != EMPXItem) || + (category != EMPXSong && category != EMPXPlaylist && category != EMPXAbstractAlbum)) +#else if ((aMedia->ValueTObjectL(KMPXMediaGeneralType) != EMPXItem) || (category != EMPXSong && category != EMPXPlaylist)) +#endif { User::Leave( KErrArgument ); } @@ -466,8 +476,11 @@ { MPX_FUNC("CMPXCollectionHelperImp::GetL"); MPX_DEBUG2("aFile %S", &aFile); - +#ifdef ABSTRACTAUDIOALBUM_INCLUDED + if (aItemCat != EMPXSong && aItemCat != EMPXPlaylist && aItemCat != EMPXAbstractAlbum) +#else if (aItemCat != EMPXSong && aItemCat != EMPXPlaylist) +#endif { User::Leave(KErrArgument); }