mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h
branchRCL_3
changeset 23 e42293e811d8
parent 0 a2952bb97e68
--- a/mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h	Thu Jul 15 19:11:42 2010 +0300
+++ b/mmappcomponents/collectionhelper/inc/mpxcollectionhelperimp.h	Thu Aug 19 10:24:28 2010 +0300
@@ -19,6 +19,9 @@
 #ifndef CMPXCOLLECTIONHELPERIMP_H
 #define CMPXCOLLECTIONHELPERIMP_H
 
+#include <thumbnailmanager.h>
+#include <thumbnailmanagerobserver.h>
+
 #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;