musichomescreen_multiview/mcpmusicplayer/src/mcpmusicplayer.cpp
branchRCL_3
changeset 15 a1247965635c
parent 13 c8156a91d13c
child 24 26a1709b9fec
equal deleted inserted replaced
14:c54d95799c80 15:a1247965635c
    31 #include <mpxmessagegeneraldefs.h>
    31 #include <mpxmessagegeneraldefs.h>
    32 #include <mpxcollectionmessage.h>
    32 #include <mpxcollectionmessage.h>
    33 #include <mpxcollectionutility.h>
    33 #include <mpxcollectionutility.h>
    34 #include <mpxcollectionframeworkdefs.h>
    34 #include <mpxcollectionframeworkdefs.h>
    35 #include <AknTaskList.h>
    35 #include <AknTaskList.h>
    36 
    36 #include <mpxharvesterutility.h>
    37 
    37 
    38 
    38 
    39 #include "cpglobals.h" //to be moved to domain API
    39 #include "cpglobals.h" //to be moved to domain API
    40 
    40 
    41 #include "mcpmusicplayer.h" 
    41 #include "mcpmusicplayer.h" 
   169         {
   169         {
   170         delete iArtBitmapMask;
   170         delete iArtBitmapMask;
   171         iArtBitmapMask = NULL;
   171         iArtBitmapMask = NULL;
   172         }
   172         }
   173     iCollectionUtility = MMPXCollectionUtility::NewL( this, KMcModeDefault );
   173     iCollectionUtility = MMPXCollectionUtility::NewL( this, KMcModeDefault );
       
   174     iHarvester = CMPXHarvesterFactory::NewL();
   174     iMusicPlayerOpeningTimer = CPeriodic::NewL( CActive::EPriorityLow );
   175     iMusicPlayerOpeningTimer = CPeriodic::NewL( CActive::EPriorityLow );
   175     MPX_DEBUG1("CMCPMusicPlayer::ConstructL --->");
   176     MPX_DEBUG1("CMCPMusicPlayer::ConstructL --->");
   176     }
   177     }
   177 
   178 
   178 // ---------------------------------------------------------------------------
   179 // ---------------------------------------------------------------------------
   210     delete iOpeningBuffer;
   211     delete iOpeningBuffer;
   211     if ( iCollectionUtility )
   212     if ( iCollectionUtility )
   212     	{
   213     	{
   213     	iCollectionUtility->Close();
   214     	iCollectionUtility->Close();
   214     	}
   215     	}
       
   216     if ( iHarvester )
       
   217         {
       
   218         iHarvester->Close();
       
   219         }
   215     delete iMusicPlayerOpeningTimer;
   220     delete iMusicPlayerOpeningTimer;
   216     MPX_DEBUG1("CMCPMusicPlayer::~CMCPMusicPlayer --->");
   221     MPX_DEBUG1("CMCPMusicPlayer::~CMCPMusicPlayer --->");
   217     }
   222     }
   218 
   223 
   219 
   224