Location:
ImageTransformPlugin.h
Link against: imagetransform.lib
class CImageTransformPlugin : public CBase;
This is the plugin API for the Image Transform framework Intended for use by plugin writers only.
CBase
- Base class for all classes to be instantiated on the heap
CImageTransformPlugin
- This is the plugin API for the Image Transform framework Intended for use by plugin writers only
Defined in CImageTransformPlugin
:
CImageTransformPlugin()
, CancelTransform()
, DestData()
, DestFilename()
, DestIsData()
, DestIsFilename()
, DestinationSizeInPixels()
, Extension()
, MaintainAspectRatio()
, OpenL()
, Options()
, PreserveImageData()
, ReservedVirtual1()
, ReservedVirtual2()
, ReservedVirtual3()
, ReservedVirtual4()
, SourceData()
, SourceFilename()
, SourceImageSubType()
, SourceImageType()
, SourceIsData()
, SourceIsFilename()
, SourceMimeType()
, SourceRect()
, Transform()
, ~CImageTransformPlugin()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
IMPORT_C ~CImageTransformPlugin();
This is the destructor for the CImageTransformPlugin and is responsible for deallocating all resources.
protected: virtual void OpenL()=0;
Initialise the plugin and check the image transform settings.
This is called by the ImageTransform framework when the client app calls CImageTransform::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 KErrNotSupported.
A plugin implementing CImageTransformPluginExtension
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 Transform(TRequestStatus &aStatus)=0;
Initiate the image transform operation
This is a virtual function that each individual plugin must implement.
|
protected: virtual void CancelTransform()=0;
Cancel the image transform 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: IMPORT_C TBool SourceIsFilename() const;
Return whether the source is a file
|
protected: IMPORT_C TBool SourceIsData() const;
Return whether the source is data
|
protected: IMPORT_C const TDesC &SourceFilename() const;
Gets the source file name
|
|
protected: IMPORT_C const TDesC8 &SourceData() const;
Gets the source descriptor
|
|
protected: IMPORT_C const TDesC8 &SourceMimeType() const;
Gets the source image's MIME type
|
protected: IMPORT_C const TUid SourceImageType() const;
Gets the source image's type
|
protected: IMPORT_C const TUid SourceImageSubType() const;
Gets the source image's subtype
|
protected: IMPORT_C TBool SourceRect(TRect &aRect) const;
Gets the source image's clipping region
|
|
protected: IMPORT_C TBool DestIsFilename() const;
Return whether the destination image is to be stored in a file
|
protected: IMPORT_C TBool DestIsData() const;
Return whether the destination image is to be stored as data
|
protected: IMPORT_C const TDesC &DestFilename() const;
Gets the destination file name
|
|
protected: IMPORT_C HBufC8 *&DestData() const;
Gets the destination descriptor
|
|
protected: IMPORT_C const TSize &DestinationSizeInPixels() const;
Gets the requested size of the destination image
|
protected: IMPORT_C TUint Options() const;
Gets the options requested by the client
|
protected: IMPORT_C TBool MaintainAspectRatio() const;
Return whether the client wishes to maintain the source image's aspect ratio
|
protected: IMPORT_C TBool PreserveImageData() const;
Return whether the client wishes to attempt to maintain the original image data
|
protected: virtual IMPORT_C CImageTransformPluginExtension *Extension() const;
When a plugin extension has been implemented, this function should be implemented by the plugin writer to enable the client access to the extension
|
private: virtual IMPORT_C void ReservedVirtual4();
Reserved for future-proofing