mpdata/src/mpmpxcollectiondata.cpp
changeset 32 c163ef0b758d
parent 29 8192e5b5c935
child 51 560ce2306a17
--- a/mpdata/src/mpmpxcollectiondata.cpp	Thu May 27 12:49:57 2010 +0300
+++ b/mpdata/src/mpmpxcollectiondata.cpp	Fri Jun 11 13:36:36 2010 +0300
@@ -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
+
+