class MThumbnailManagerObserver |
Thumbnail observer.
Callback interface for getting information about completed thumbnail operations. This should be implemented by the client using the API.
void CMyThumbnailControl::ThumbnailReady( TInt aError, MThumbnailData& aThumbnail, TThumbnailRequestId aId ) { // This function must not leave. delete iBitmap; iBitmap = NULL; if ( !aError ) { // Claim ownership of the bitmap instance for later use iBitmap = aThumbnail.DetachBitmap(); // We can now use iBitmap in our Draw() method DrawDeferred(); } else { // An error occurred while getting the thumbnail. // Perhaps we should show a broken image icon to the user. } }
Public Member Functions | |
---|---|
void | ThumbnailPreviewReady(MThumbnailData &, TThumbnailRequestId) |
void | ThumbnailReady(TInt, MThumbnailData &, TThumbnailRequestId) |
void | ThumbnailPreviewReady | ( | MThumbnailData & | aThumbnail, |
TThumbnailRequestId | aId | |||
) | [pure virtual] |
Preview thumbnail generation or loading is complete.
This callback is not called unless EOptimizeForQualityWithPreview flag was specified.
an error occurred while processing the preview thumbnail
a suitable existing thumbnail was not found
a high quality thumbnail is already available
The MThumbnailData instance is only valid for the duration of this call. It may not be stored for later use. If the client should want to use the bitmap data later, it can claim ownership of the CFbsBitmap object by calling DetachBitmap().
MThumbnailData & aThumbnail | An object representing the resulting thumbnail. |
TThumbnailRequestId aId | Request ID for the operation |
void | ThumbnailReady | ( | TInt | aError, |
MThumbnailData & | aThumbnail, | |||
TThumbnailRequestId | aId | |||
) | [pure virtual] |
Final thumbnail bitmap generation or loading is complete.
The MThumbnailData instance is only valid for the duration of this call. It may not be stored for later use. If the client should want to use the bitmap data later, it can claim ownership of the CFbsBitmap object by calling DetachBitmap().
TInt aError | Error code. |
MThumbnailData & aThumbnail | An object representing the resulting thumbnail. |
TThumbnailRequestId aId | Request ID for the operation. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.