162 |
162 |
163 /*! |
163 /*! |
164 \fn void isolatedCollectionOpened( MpMpxCollectionData* collectionData ) |
164 \fn void isolatedCollectionOpened( MpMpxCollectionData* collectionData ) |
165 |
165 |
166 This signal is emitted when an isolated collection is opened on \a context |
166 This signal is emitted when an isolated collection is opened on \a context |
|
167 |
|
168 */ |
|
169 |
|
170 /*! |
|
171 \fn void restorePathFailed() |
|
172 |
|
173 This signal is emitted when an the previous path cannot be restored |
|
174 (i.e. no music in collection). |
167 |
175 |
168 */ |
176 */ |
169 |
177 |
170 /*! |
178 /*! |
171 \fn void containerContentsChanged() |
179 \fn void containerContentsChanged() |
264 connect( mMpxCollectionWrapper, SIGNAL( deleteStarted( TCollectionContext, int ) ), |
272 connect( mMpxCollectionWrapper, SIGNAL( deleteStarted( TCollectionContext, int ) ), |
265 this, SLOT( handleDeleteStarted( TCollectionContext, int ) ) ); |
273 this, SLOT( handleDeleteStarted( TCollectionContext, int ) ) ); |
266 connect( mMpxCollectionWrapper, SIGNAL( songsDeleted( bool ) ), |
274 connect( mMpxCollectionWrapper, SIGNAL( songsDeleted( bool ) ), |
267 this, SLOT( handleDeleteEnded( bool ) ), |
275 this, SLOT( handleDeleteEnded( bool ) ), |
268 Qt::QueuedConnection ); |
276 Qt::QueuedConnection ); |
|
277 connect( mMpxCollectionWrapper, SIGNAL( restorePathFailed() ), |
|
278 this, SIGNAL( restorePathFailed() ), |
|
279 Qt::QueuedConnection ); |
269 } |
280 } |
270 |
281 |
271 if( mode == StandAlone ){ |
282 if( mode == StandAlone ){ |
272 // Equalizer wrapper , this needs to be created before playback wrapper. |
283 // Equalizer wrapper , this needs to be created before playback wrapper. |
273 mEqualizerWrapper = new MpEqualizerFrameworkWrapper(); |
284 mEqualizerWrapper = new MpEqualizerFrameworkWrapper(); |
968 { |
979 { |
969 return mEqualizerWrapper->presetNames(); |
980 return mEqualizerWrapper->presetNames(); |
970 } |
981 } |
971 |
982 |
972 /*! |
983 /*! |
|
984 Save data needed to later restore state (activity) |
|
985 */ |
|
986 void MpEngine::saveActivityData( QByteArray &data ) |
|
987 { |
|
988 mMpxCollectionWrapper->savePath( data ); |
|
989 } |
|
990 |
|
991 /*! |
|
992 Restore state from activity data |
|
993 */ |
|
994 void MpEngine::loadActivityData( const QByteArray &data ) |
|
995 { |
|
996 mMpxCollectionWrapper->restorePath( data ); |
|
997 } |
|
998 |
|
999 /*! |
973 Slot to handle equalizer ready signal from equalizer wrapper. |
1000 Slot to handle equalizer ready signal from equalizer wrapper. |
974 */ |
1001 */ |
975 void MpEngine::handleEqualizerReady() |
1002 void MpEngine::handleEqualizerReady() |
976 { |
1003 { |
977 TX_ENTRY |
1004 TX_ENTRY |