musichomescreen_multiview/mcpmusicplayer/src/mcpmusicplayer.cpp
branchRCL_3
changeset 21 a1247965635c
parent 17 c8156a91d13c
child 50 26a1709b9fec
--- a/musichomescreen_multiview/mcpmusicplayer/src/mcpmusicplayer.cpp	Wed Apr 14 15:54:18 2010 +0300
+++ b/musichomescreen_multiview/mcpmusicplayer/src/mcpmusicplayer.cpp	Tue Apr 27 16:34:37 2010 +0300
@@ -33,7 +33,7 @@
 #include <mpxcollectionutility.h>
 #include <mpxcollectionframeworkdefs.h>
 #include <AknTaskList.h>
-
+#include <mpxharvesterutility.h>
 
 
 #include "cpglobals.h" //to be moved to domain API
@@ -171,6 +171,7 @@
         iArtBitmapMask = NULL;
         }
     iCollectionUtility = MMPXCollectionUtility::NewL( this, KMcModeDefault );
+    iHarvester = CMPXHarvesterFactory::NewL();
     iMusicPlayerOpeningTimer = CPeriodic::NewL( CActive::EPriorityLow );
     MPX_DEBUG1("CMCPMusicPlayer::ConstructL --->");
     }
@@ -212,6 +213,10 @@
     	{
     	iCollectionUtility->Close();
     	}
+    if ( iHarvester )
+        {
+        iHarvester->Close();
+        }
     delete iMusicPlayerOpeningTimer;
     MPX_DEBUG1("CMCPMusicPlayer::~CMCPMusicPlayer --->");
     }