imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailgeneratetask.cpp
equal
deleted
inserted
replaced
377 TRAP(err2, iServer.StoreForPathL(iTargetUri)); |
377 TRAP(err2, iServer.StoreForPathL(iTargetUri)); |
378 } |
378 } |
379 // if trying to access Z drive, don't try to store |
379 // if trying to access Z drive, don't try to store |
380 // don't want to store custom sizes |
380 // don't want to store custom sizes |
381 if( err1 == KErrAccessDenied || err2 == KErrAccessDenied || |
381 if( err1 == KErrAccessDenied || err2 == KErrAccessDenied || |
382 (*iMissingSizes)[ i ].iType == ECustomThumbnailSize ) |
382 (*iMissingSizes)[ i ].iType == ECustomThumbnailSize || |
|
383 (*iMissingSizes)[ i ].iType == EUnknownThumbnailSize ) |
383 { |
384 { |
384 scaleTask->SetDoStore( EFalse ); |
385 scaleTask->SetDoStore( EFalse ); |
|
386 TN_DEBUG2( "CThumbnailGenerateTask(0x%08x)::CreateScaleTasksL() - do not store", this ); |
385 } |
387 } |
386 else |
388 else |
387 { |
389 { |
388 scaleTask->SetDoStore( ETrue ); |
390 scaleTask->SetDoStore( ETrue ); |
389 } |
391 } |
432 TRAP(err2, iServer.StoreForPathL(iTargetUri)); |
434 TRAP(err2, iServer.StoreForPathL(iTargetUri)); |
433 } |
435 } |
434 // if trying to access Z drive, don't try to store |
436 // if trying to access Z drive, don't try to store |
435 // don't want to store custom sizes |
437 // don't want to store custom sizes |
436 if( err1 == KErrAccessDenied || err2 == KErrAccessDenied || |
438 if( err1 == KErrAccessDenied || err2 == KErrAccessDenied || |
437 iThumbnailSize == ECustomThumbnailSize ) |
439 iThumbnailSize == ECustomThumbnailSize || |
|
440 iThumbnailSize == EUnknownThumbnailSize ) |
438 { |
441 { |
439 complTask->SetDoStore( EFalse ); |
442 complTask->SetDoStore( EFalse ); |
|
443 TN_DEBUG2( "CThumbnailGenerateTask(0x%08x)::CreateScaleTasksL() - do not store", this ); |
440 } |
444 } |
441 else |
445 else |
442 { |
446 { |
443 complTask->SetDoStore( ETrue ); |
447 complTask->SetDoStore( ETrue ); |
444 } |
448 } |