mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h
branchRCL_3
changeset 67 16db3449d7ba
parent 53 e42293e811d8
equal deleted inserted replaced
63:91d5ad76f5c6 67:16db3449d7ba
    17 
    17 
    18 
    18 
    19 #ifndef CMPXCOLLECTIONHELPERIMP_H
    19 #ifndef CMPXCOLLECTIONHELPERIMP_H
    20 #define CMPXCOLLECTIONHELPERIMP_H
    20 #define CMPXCOLLECTIONHELPERIMP_H
    21 
    21 
    22 #include <thumbnailmanager.h>
       
    23 #include <thumbnailmanagerobserver.h>
       
    24 
       
    25 #include "mpxcollectionhelper.h"
    22 #include "mpxcollectionhelper.h"
    26 #include "mpxharvesterutilityobserver.h"
    23 #include "mpxharvesterutilityobserver.h"
    27 #include "mpxmediatorobserver.h"
    24 #include "mpxmediatorobserver.h"
    28 
    25 
    29 // FOWARD DECLARATION
    26 // FOWARD DECLARATION
    42  *  @since S60 3.1
    39  *  @since S60 3.1
    43  */
    40  */
    44 NONSHARABLE_CLASS( CMPXCollectionHelperImp ): public CBase,
    41 NONSHARABLE_CLASS( CMPXCollectionHelperImp ): public CBase,
    45                                               public MMPXCollectionHelper,
    42                                               public MMPXCollectionHelper,
    46                                               public MMPXHarvesterUtilityObserver,
    43                                               public MMPXHarvesterUtilityObserver,
    47                                               public MMPXMediatorObserver,
    44                                               public MMPXMediatorObserver
    48                                               public MThumbnailManagerObserver
       
    49     {
    45     {
    50 public:
    46 public:
    51 
    47 
    52     /**
    48     /**
    53     * Two phased constructor
    49     * Two phased constructor
   697     /**
   693     /**
   698     * From MMPXHarvesterUtilityObserver
   694     * From MMPXHarvesterUtilityObserver
   699     */
   695     */
   700     void HandleFileGetMediaCompletedL( CMPXMedia* aMedia, TInt aErr );
   696     void HandleFileGetMediaCompletedL( CMPXMedia* aMedia, TInt aErr );
   701 
   697 
   702 public:
       
   703     /**
       
   704     * From MThumbnailManagerObserver
       
   705     */
       
   706     void ThumbnailPreviewReady( MThumbnailData& aThumbnail, 
       
   707                                 TThumbnailRequestId aId );
       
   708     /**
       
   709     * From MThumbnailManagerObserver
       
   710     */
       
   711     void ThumbnailReady( TInt aError,
       
   712                          MThumbnailData& aThumbnail, 
       
   713                          TThumbnailRequestId aId );
       
   714 private:
   698 private:
   715 
   699 
   716     /**
   700     /**
   717     * Adds the file to the collection, constructs the collection path
   701     * Adds the file to the collection, constructs the collection path
   718     * @param aMedia media item to add to the collection
   702     * @param aMedia media item to add to the collection
   719     */
   703     */
   720     void DoAddToCollectionL( CMPXMedia* aMedia );
   704     void DoAddToCollectionL( CMPXMedia* aMedia );
   721     
       
   722     /**
       
   723     * Rename the thumbnail through thumbnail manager
       
   724     * @param aOldUri exiting uri of the song
       
   725     * @param aNewUri new uri of the song
       
   726     */
       
   727     void RenameThumbnailL( const TDesC& aOldUri, const TDesC& aNewUri );
       
   728 
   705 
   729 protected:
   706 protected:
   730 
   707 
   731     /**
   708     /**
   732     * Private Constructor
   709     * Private Constructor
   741 protected: // data
   718 protected: // data
   742 
   719 
   743     MMPXHarvesterUtility*   iHvsUtility;
   720     MMPXHarvesterUtility*   iHvsUtility;
   744     MMPXCollectionUtility*  iCollectionUtil;
   721     MMPXCollectionUtility*  iCollectionUtil;
   745     CMPXCollectionMediator* iMediator;
   722     CMPXCollectionMediator* iMediator;
   746     
   723 
   747     CThumbnailManager*      iTNManager; // owned
       
   748     MMPXCollectionHelperObserver* iObserver;  // not owned
   724     MMPXCollectionHelperObserver* iObserver;  // not owned
   749     TUid                          iMusicCollectionId;
   725     TUid                          iMusicCollectionId;
   750     TBool                         iInitialized;
   726     TBool                         iInitialized;
   751     };
   727     };
   752 
   728