#include <icl/imagetransformplugin.h>
Link against: imagetransform.lib
class CImageTransformPlugin : public CBase, public CBase |
Public Member Functions | |
---|---|
~CImageTransformPlugin() | |
virtual IMPORT_C CImageTransformPluginExtension * | Extension(TUid, TInt &) |
Protected Member Functions | |
---|---|
CImageTransformPlugin() | |
pure virtual void | CancelTransform() |
IMPORT_C HBufC8 *& | DestData() |
IMPORT_C const TDesC & | DestFilename() |
IMPORT_C TBool | DestIsData() |
IMPORT_C TBool | DestIsFilename() |
IMPORT_C const TSize & | DestinationSizeInPixels() |
virtual IMPORT_C CImageTransformPluginExtension * | Extension() |
IMPORT_C TBool | MaintainAspectRatio() |
pure virtual void | OpenL() |
IMPORT_C TUint | Options() |
IMPORT_C TBool | PreserveImageData() |
IMPORT_C const TDesC8 & | SourceData() |
IMPORT_C const TDesC & | SourceFilename() |
IMPORT_C const TUid | SourceImageSubType() |
IMPORT_C const TUid | SourceImageType() |
IMPORT_C TBool | SourceIsData() |
IMPORT_C TBool | SourceIsFilename() |
IMPORT_C const TDesC8 & | SourceMimeType() |
IMPORT_C TBool | SourceRect(TRect &) |
pure virtual void | Transform(TRequestStatus &) |
This is the plugin API for the Image Transform framework Intended for use by plugin writers only.
IMPORT_C | ~CImageTransformPlugin | ( | ) |
This is the destructor for the CImageTransformPlugin and is responsible for deallocating all resources.
void | CancelTransform | ( | ) | [protected, pure virtual] |
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.
IMPORT_C HBufC8 *& | DestData | ( | ) | const [protected] |
Gets the destination descriptor
Panic Codes | |
---|---|
EImageWrongType | The destination is not a descriptor |
IMPORT_C const TDesC & | DestFilename | ( | ) | const [protected] |
Gets the destination file name
Panic Codes | |
---|---|
EImageWrongType | The destination is not a file |
IMPORT_C TBool | DestIsData | ( | ) | const [protected] |
Return whether the destination image is to be stored as data
IMPORT_C TBool | DestIsFilename | ( | ) | const [protected] |
Return whether the destination image is to be stored in a file
IMPORT_C const TSize & | DestinationSizeInPixels | ( | ) | const [protected] |
Gets the requested size of the destination image
IMPORT_C CImageTransformPluginExtension * | Extension | ( | ) | const [protected, virtual] |
When a plugin extension has been implemented, this function should be implemented by the plugin writer to enable the client access to the extension
IMPORT_C CImageTransformPluginExtension * | Extension | ( | TUid | aExtensionUid, |
TInt & | aError | |||
) | const [virtual] |
When a plugin extension has been implemented, this function should be implemented by the plugin writer to enable the client access to the extension
Parameters | |
---|---|
aExtensionUid | Uid of the required extension |
aError | System wide error |
IMPORT_C TBool | MaintainAspectRatio | ( | ) | const [protected] |
Return whether the client wishes to maintain the source image's aspect ratio
void | OpenL | ( | ) | [protected, pure virtual] |
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.
Leave Codes | |
---|---|
KErrUnsupported | The plugin decoder doesn not support the request transformation |
IMPORT_C TUint | Options | ( | ) | const [protected] |
Gets the options requested by the client
IMPORT_C TBool | PreserveImageData | ( | ) | const [protected] |
Return whether the client wishes to attempt to maintain the original image data
IMPORT_C const TDesC8 & | SourceData | ( | ) | const [protected] |
Gets the source descriptor
Panic Codes | |
---|---|
EImageWrongType | The source is not a descriptor |
IMPORT_C const TDesC & | SourceFilename | ( | ) | const [protected] |
Gets the source file name
Panic Codes | |
---|---|
EImageWrongType | The source is not a file |
IMPORT_C const TUid | SourceImageSubType | ( | ) | const [protected] |
Gets the source image's subtype
IMPORT_C const TUid | SourceImageType | ( | ) | const [protected] |
Gets the source image's type
IMPORT_C TBool | SourceIsData | ( | ) | const [protected] |
Return whether the source is data
IMPORT_C TBool | SourceIsFilename | ( | ) | const [protected] |
Return whether the source is a file
IMPORT_C const TDesC8 & | SourceMimeType | ( | ) | const [protected] |
Gets the source image's MIME type
void | Transform | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
Initiate the image transform operation
This is a virtual function that each individual plugin must implement.
Parameters | |
---|---|
aStatus | The client's request status. On completion contains an error code. KErrNone if image was transformed successfully, |