imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailmanagerimpl.cpp
changeset 30 b67379558a75
parent 29 4bdfb6b5c9b4
child 39 1a8af2cd6858
equal deleted inserted replaced
29:4bdfb6b5c9b4 30:b67379558a75
    67 	    TN_DEBUG2( "CThumbnailManagerImpl::~CThumbnailManagerImpl() - update sessionCount == %d to TLS", sessionCount );
    67 	    TN_DEBUG2( "CThumbnailManagerImpl::~CThumbnailManagerImpl() - update sessionCount == %d to TLS", sessionCount );
    68         Dll::SetTls( (TAny*)sessionCount );
    68         Dll::SetTls( (TAny*)sessionCount );
    69         }
    69         }
    70 
    70 
    71     delete iMimeTypeList;
    71     delete iMimeTypeList;
       
    72     iMimeTypeList = NULL;
    72 	
    73 	
    73 	TN_DEBUG1( "CThumbnailManagerImpl::~CThumbnailManagerImpl() - end" );
    74 	TN_DEBUG1( "CThumbnailManagerImpl::~CThumbnailManagerImpl() - end" );
    74     }
    75     }
    75 
    76 
    76 
    77 
   304     CThumbnailRequestActive* getThumbnailActive = CThumbnailRequestActive::NewL
   305     CThumbnailRequestActive* getThumbnailActive = CThumbnailRequestActive::NewL
   305         ( iFs, iSession, iObserver, iRequestObserver, iRequestId, priority, iRequestQueue );
   306         ( iFs, iSession, iObserver, iRequestObserver, iRequestId, priority, iRequestQueue );
   306     CleanupStack::PushL( getThumbnailActive );
   307     CleanupStack::PushL( getThumbnailActive );
   307     
   308     
   308     if (aObjectSource.Uri().Length() &&
   309     if (aObjectSource.Uri().Length() &&
   309         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)
   310         {
   319         {
   311         // from bitmap
   320         // from bitmap
   312         getThumbnailActive->SetThumbnailL( aObjectSource.GetBitmapOwnership(),
   321         getThumbnailActive->SetThumbnailL( aObjectSource.GetBitmapOwnership(),
   313                      aObjectSource.Id(), KBmpMime, iFlags, iQualityPreference,
   322             aObjectSource.Id(), KBmpMime, iFlags, iQualityPreference, iSize, iDisplayMode,
   314                      iSize, iDisplayMode, priority, aClientData, ETrue,
   323             priority, aClientData, ETrue, aObjectSource.Uri(), iThumbnailSize, ETrue);
   315                      aObjectSource.Uri(), iThumbnailSize, ETrue);
       
   316         } 
   324         } 
   317     else if (aObjectSource.Uri().Length() &&
   325     else if (aObjectSource.Uri().Length() &&
   318              aObjectSource.Buffer() != NULL &&
   326              aObjectSource.Buffer() != NULL &&
   319              aObjectSource.MimeType() != KNullDesC8)
   327              aObjectSource.MimeType() != KNullDesC8)
   320         {
   328         {