|
||
class CImageDisplayPlugin : public CBase;
This is the plugin API for the Image Display framework Intended for use by plugin writers only.
CBase
-
Base class for all classes to be instantiated on the heap.
CImageDisplayPlugin
- This is the plugin API for the Image Display framework Intended for use by plugi...
Defined in CImageDisplayPlugin
:
AsyncCallbackImageReady(const CFbsBitmap *,TUint,const TRect &,TInt)
A plug-in should use this function to pass information asinchronously to an API ...CImageDisplayPlugin()
Exported default constructorCallbackIsRunning()const
A plug-in may use this function to determine if a previuos callback function to ...CancelCallback()
A plug-in should use this function to cancel callback to a client if it is stil ...DestinationSizeInPixels()const
returns a requested by an API client destination image size DisplayMode()const
returns a requested by an API client display mode for an image being decoded EImgSrcDescriptor
The datasource is a descriptor EImgSrcFileHandle
The datasource is a file handle EImgSrcFileName
The datasource is a file name EImgSrcNotDefined
Undefined. Plug-in won't be given this value EStatusBusy
The next frame is not ready yet, bitmap may contain distorted image EStatusDisplayThisFrameIndefinetely
May be set after image decode completion i.e. when EStatusNoMoreToDecode is set EStatusEraseOutputContents
May be set in case when a plug-in asks to invalidate previous frame contents EStatusFrameReady
The next frame has been already decoded EStatusNoMoreToDecode
A plug-in has nothing more to decode; also must be set also on fatal error conti...EStatusPartialFrame
May be set if the image format supports progressive decoding; indicates that a b...EStatusPaused
Image decoding is paused i.e. call CImageDisplayPlugin::Play() to continue (if E...ExtensionInterface(TUid,TAny *&)
A plug-in that supports an extension interface has to override this function GetBitmap(const CFbsBitmap *&,const CFbsBitmap *&)const
A plug-in that supports image mask getting has to override this function ImageStatus()const
A plug-in that supports source image status checking has to override this functi...MaintainAspectRatio()const
returns ETrue if an API client requested to preserve source image aspect ratio NumFrames(TInt &)const
A plug-in that supports getting of source image number of frames has to override...OpenL()
Initialise the plugin and check the image display settings.Options()const
returns a requested by an API client image options e.g. combination of the TImag...Pause()
Pause image decodingPlay()
Initiate the image display operationRecommendedImageSizes()const
Should return an array of recommended image sizes i.e. sizes which would be proc...ReservedVirtual1()
Reserved. Not for public use ReservedVirtual2()
Reserved. Not for public use ReservedVirtual3()
Reserved. Not for public use ReservedVirtual4()
Reserved. Not for public use SourceData()const
returns an image source descriptor SourceDataId()const
returns requested content data Id that should be used to open content SourceDataIntent()const
returns an intent that is requested by client for opening the image source SourceFileHandle()const
returns an image source file handle SourceFilename()const
returns an image source file name SourceImageSubType()const
returns a global image subtype or KNullUid if not defined SourceImageType()const
returns a global image type SourceMimeType()const
returns an image source MIME type or KNullDesC8 if not defined SourceRect(TRect &)const
returns a requested by an API client source clipping rect SourceType()const
returns an image datasource type StopPlay()
Cancel the image display operation May be called by the framework even when ther...TImageSourceType
Data source type definitions for plug-insTPluginStatus
Defines an ImageDisplay plug-in status flag valuesValidBitmap()const
A plug-in that supports target bitmap status checkig has to override this functi...iImageSizes
An array containing the sizes of the images.~CImageDisplayPlugin()
Virtual destructor. Current implementation will call the REComSession::Destroyed...Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C ~CImageDisplayPlugin();
Virtual destructor. Current implementation will call the REComSession::DestroyedImplementation(TUid)
to finalize destruction of the ECom plugin
protected: virtual void OpenL()=0;
Initialise the plugin and check the image display settings.
This is called by the ImageDisplay framework when the client app calls CImageDisplay::SetupL()
.
The plugin should check the validity of the source image and all other settings set by the client API. If any of these is unsupported then it should leave with KErrArgument
A plugin implementing CImageDisplayPluginExtension to allow extension of the client API should initialise it here.
This is a virtual function that each individual plugin must implement.
|
protected: virtual void Play()=0;
Initiate the image display operation
This is a virtual function that each individual plugin must implement.
protected: virtual void Pause()=0;
Pause image decoding
This is a virtual function that each individual plugin must implement.
protected: virtual void StopPlay()=0;
Cancel the image display operation May be called by the framework even when there is no outstanding request.
This is a virtual function that each individual plugin must implement.
protected: virtual const CImageDisplay::RImageSizeArray& RecommendedImageSizes() const=0;
Should return an array of recommended image sizes i.e. sizes which would be processed faster This is a virtual function that each individual plugin must implement.
|
protected: IMPORT_C TImageSourceType SourceType() const;
returns an image datasource type
|
protected: IMPORT_C const TDesC& SourceFilename() const;
returns an image source file name
|
|
protected: IMPORT_C RFile& SourceFileHandle() const;
returns an image source file handle
|
|
protected: IMPORT_C const TDesC8& SourceData() const;
returns an image source descriptor
|
|
protected: IMPORT_C ContentAccess::TIntent SourceDataIntent() const;
returns an intent that is requested by client for opening the image source
|
protected: IMPORT_C const TDesC& SourceDataId() const;
returns requested content data Id that should be used to open content
|
protected: IMPORT_C const TDesC8& SourceMimeType() const;
returns an image source MIME type or KNullDesC8 if not defined
|
protected: IMPORT_C const TUid SourceImageType() const;
returns a global image type
|
protected: IMPORT_C const TUid SourceImageSubType() const;
returns a global image subtype or KNullUid if not defined
|
protected: IMPORT_C TBool SourceRect(TRect &aRect) const;
returns a requested by an API client source clipping rect
|
|
protected: IMPORT_C const TSize& DestinationSizeInPixels() const;
returns a requested by an API client destination image size
|
protected: IMPORT_C TUint Options() const;
returns a requested by an API client image options e.g. combination of the TImageOptions
|
protected: IMPORT_C TBool MaintainAspectRatio() const;
returns ETrue if an API client requested to preserve source image aspect ratio
|
protected: IMPORT_C TDisplayMode DisplayMode() const;
returns a requested by an API client display mode for an image being decoded
|
protected: IMPORT_C virtual TInt ExtensionInterface(TUid aIFaceUid, TAny *&aIFacePtr);
A plug-in that supports an extension interface has to override this function
|
|
protected: IMPORT_C virtual void GetBitmap(const CFbsBitmap *&aBitmap, const CFbsBitmap *&aMask) const;
A plug-in that supports image mask getting has to override this function
|
protected: IMPORT_C virtual TBool ValidBitmap() const;
A plug-in that supports target bitmap status checkig has to override this function
|
protected: IMPORT_C virtual TUint ImageStatus() const;
A plug-in that supports source image status checking has to override this function
|
protected: IMPORT_C virtual TInt NumFrames(TInt &aNumFrames) const;
A plug-in that supports getting of source image number of frames has to override this function
|
|
protected: IMPORT_C TBool CallbackIsRunning() const;
A plug-in may use this function to determine if a previuos callback function to an API client has been completed
|
protected: IMPORT_C void AsyncCallbackImageReady(const CFbsBitmap *aBitmap, TUint aStatus, const TRect &aUpdatedArea, TInt
aError);
A plug-in should use this function to pass information asinchronously to an API client. This function is asinchronous.
|
protected: IMPORT_C void CancelCallback();
A plug-in should use this function to cancel callback to a client if it is stil pending
TImageSourceType
Data source type definitions for plug-ins
|
TPluginStatus
Defines an ImageDisplay plug-in status flag values
|
protected: CImageDisplay::RImageSizeArray iImageSizes;
An array containing the sizes of the images.