equal
deleted
inserted
replaced
619 void CThumbnailServer::DeleteThumbnailsL( const TDesC& aPath ) |
619 void CThumbnailServer::DeleteThumbnailsL( const TDesC& aPath ) |
620 { |
620 { |
621 TN_DEBUG2( "CThumbnailServer::DeleteThumbnailsL(%S)", &aPath); |
621 TN_DEBUG2( "CThumbnailServer::DeleteThumbnailsL(%S)", &aPath); |
622 |
622 |
623 StoreForPathL( aPath )->DeleteThumbnailsL( aPath ); |
623 StoreForPathL( aPath )->DeleteThumbnailsL( aPath ); |
|
624 |
624 if( iFetchedChecker ) |
625 if( iFetchedChecker ) |
625 { |
626 { |
626 iFetchedChecker->SetFetchResult( aPath, KErrNone ); |
627 iFetchedChecker->SetFetchResult( aPath, KErrNone ); |
627 } |
628 } |
628 } |
629 } |
934 |
935 |
935 // --------------------------------------------------------------------------- |
936 // --------------------------------------------------------------------------- |
936 // CThumbnailStore::PersistentSizeL() |
937 // CThumbnailStore::PersistentSizeL() |
937 // --------------------------------------------------------------------------- |
938 // --------------------------------------------------------------------------- |
938 // |
939 // |
939 TThumbnailPersistentSize & CThumbnailServer::PersistentSizeL( TThumbnailSize |
940 TThumbnailPersistentSize & CThumbnailServer::PersistentSizeL( TThumbnailSize aThumbnailSize ) |
940 aThumbnailSize ) |
|
941 { |
941 { |
942 if ( !iCenrep ) |
942 if ( !iCenrep ) |
943 { |
943 { |
944 iCenrep = CThumbnailCenRep::NewL(); |
944 iCenrep = CThumbnailCenRep::NewL(); |
945 } |
945 } |
946 |
946 |
947 return iCenrep->PersistentSizeL( aThumbnailSize ); |
947 return iCenrep->PersistentSizeL( aThumbnailSize ); |
948 |
|
949 } |
948 } |
950 |
949 |
951 // ----------------------------------------------------------------------------- |
950 // ----------------------------------------------------------------------------- |
952 // Open store for each mounted drive |
951 // Open store for each mounted drive |
953 // ----------------------------------------------------------------------------- |
952 // ----------------------------------------------------------------------------- |
1198 TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified YES"); |
1197 TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified YES"); |
1199 |
1198 |
1200 // delete old thumbs |
1199 // delete old thumbs |
1201 store->DeleteThumbnailsL(aPath, ETrue); |
1200 store->DeleteThumbnailsL(aPath, ETrue); |
1202 |
1201 |
|
1202 if( iFetchedChecker ) |
|
1203 { |
|
1204 iFetchedChecker->SetFetchResult( aPath, KErrNone ); |
|
1205 } |
|
1206 |
1203 // need to create new thumbs |
1207 // need to create new thumbs |
1204 } |
1208 } |
1205 else |
1209 else |
1206 { |
1210 { |
1207 TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified NO"); |
1211 TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified NO"); |
1224 void CThumbnailServer::RenameThumbnailsL( const TDesC& aCurrentPath, const TDesC& aNewPath ) |
1228 void CThumbnailServer::RenameThumbnailsL( const TDesC& aCurrentPath, const TDesC& aNewPath ) |
1225 { |
1229 { |
1226 TN_DEBUG2( "CThumbnailServer::RenameThumbnailsL(%S)", &aCurrentPath); |
1230 TN_DEBUG2( "CThumbnailServer::RenameThumbnailsL(%S)", &aCurrentPath); |
1227 |
1231 |
1228 StoreForPathL( aCurrentPath )->RenameThumbnailsL( aCurrentPath, aNewPath ); |
1232 StoreForPathL( aCurrentPath )->RenameThumbnailsL( aCurrentPath, aNewPath ); |
|
1233 |
|
1234 if( iFetchedChecker ) |
|
1235 { |
|
1236 iFetchedChecker->SetFetchResult( aNewPath, iFetchedChecker->LastFetchResult(aCurrentPath) ); |
|
1237 iFetchedChecker->SetFetchResult( aCurrentPath, KErrNone ); |
|
1238 } |
1229 } |
1239 } |
1230 |
1240 |
1231 // ----------------------------------------------------------------------------- |
1241 // ----------------------------------------------------------------------------- |
1232 // CThumbnailServer::MimeTypeFromFileExt() |
1242 // CThumbnailServer::MimeTypeFromFileExt() |
1233 // ----------------------------------------------------------------------------- |
1243 // ----------------------------------------------------------------------------- |