CSvgImageElementImpl::CSvgImageLoaderUtil Class Reference
class CSvgImageElementImpl::CSvgImageLoaderUtil : public CActive
|
Helper class to load images asynchronously. To load an image: 1. Instantiate
CSvgImageLoaderUtil
with NewL/NewLC, passing a
MSVGImageLoadingObserver
, which implements the 'ImageLoadingCompleted' method, and a file name. This method is called by the
CSvgImageLoaderUtil
object when loading is complete. The error code passed-in will indicate a successful load or not. 2. Set the output mode with 'SetDisplayMode' the default is EColor64K, see TDisplayMode for more options. 3. Call one of the 'RequestForImageL' method.
Inherits from
-
CSvgImageElementImpl::CSvgImageLoaderUtil
Constructor & Destructor Documentation
CSvgImageLoaderUtil()
CSvgImageLoaderUtil
|
(
|
)
|
[private]
|
Member Functions Documentation
ConstructL(MSVGImageLoadingObserver *, RFile &, TBool)
Construct this object with leavable calls.
Parameters
MSVGImageLoadingObserver
* aObserver
|
: callback object when image loading completes.
|
RFile
& aFileHandle
|
: file handle of image to load.
|
TBool
aSyncLoading
|
: Perform Synchronous loading(ETrue) or not
|
ConstructL(MSVGImageLoadingObserver *, const TDesC8 &, TBool)
Phase two of construction.
Parameters
MSVGImageLoadingObserver
* aObserver
|
: callback object when image loading completes.
|
const
TDesC8
& aEncodedData
|
: encode 8-bit data buffer
|
TBool
aSyncLoading
|
: Perform Synchronous loading(ETrue) or not
|
DoCancel()
void
|
DoCancel
|
(
|
)
|
[virtual]
|
From
CActive
Handles cancelling of asynchronous requests
GetFrameInfo()
Returns the FrameInfo of Image. Function is called once the Decoder is created.
-
Since
-
3.2
IsSynchronousLoading()
TBool
|
IsSynchronousLoading
|
(
|
)
|
|
Return wether image decoding is synchronous or asynchronous.
-
Since
-
3.1
NewL(MSVGImageLoadingObserver *, RFile &, TBool)
Parameters
MSVGImageLoadingObserver
* aObserver
|
: callback object when image loading completes.
|
RFile
& aFileHandle
|
: file handle of image to load.
|
TBool
aSyncLoading
|
: Perform Synchronous loading(ETrue) or not
|
NewL(MSVGImageLoadingObserver *, const TDesC8 &, TBool)
Parameters
MSVGImageLoadingObserver
* aObserver
|
: callback object when image loading completes.
|
const
TDesC8
& aEncodedData
|
: encode 8-bit data buffer
|
TBool
aSyncLoading
|
: Perform Synchronous loading(ETrue) or not
|
RequestForImageL(CFbsBitmap &, CFbsBitmap &, TBool, TFrameInfo)
Request for the image and size the bitmap to the size of the image.
Parameters
CFbsBitmap
& aBitmap
|
: bitmap to store the pixels
|
CFbsBitmap
& aMask
|
: bitmap to store the Mask pixels
|
TBool
aHasAlpha
|
: Alpha value indicator, Used to create Mask
|
TFrameInfo
aFrameInfo
|
: TFrameInfo structure
|
RunError(TInt)
From
CActive
Called when asynchronous request is completed
RunL()
From
CActive
Called when asynchronous request is completed
SetDisplayMode(TDisplayMode)
Set the output mode, the default value is EColor64K.
Member Data Documentation
CActiveSchedulerWait * iActiveSchedulerWait
TDisplayMode
iDisplayMode
HBufC8 * iImageByteData
HBufC8
*
|
iImageByteData
|
[private]
|
CImageDecoder * iImageDecoder
TBool
iIsSyncLoading
TBool
|
iIsSyncLoading
|
[private]
|
MSVGImageLoadingObserver * iObserver
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.