--- a/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontainerallsongs.cpp Thu May 27 12:49:57 2010 +0300
+++ b/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontainerallsongs.cpp Fri Jun 11 13:36:36 2010 +0300
@@ -60,6 +60,30 @@
}
/*!
+ Slot to be called data model has new data.
+ Two cases:
+ 1) User deleted a song.
+ 2) New song found during 'Refresh' operation.
+ */
+void MpCollectionContainerAllSongs::dataReloaded()
+{
+ TX_ENTRY
+ MpCollectionListContainer::dataReloaded();
+ if ( mViewMode != MpCommon::FetchView ) {
+ int count = mCollectionData->count();
+ QString details = hbTrId("txt_mus_subhead_ln_songs", count);
+ mInfoBar->setHeading(details);
+ }
+ if ( mCollectionData->count() > 1 ) {
+ emit shuffleEnabled(true);
+ }
+ else {
+ emit shuffleEnabled(false);
+ }
+ TX_EXIT
+}
+
+/*!
Sets up the container by organizing widgets according to its layout.
\reimp