mpengine/src/mpmpxcollectionframeworkwrapper.cpp
changeset 29 8192e5b5c935
parent 22 ecf06a08d4d9
child 32 c163ef0b758d
--- a/mpengine/src/mpmpxcollectionframeworkwrapper.cpp	Fri May 14 15:49:53 2010 +0300
+++ b/mpengine/src/mpmpxcollectionframeworkwrapper.cpp	Thu May 27 12:49:57 2010 +0300
@@ -43,6 +43,13 @@
  */
 
 /*!
+    \fn void deleteStarted();
+
+    This signal is emitted when song delete operation is started
+
+ */
+
+/*!
     \fn void songsDeleted( bool success )
 
     This signal is emitted when song delete operation is completed, it 
@@ -65,16 +72,22 @@
 
  */
  
- 
+/*!
+    \fn void containerContentsChanged()
+
+    This signal is emitted when items are removed or inserted on the current 
+    container.
+
+ */
  
 /*!
  Constructs the utility wrapper.
  */
-MpMpxCollectionFrameworkWrapper::MpMpxCollectionFrameworkWrapper( MpCommon::MpViewMode viewMode, TUid hostUid, QObject *parent )
+MpMpxCollectionFrameworkWrapper::MpMpxCollectionFrameworkWrapper( TUid hostUid, QObject *parent )
     : QObject( parent )
 {
     d_ptr = new MpMpxCollectionFrameworkWrapperPrivate( this );
-    d_ptr->init( viewMode, hostUid );
+    d_ptr->init( hostUid );
 }
 
 /*!
@@ -207,6 +220,22 @@
 }
 
 /*!
+ Finds all songs beloging to the album specified by the \a index.
+ */
+void MpMpxCollectionFrameworkWrapper::findAlbumSongs( int index )
+{
+    d_ptr->findAlbumSongs(index);
+}
+
+/*!
+ Plays album with \a albumIndex starting with the songs with \a songIndex.
+*/
+void MpMpxCollectionFrameworkWrapper::playAlbumSongs( int albumIndex, int songIndex, MpMpxCollectionData* collectionData  )
+{
+     d_ptr->playAlbumSongs( albumIndex, songIndex, collectionData );
+}
+
+/*!
  Returns pointer to MpMpxCollectionData, which is the collection data.
  */
 MpMpxCollectionData *MpMpxCollectionFrameworkWrapper::collectionData()
@@ -234,4 +263,28 @@
     d_ptr->reorderPlaylist( playlistId, songId, originalOrdinal, newOrdinal );
 }
 
+/*!
+  Called to set the repeat feature to \a enable
+ */
+void MpMpxCollectionFrameworkWrapper::setRepeatFeatureEnabled( bool enable ) 
+{
+    d_ptr->setRepeatFeatureEnabled( enable );
+}
 
+/*!
+ Called to set the shuffle feature to \a enable
+ */
+void MpMpxCollectionFrameworkWrapper::setShuffleFeatureEnabled( bool enable )
+{
+    d_ptr->setShuffleFeatureEnabled( enable );
+}
+
+/*!
+ Cancels CollectionUiHelper request.
+ */
+void MpMpxCollectionFrameworkWrapper::cancelRequest()
+{
+    d_ptr->cancel();
+}
+
+//EOF