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 { |