imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailmanagerimpl.cpp
branchRCL_3
changeset 20 2b4b06654caa
parent 19 f759b6186ab5
child 21 6257223ede8a
equal deleted inserted replaced
19:f759b6186ab5 20:2b4b06654caa
   305     CThumbnailRequestActive* getThumbnailActive = CThumbnailRequestActive::NewL
   305     CThumbnailRequestActive* getThumbnailActive = CThumbnailRequestActive::NewL
   306         ( iFs, iSession, iObserver, iRequestObserver, iRequestId, priority, iRequestQueue );
   306         ( iFs, iSession, iObserver, iRequestObserver, iRequestId, priority, iRequestQueue );
   307     CleanupStack::PushL( getThumbnailActive );
   307     CleanupStack::PushL( getThumbnailActive );
   308     
   308     
   309     if (aObjectSource.Uri().Length() &&
   309     if (aObjectSource.Uri().Length() &&
   310         aObjectSource.Bitmap() != NULL)
   310         aObjectSource.TargetUri().Length())
       
   311         {
       
   312         // from path
       
   313         getThumbnailActive->SetThumbnailL( aObjectSource.Uri(),
       
   314             aObjectSource.MimeType(), iFlags, iQualityPreference, iSize, iDisplayMode, 
       
   315             priority, aClientData, ETrue, aObjectSource.TargetUri(), iThumbnailSize, ETrue);
       
   316         } 
       
   317     else if (aObjectSource.Uri().Length() &&
       
   318              aObjectSource.Bitmap() != NULL)
   311         {
   319         {
   312         // from bitmap
   320         // from bitmap
   313         getThumbnailActive->SetThumbnailL( aObjectSource.GetBitmapOwnership(),
   321         getThumbnailActive->SetThumbnailL( aObjectSource.GetBitmapOwnership(),
   314                      aObjectSource.Id(), KBmpMime, iFlags, iQualityPreference,
   322             aObjectSource.Id(), KBmpMime, iFlags, iQualityPreference, iSize, iDisplayMode,
   315                      iSize, iDisplayMode, priority, aClientData, ETrue,
   323             priority, aClientData, ETrue, aObjectSource.Uri(), iThumbnailSize, ETrue);
   316                      aObjectSource.Uri(), iThumbnailSize, ETrue);
       
   317         } 
   324         } 
   318     else if (aObjectSource.Uri().Length() &&
   325     else if (aObjectSource.Uri().Length() &&
   319              aObjectSource.Buffer() != NULL &&
   326              aObjectSource.Buffer() != NULL &&
   320              aObjectSource.MimeType() != KNullDesC8)
   327              aObjectSource.MimeType() != KNullDesC8)
   321         {
   328         {