diff -r fdb31ab341af -r a0afa279b8fe mpdata/src/mpmpxcollectiondata.cpp --- a/mpdata/src/mpmpxcollectiondata.cpp Fri May 14 18:54:37 2010 -0500 +++ b/mpdata/src/mpmpxcollectiondata.cpp Fri May 28 19:46:01 2010 -0500 @@ -158,20 +158,28 @@ /*! Returns id of the item specified by \a index */ -int MpMpxCollectionData::itemId(int index) +int MpMpxCollectionData::itemId( int index ) { return d_ptr->itemId(index); } /*! + Returns id of the album song specified by \a index + */ +int MpMpxCollectionData::albumSongId( int index ) +{ + return d_ptr->albumSongId( index ); +} + +/*! Removes item specified by \a index, also internally caches the item for drag and drop operations. \sa testCachedItem() insertCachedItem() */ -void MpMpxCollectionData::removeItem(int index) +void MpMpxCollectionData::removeItem( int index ) { - d_ptr->removeItem(index); + d_ptr->removeItem( index ); } /*! @@ -277,7 +285,7 @@ } /*! - Returns the index of the iten with \a ItemUniqueId. + Returns the index of the item with \a ItemUniqueId. Only supported for ECollectionContextAlbumsMediaWall. \sa setContext() @@ -287,3 +295,15 @@ return d_ptr->itemIndex( itemUniqueId ); } +/*! + Returns the index within the album data for the song with \a songUniqueId. + + */ +int MpMpxCollectionData::albumSongIndex( int songUniqueId ) +{ + return d_ptr->albumSongIndex( songUniqueId ); +} + +//EOF + +