mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbautoplaylist.cpp
branchRCL_3
changeset 13 c8156a91d13c
parent 0 ff3acec5bc43
--- a/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbautoplaylist.cpp	Mon Mar 15 12:40:11 2010 +0200
+++ b/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbautoplaylist.cpp	Wed Mar 31 21:26:33 2010 +0300
@@ -80,6 +80,11 @@
     delete iRecentlyPlayedPlaylist;
     delete iMostPlayedPlaylist;
     delete iRecentlyAddedPlaylist;
+    
+    delete iTitleRecentlyPlayed;
+    delete iTitleMostPlayed;
+    delete iTitleRecentlyAdded;
+
     }
 
 // ----------------------------------------------------------------------------
@@ -106,6 +111,10 @@
     iMostPlayedPlaylist = aResource.ReadHBufCL(R_MC_MOST_PLAYED_PLAYLIST);
     iRecentlyAddedPlaylist = aResource.ReadHBufCL(R_MC_RECENTLY_ADDED_PLAYLIST);
 
+    iTitleRecentlyPlayed = aResource.ReadHBufCL(R_MC_TITLE_RECENTLY_PLAYED );
+    iTitleMostPlayed = aResource.ReadHBufCL(R_MC_TITLE_MOST_PLAYED );
+    iTitleRecentlyAdded = aResource.ReadHBufCL(R_MC_TITLE_RECENTLY_DOWNLOADED );
+    
     iRecentlyPlayedPlaylistId = KMPXRecentlyPlayedPlaylistId;
     iMostPlayedPlaylistId = KMPXMostPlayedPlaylistId;
     iRecentlyAddedPlaylistId = KMPXRecentlyAddedPlaylistId;
@@ -160,15 +169,15 @@
     TPtrC ptr;
     if (aPlaylistId == iRecentlyPlayedPlaylistId)
         {
-        ptr.Set(*iRecentlyPlayedPlaylist);
+        ptr.Set(*iTitleRecentlyPlayed);
         }
     else if (aPlaylistId == iMostPlayedPlaylistId)
         {
-        ptr.Set(*iMostPlayedPlaylist);
+        ptr.Set(*iTitleMostPlayed);
         }
     else if (aPlaylistId == iRecentlyAddedPlaylistId)
         {
-        ptr.Set(*iRecentlyAddedPlaylist);
+        ptr.Set(*iTitleRecentlyAdded);
         }
     else
         {