class CImageTransformPlugin : public CBase |
This is the plugin API for the Image Transform framework Intended for use by plugin writers only.
Public Member Functions | |
---|---|
~CImageTransformPlugin() | |
IMPORT_C CImageTransformPluginExtension * | Extension(TUid, TInt &) |
Protected Member Functions | |
---|---|
CImageTransformPlugin() | |
void | CancelTransform() |
IMPORT_C HBufC8 *& | DestData() |
IMPORT_C const TDesC & | DestFilename() |
IMPORT_C TBool | DestIsData() |
IMPORT_C TBool | DestIsFilename() |
IMPORT_C const TSize & | DestinationSizeInPixels() |
IMPORT_C CImageTransformPluginExtension * | Extension() |
IMPORT_C TBool | MaintainAspectRatio() |
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 &) |
void | Transform(TRequestStatus &) |
Private Member Functions | |
---|---|
IMPORT_C CImageTransformPlugin * | NewL(TUid, CImageTransformFramework &) |
IMPORT_C void | ReservedVirtual1() |
IMPORT_C void | ReservedVirtual2() |
IMPORT_C void | ReservedVirtual3() |
Private Attributes | |
---|---|
CImageTransformFramework * | iFramework |
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
IMPORT_C const TDesC & | DestFilename | ( | ) | const [protected] |
Gets the destination file name
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
IMPORT_C TBool | MaintainAspectRatio | ( | ) | const [protected] |
Return whether the client wishes to maintain the source image's aspect ratio
IMPORT_C CImageTransformPlugin * | NewL | ( | TUid | aImplementationUid, |
CImageTransformFramework & | aFramework | |||
) | [private, static] |
The function NewL constructs a CImageTransformPlugin-derived ECOM plugin.
TUid aImplementationUid | The ECOM implementation UID of the plugin |
CImageTransformFramework & aFramework | A reference to the CImageTransformFramework object that is creating this object |
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.
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
IMPORT_C const TDesC & | SourceFilename | ( | ) | const [protected] |
Gets the source file name
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 | SourceIsFilename | ( | ) | const [protected] |
Return whether the source is a file
IMPORT_C const TDesC8 & | SourceMimeType | ( | ) | const [protected] |
Gets the source image's MIME type
IMPORT_C TBool | SourceRect | ( | TRect & | aRect | ) | const [protected] |
Gets the source image's clipping region
TRect & aRect | The source image's clipping region |
void | Transform | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
Initiate the image transform operation
This is a virtual function that each individual plugin must implement.
TRequestStatus & aStatus | The client's request status. On completion contains an error code. KErrNone if image was transformed successfully, |
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.