mpdata/src/mpmpxcollectiondata.cpp
changeset 36 a0afa279b8fe
parent 35 fdb31ab341af
child 51 560ce2306a17
equal deleted inserted replaced
35:fdb31ab341af 36:a0afa279b8fe
   156 }
   156 }
   157 
   157 
   158 /*!
   158 /*!
   159  Returns id of the item specified by \a index
   159  Returns id of the item specified by \a index
   160  */
   160  */
   161 int MpMpxCollectionData::itemId(int index)
   161 int MpMpxCollectionData::itemId( int index )
   162 {
   162 {
   163     return d_ptr->itemId(index);
   163     return d_ptr->itemId(index);
       
   164 }
       
   165 
       
   166 /*!
       
   167  Returns id of the album song specified by \a index
       
   168  */
       
   169 int MpMpxCollectionData::albumSongId( int index )
       
   170 {
       
   171     return d_ptr->albumSongId( index );
   164 }
   172 }
   165 
   173 
   166 /*!
   174 /*!
   167  Removes item specified by \a index, also internally caches the item for drag
   175  Removes item specified by \a index, also internally caches the item for drag
   168  and drop operations.
   176  and drop operations.
   169  
   177  
   170  \sa testCachedItem() insertCachedItem()
   178  \sa testCachedItem() insertCachedItem()
   171  */
   179  */
   172 void MpMpxCollectionData::removeItem(int index)
   180 void MpMpxCollectionData::removeItem( int index )
   173 {
   181 {
   174     d_ptr->removeItem(index);
   182     d_ptr->removeItem( index );
   175 }
   183 }
   176 
   184 
   177 /*!
   185 /*!
   178  Test wether the cached item matches \a itemId.
   186  Test wether the cached item matches \a itemId.
   179  \sa removeItem() insertCachedItem()
   187  \sa removeItem() insertCachedItem()
   275 {
   283 {
   276     d_ptr->setAlbumContent(albumContent);
   284     d_ptr->setAlbumContent(albumContent);
   277 }
   285 }
   278 
   286 
   279 /*!
   287 /*!
   280  Returns the index of the iten with \a ItemUniqueId.
   288  Returns the index of the item with \a ItemUniqueId.
   281  Only supported for ECollectionContextAlbumsMediaWall.
   289  Only supported for ECollectionContextAlbumsMediaWall.
   282 
   290 
   283  \sa setContext()
   291  \sa setContext()
   284  */
   292  */
   285 int MpMpxCollectionData::itemIndex( int itemUniqueId )
   293 int MpMpxCollectionData::itemIndex( int itemUniqueId )
   286 {
   294 {
   287     return d_ptr->itemIndex( itemUniqueId );
   295     return d_ptr->itemIndex( itemUniqueId );
   288 }
   296 }
   289 
   297 
       
   298 /*!
       
   299  Returns the index within the album data for the song with \a songUniqueId.
       
   300 
       
   301  */
       
   302 int MpMpxCollectionData::albumSongIndex( int songUniqueId )
       
   303 {
       
   304     return d_ptr->albumSongIndex( songUniqueId );
       
   305 }
       
   306 
       
   307 //EOF
       
   308 
       
   309