diff -r 91d5ad76f5c6 -r 16db3449d7ba mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp --- a/mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp Wed Sep 15 12:45:22 2010 +0300 +++ b/mmappcomponents/collectionhelper/src/mpxcollectionhelperimp.cpp Wed Oct 13 15:06:09 2010 +0300 @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -46,7 +45,6 @@ // --------------------------------------------------------------------------- // CMPXCollectionHelperImp::CMPXCollectionHelperImp() - : iTNManager(NULL) { } @@ -61,7 +59,7 @@ iCollectionUtil = MMPXCollectionUtility::NewL(); iMediator = CMPXCollectionMediator::NewL( iCollectionUtil->Collection(), this ); - + RArray ary; CleanupClosePushL( ary ); ary.AppendL( TUid::Uid(EMPXCollectionPluginMusic) ); @@ -113,8 +111,6 @@ iCollectionUtil->Close(); } delete iMediator; - - delete iTNManager; } @@ -420,28 +416,11 @@ RArray attributes; CleanupClosePushL( attributes ); attributes.AppendL(KMPXMediaGeneralId); - attributes.AppendL(KMPXMediaMusicAlbumArtFileName); CMPXMedia* media = GetL(aOldUri, attributes.Array(), aItemCat); CleanupStack::PopAndDestroy(&attributes); CleanupStack::PushL(media); - const TDesC& fileName(media->ValueText(KMPXMediaMusicAlbumArtFileName)); - - // the songs have embedded albumart. - if(fileName.CompareF(aOldUri) == 0) - { - // change the Art filename to the new Uri - media->SetTextValueL(KMPXMediaMusicAlbumArtFileName, aNewUri); - - // Rename the thumbnail - TRAPD(err, RenameThumbnailL(aOldUri, aNewUri)); - if(KErrNone != err) - { - MPX_DEBUG2("Thumbnail renames failed. Err: %d", err); - } - } - // change file path to the new file path media->SetTextValueL(KMPXMediaGeneralUri, aNewUri); @@ -756,41 +735,4 @@ delete this; } -// --------------------------------------------------------------------------- -// Rename the thumbnail through TNM -// --------------------------------------------------------------------------- -// -void CMPXCollectionHelperImp::RenameThumbnailL( const TDesC& aOldUri, - const TDesC& aNewUri ) - { - MPX_FUNC("CMPXCollectionHelperImp::RenameThumbnailL"); - - // Create Thumbnail Manager instance when use first time. - if(NULL == iTNManager) - { - iTNManager = CThumbnailManager::NewL( *this ); - } - - // Rename thumbnail - iTNManager->RenameThumbnailsL(aOldUri, aNewUri, 0); - } - -// --------------------------------------------------------------------------- -// CMPXDbAbstractAlbum::ThumbnailReady -// Callback but not used here -// --------------------------------------------------------------------------- -void CMPXCollectionHelperImp::ThumbnailPreviewReady( - MThumbnailData& /*aThumbnail*/, TThumbnailRequestId /*aId*/ ) - { - } - - -// --------------------------------------------------------------------------- -// CMPXDbAbstractAlbum::ThumbnailReady -// Callback but not used here -// --------------------------------------------------------------------------- -void CMPXCollectionHelperImp::ThumbnailReady( TInt /*aError*/, - MThumbnailData& /*aThumbnail*/, TThumbnailRequestId /*aId*/ ) - { - } // End of file