diff -r d141fc1ad77b -r e61a04404bdf mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h --- a/mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h Tue Jul 06 14:48:59 2010 +0300 +++ b/mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h Wed Aug 18 10:16:02 2010 +0300 @@ -19,6 +19,9 @@ #ifndef CMPXCOLLECTIONHELPERIMP_H #define CMPXCOLLECTIONHELPERIMP_H +#include +#include + #include "mpxcollectionhelper.h" #include "mpxharvesterutilityobserver.h" #include "mpxmediatorobserver.h" @@ -41,7 +44,8 @@ NONSHARABLE_CLASS( CMPXCollectionHelperImp ): public CBase, public MMPXCollectionHelper, public MMPXHarvesterUtilityObserver, - public MMPXMediatorObserver + public MMPXMediatorObserver, + public MThumbnailManagerObserver { public: @@ -695,6 +699,18 @@ */ void HandleFileGetMediaCompletedL( CMPXMedia* aMedia, TInt aErr ); +public: + /** + * From MThumbnailManagerObserver + */ + void ThumbnailPreviewReady( MThumbnailData& aThumbnail, + TThumbnailRequestId aId ); + /** + * From MThumbnailManagerObserver + */ + void ThumbnailReady( TInt aError, + MThumbnailData& aThumbnail, + TThumbnailRequestId aId ); private: /** @@ -702,6 +718,13 @@ * @param aMedia media item to add to the collection */ void DoAddToCollectionL( CMPXMedia* aMedia ); + + /** + * Rename the thumbnail through thumbnail manager + * @param aOldUri exiting uri of the song + * @param aNewUri new uri of the song + */ + void RenameThumbnailL( const TDesC& aOldUri, const TDesC& aNewUri ); protected: @@ -720,7 +743,8 @@ MMPXHarvesterUtility* iHvsUtility; MMPXCollectionUtility* iCollectionUtil; CMPXCollectionMediator* iMediator; - + + CThumbnailManager* iTNManager; // owned MMPXCollectionHelperObserver* iObserver; // not owned TUid iMusicCollectionId; TBool iInitialized;