mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h
branchRCL_3
changeset 23 e42293e811d8
parent 0 a2952bb97e68
equal deleted inserted replaced
22:b034b1c214c2 23:e42293e811d8
    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 
    22 #include "mpxcollectionhelper.h"
    25 #include "mpxcollectionhelper.h"
    23 #include "mpxharvesterutilityobserver.h"
    26 #include "mpxharvesterutilityobserver.h"
    24 #include "mpxmediatorobserver.h"
    27 #include "mpxmediatorobserver.h"
    25 
    28 
    26 // FOWARD DECLARATION
    29 // FOWARD DECLARATION
    39  *  @since S60 3.1
    42  *  @since S60 3.1
    40  */
    43  */
    41 NONSHARABLE_CLASS( CMPXCollectionHelperImp ): public CBase,
    44 NONSHARABLE_CLASS( CMPXCollectionHelperImp ): public CBase,
    42                                               public MMPXCollectionHelper,
    45                                               public MMPXCollectionHelper,
    43                                               public MMPXHarvesterUtilityObserver,
    46                                               public MMPXHarvesterUtilityObserver,
    44                                               public MMPXMediatorObserver
    47                                               public MMPXMediatorObserver,
       
    48                                               public MThumbnailManagerObserver
    45     {
    49     {
    46 public:
    50 public:
    47 
    51 
    48     /**
    52     /**
    49     * Two phased constructor
    53     * Two phased constructor
   693     /**
   697     /**
   694     * From MMPXHarvesterUtilityObserver
   698     * From MMPXHarvesterUtilityObserver
   695     */
   699     */
   696     void HandleFileGetMediaCompletedL( CMPXMedia* aMedia, TInt aErr );
   700     void HandleFileGetMediaCompletedL( CMPXMedia* aMedia, TInt aErr );
   697 
   701 
       
   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 );
   698 private:
   714 private:
   699 
   715 
   700     /**
   716     /**
   701     * Adds the file to the collection, constructs the collection path
   717     * Adds the file to the collection, constructs the collection path
   702     * @param aMedia media item to add to the collection
   718     * @param aMedia media item to add to the collection
   703     */
   719     */
   704     void DoAddToCollectionL( CMPXMedia* aMedia );
   720     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 );
   705 
   728 
   706 protected:
   729 protected:
   707 
   730 
   708     /**
   731     /**
   709     * Private Constructor
   732     * Private Constructor
   718 protected: // data
   741 protected: // data
   719 
   742 
   720     MMPXHarvesterUtility*   iHvsUtility;
   743     MMPXHarvesterUtility*   iHvsUtility;
   721     MMPXCollectionUtility*  iCollectionUtil;
   744     MMPXCollectionUtility*  iCollectionUtil;
   722     CMPXCollectionMediator* iMediator;
   745     CMPXCollectionMediator* iMediator;
   723 
   746     
       
   747     CThumbnailManager*      iTNManager; // owned
   724     MMPXCollectionHelperObserver* iObserver;  // not owned
   748     MMPXCollectionHelperObserver* iObserver;  // not owned
   725     TUid                          iMusicCollectionId;
   749     TUid                          iMusicCollectionId;
   726     TBool                         iInitialized;
   750     TBool                         iInitialized;
   727     };
   751     };
   728 
   752