mpengine/src/mpmpxcollectionframeworkwrapper.cpp
changeset 29 8192e5b5c935
parent 22 ecf06a08d4d9
child 32 c163ef0b758d
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
    41     indicates the operation \a success .
    41     indicates the operation \a success .
    42 
    42 
    43  */
    43  */
    44 
    44 
    45 /*!
    45 /*!
       
    46     \fn void deleteStarted();
       
    47 
       
    48     This signal is emitted when song delete operation is started
       
    49 
       
    50  */
       
    51 
       
    52 /*!
    46     \fn void songsDeleted( bool success )
    53     \fn void songsDeleted( bool success )
    47 
    54 
    48     This signal is emitted when song delete operation is completed, it 
    55     This signal is emitted when song delete operation is completed, it 
    49     indicates the operation \a success .
    56     indicates the operation \a success .
    50 
    57 
    63 
    70 
    64     This signal is emitted when an isolated collection is opened on \a context
    71     This signal is emitted when an isolated collection is opened on \a context
    65 
    72 
    66  */
    73  */
    67  
    74  
       
    75 /*!
       
    76     \fn void containerContentsChanged()
       
    77 
       
    78     This signal is emitted when items are removed or inserted on the current 
       
    79     container.
       
    80 
       
    81  */
    68  
    82  
    69  
       
    70 /*!
    83 /*!
    71  Constructs the utility wrapper.
    84  Constructs the utility wrapper.
    72  */
    85  */
    73 MpMpxCollectionFrameworkWrapper::MpMpxCollectionFrameworkWrapper( MpCommon::MpViewMode viewMode, TUid hostUid, QObject *parent )
    86 MpMpxCollectionFrameworkWrapper::MpMpxCollectionFrameworkWrapper( TUid hostUid, QObject *parent )
    74     : QObject( parent )
    87     : QObject( parent )
    75 {
    88 {
    76     d_ptr = new MpMpxCollectionFrameworkWrapperPrivate( this );
    89     d_ptr = new MpMpxCollectionFrameworkWrapperPrivate( this );
    77     d_ptr->init( viewMode, hostUid );
    90     d_ptr->init( hostUid );
    78 }
    91 }
    79 
    92 
    80 /*!
    93 /*!
    81  Destructs the utility wrapper.
    94  Destructs the utility wrapper.
    82  */
    95  */
   202  Releases the resources used for the isolated collection.
   215  Releases the resources used for the isolated collection.
   203  */
   216  */
   204 void MpMpxCollectionFrameworkWrapper::releaseIsolatedCollection()
   217 void MpMpxCollectionFrameworkWrapper::releaseIsolatedCollection()
   205 {
   218 {
   206     d_ptr->releaseIsolatedCollection();
   219     d_ptr->releaseIsolatedCollection();
       
   220 }
       
   221 
       
   222 /*!
       
   223  Finds all songs beloging to the album specified by the \a index.
       
   224  */
       
   225 void MpMpxCollectionFrameworkWrapper::findAlbumSongs( int index )
       
   226 {
       
   227     d_ptr->findAlbumSongs(index);
       
   228 }
       
   229 
       
   230 /*!
       
   231  Plays album with \a albumIndex starting with the songs with \a songIndex.
       
   232 */
       
   233 void MpMpxCollectionFrameworkWrapper::playAlbumSongs( int albumIndex, int songIndex, MpMpxCollectionData* collectionData  )
       
   234 {
       
   235      d_ptr->playAlbumSongs( albumIndex, songIndex, collectionData );
   207 }
   236 }
   208 
   237 
   209 /*!
   238 /*!
   210  Returns pointer to MpMpxCollectionData, which is the collection data.
   239  Returns pointer to MpMpxCollectionData, which is the collection data.
   211  */
   240  */
   232 void MpMpxCollectionFrameworkWrapper::reorderPlaylist( int playlistId, int songId, int originalOrdinal, int newOrdinal )
   261 void MpMpxCollectionFrameworkWrapper::reorderPlaylist( int playlistId, int songId, int originalOrdinal, int newOrdinal )
   233 {
   262 {
   234     d_ptr->reorderPlaylist( playlistId, songId, originalOrdinal, newOrdinal );
   263     d_ptr->reorderPlaylist( playlistId, songId, originalOrdinal, newOrdinal );
   235 }
   264 }
   236 
   265 
   237 
   266 /*!
       
   267   Called to set the repeat feature to \a enable
       
   268  */
       
   269 void MpMpxCollectionFrameworkWrapper::setRepeatFeatureEnabled( bool enable ) 
       
   270 {
       
   271     d_ptr->setRepeatFeatureEnabled( enable );
       
   272 }
       
   273 
       
   274 /*!
       
   275  Called to set the shuffle feature to \a enable
       
   276  */
       
   277 void MpMpxCollectionFrameworkWrapper::setShuffleFeatureEnabled( bool enable )
       
   278 {
       
   279     d_ptr->setShuffleFeatureEnabled( enable );
       
   280 }
       
   281 
       
   282 /*!
       
   283  Cancels CollectionUiHelper request.
       
   284  */
       
   285 void MpMpxCollectionFrameworkWrapper::cancelRequest()
       
   286 {
       
   287     d_ptr->cancel();
       
   288 }
       
   289 
       
   290 //EOF