Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This is the public client API for the Image Transform Library
23 #ifndef __IMAGETRANSFORM_H__
24 #define __IMAGETRANSFORM_H__
30 class CImageTransformFramework; //fwd ref
31 class CImageTransformPluginExtension;
34 The public API for clients to call the Image Transform (scaling) library.
35 This class provides functions to scale images held in files or descriptors.
40 class CImageTransform : public CBase
44 Flags to control how the image is transformed.
45 The EThumbnail and EIgnoreExifMetadataProcessing are mutually exclusive,
46 and SHOULD NOT be used together. If they are, then EThumbnail is used.
50 /** No flag set. This is the default option*/
52 /** If set, the destination image will always have a thumbnail.
53 If the source already has a thumbnail, then this is the one that will appear
54 in the destination, otherwise one will be generated. */
56 /** If set, then the Exif data is not parsed and ExifMetaData() will always return NULL. If the source image is EXIF,
57 then the EXIF information is copied without modification (i.e. without parsing) to the destination. In cases where
58 the source is JFIF, the destination image is also JFIF.
60 EIgnoreExifMetadataProcessing = 0x02,
62 TOptions should not be set greater than or equal to this value.
68 IMPORT_C static CImageTransform* NewL(RFs& aFs);
69 IMPORT_C ~CImageTransform();
70 IMPORT_C void SetPluginUidL(TUid aPluginUid);
71 IMPORT_C void SetSourceFilenameL(const TDesC& aFilename);
72 IMPORT_C void SetSourceDataL(const TDesC8& aData);
73 IMPORT_C void SetSourceMimeTypeL(const TDesC8& aMIMEType);
74 IMPORT_C void SetSourceImageTypeL(TUid aImageType, TUid aImageSubType = KNullUid);
75 IMPORT_C void SetSourceRect(const TRect& aRect);
76 IMPORT_C void ClearSourceRect();
78 IMPORT_C void SetDestFilenameL(const TDesC& aFilename);
79 IMPORT_C void SetDestDataL(HBufC8*& aData);
80 IMPORT_C void SetDestSizeInPixelsL(const TSize& aDestinationSize, TBool aMaintainAspectRatio = ETrue);
82 IMPORT_C void SetOptionsL(TUint aOptions);
83 IMPORT_C void SetPreserveImageData(TBool aPreserveImageData);
85 IMPORT_C void SetupL();
86 IMPORT_C void Transform(TRequestStatus& aStatus);
87 IMPORT_C void CancelTransform();
88 IMPORT_C void Reset();
89 IMPORT_C CImageTransformPluginExtension* Extension() const;
93 void ConstructL(RFs& aFs);
96 CImageTransformFramework* iBody;
99 #endif // __IMAGETRANSFORM_H__