CImageTransformFramework Class Reference

class CImageTransformFramework : public CBase

Inherits from

Private Member Functions
CImageTransformFramework ( CImageTransform &, RFs &)
~CImageTransformFramework ()
void CancelTransform ()
void ClearFlag ( TInt )
void ClearSourceRect ()
CImageTransformPlugin * DataNewL (const TDesC8 &, const TUid , const TUid , const TUid )
void DeletePlugin ()
HBufC8 *& DestData ()
const TDesC & DestFilename ()
TBool DestIsData ()
TBool DestIsFilename ()
const TSize & DestinationSizeInPixels ()
CImageTransformPluginExtension * Extension ()
CImageTransformPluginExtension * Extension ( TUid , TInt &)
CImageTransformPlugin * FileNewImplL ( RFs &, const TDesC &, const TUid , const TUid , const TUid )
CImageTransformPlugin * FindTransformerNewL (const RImplInfoPtrArray &)
TBool FlagSet ( TInt )
void ImageTypeGetTransformerListL ( RImplInfoPtrArray &, const TDesC8 &, const TUid , const TUid , const TUid )
TBool MaintainAspectRatio ()
void MimeTypeGetTransformerListL ( RImplInfoPtrArray &, const TDesC8 &)
TUint NeededPluginFlags ()
CImageTransformPlugin * NewImplL (const TDesC8 &)
CImageTransformFramework * NewL ( CImageTransform &, RFs &)
TUint Options ()
TBool PreserveImageData ()
void Reset ()
void SetDestDataL ( HBufC8 *&)
void SetDestFilenameL (const TDesC &)
void SetDestSizeInPixelsL (const TSize &, TBool )
void SetFlag ( TInt )
void SetOptionsL ( TUint )
void SetPluginInstanceUidL ( TUid )
void SetPluginUidL ( TUid )
void SetPreserveImageData ( TBool )
void SetSourceDataL (const TDesC8 &)
void SetSourceFilenameL (const TDesC &)
void SetSourceImageTypeL ( TUid , TUid )
void SetSourceMimeTypeL (const TDesC8 &)
void SetSourceRect (const TRect &)
void SetTransformationsL ( TUint )
void SetupL ()
const TDesC8 & SourceData ()
const TDesC & SourceFilename ()
const TUid SourceImageSubType ()
const TUid SourceImageType ()
TBool SourceIsData ()
TBool SourceIsFilename ()
const TDesC8 & SourceMimeType ()
TBool SourceRect ( TRect &)
void SuffixTypeGetTransformerListL ( RImplInfoPtrArray &, const TDesC &)
void Transform ( TRequestStatus &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enum TImageTransformInternalFlags { EFlagMaintainAspectRatio  = 0x00000001, EFlagPreserveImageData  = 0x00000002, EFlagSourceRectSet  = 0x00000004 }
Private Attributes
TImageParameterData iDestImage
TSize iDestinationSize
TInt iFlags
RFs & iFs
CImageTransform & iHandle
TUint iOptions
CImageTransformPlugin * iPlugin
TUid iPluginInstanceUid
TUid iPluginUid
TImageParameterData iSourceImage
TRect iSourceRect
TUint iTransformations

Constructor & Destructor Documentation

CImageTransformFramework(CImageTransform &, RFs &)

CImageTransformFramework ( CImageTransform & aHandle,
RFs & aFs
) [private]

Parameters

CImageTransform & aHandle
RFs & aFs

~CImageTransformFramework()

~CImageTransformFramework ( ) [private]

Member Functions Documentation

CancelTransform()

void CancelTransform ( ) [private]

ClearFlag(TInt)

void ClearFlag ( TInt aFlag ) [private, inline]

Parameters

TInt aFlag

ClearSourceRect()

void ClearSourceRect ( ) [private]

DataNewL(const TDesC8 &, const TUid, const TUid, const TUid)

CImageTransformPlugin * DataNewL ( const TDesC8 & aSourceData,
const TUid aImageType,
const TUid aImageSubType,
const TUid aPluginUid
) [private]

Parameters

const TDesC8 & aSourceData
const TUid aImageType
const TUid aImageSubType
const TUid aPluginUid

DeletePlugin()

void DeletePlugin ( ) [private]

DestData()

HBufC8 *& DestData ( ) const [private]

DestFilename()

const TDesC & DestFilename ( ) const [private]

DestIsData()

TBool DestIsData ( ) const [private]

DestIsFilename()

TBool DestIsFilename ( ) const [private]

DestinationSizeInPixels()

const TSize & DestinationSizeInPixels ( ) const [private]

Extension()

CImageTransformPluginExtension * Extension ( ) const [private]

Gets a pointer to a plugin extension

panic
EIllegalCallSequence No plugin loaded.

Extension(TUid, TInt &)

CImageTransformPluginExtension * Extension ( TUid aExtensionUid,
TInt & aError
) const [private]

Gets a pointer to a plugin extension

panic
EIllegalCallSequence No plugin loaded.

Parameters

TUid aExtensionUid Uid of the required extension
TInt & aError System wide error

FileNewImplL(RFs &, const TDesC &, const TUid, const TUid, const TUid)

CImageTransformPlugin * FileNewImplL ( RFs & aFs,
const TDesC & aSourceFilename,
const TUid aImageType,
const TUid aImageSubType,
const TUid aPluginUid
) [private]

Parameters

RFs & aFs
const TDesC & aSourceFilename
const TUid aImageType
const TUid aImageSubType
const TUid aPluginUid

FindTransformerNewL(const RImplInfoPtrArray &)

CImageTransformPlugin * FindTransformerNewL ( const RImplInfoPtrArray & aTransformerList ) [private]

Parameters

const RImplInfoPtrArray & aTransformerList

FlagSet(TInt)

TBool FlagSet ( TInt aFlag ) const [private, inline]

Parameters

TInt aFlag

ImageTypeGetTransformerListL(RImplInfoPtrArray &, const TDesC8 &, const TUid, const TUid, const TUid)

void ImageTypeGetTransformerListL ( RImplInfoPtrArray & aTransformerList,
const TDesC8 & aImageHeader,
const TUid aImageType,
const TUid aImageSubType,
const TUid aPluginUid
) [private]

Parameters

RImplInfoPtrArray & aTransformerList
const TDesC8 & aImageHeader
const TUid aImageType
const TUid aImageSubType
const TUid aPluginUid

MaintainAspectRatio()

TBool MaintainAspectRatio ( ) const [private]

MimeTypeGetTransformerListL(RImplInfoPtrArray &, const TDesC8 &)

void MimeTypeGetTransformerListL ( RImplInfoPtrArray & aTransformerList,
const TDesC8 & aMIMEType
) [private]

Parameters

RImplInfoPtrArray & aTransformerList
const TDesC8 & aMIMEType

NeededPluginFlags()

TUint NeededPluginFlags ( ) [private]

Gets the flags needed in the plugin

NewImplL(const TDesC8 &)

CImageTransformPlugin * NewImplL ( const TDesC8 & aMIMEType ) [private]

Parameters

const TDesC8 & aMIMEType

NewL(CImageTransform &, RFs &)

CImageTransformFramework * NewL ( CImageTransform & aHandle,
RFs & aFs
) [private, static]

Parameters

CImageTransform & aHandle
RFs & aFs

Options()

TUint Options ( ) const [private]

PreserveImageData()

TBool PreserveImageData ( ) const [private]

Reset()

void Reset ( ) [private]

SetDestDataL(HBufC8 *&)

void SetDestDataL ( HBufC8 *& aDestinationData ) [private]

Parameters

HBufC8 *& aDestinationData

SetDestFilenameL(const TDesC &)

void SetDestFilenameL ( const TDesC & aFilename ) [private]

Parameters

const TDesC & aFilename

SetDestSizeInPixelsL(const TSize &, TBool)

void SetDestSizeInPixelsL ( const TSize & aDestinationSize,
TBool aMaintainAspectRatio
) [private]

Parameters

const TSize & aDestinationSize
TBool aMaintainAspectRatio

SetFlag(TInt)

void SetFlag ( TInt aFlag ) [private, inline]

Parameters

TInt aFlag

SetOptionsL(TUint)

void SetOptionsL ( TUint aOptions ) [private]

Parameters

TUint aOptions

SetPluginInstanceUidL(TUid)

void SetPluginInstanceUidL ( TUid aInstanceUid ) [private]

Parameters

TUid aInstanceUid

SetPluginUidL(TUid)

void SetPluginUidL ( TUid aPluginUid ) [private]

Parameters

TUid aPluginUid

SetPreserveImageData(TBool)

void SetPreserveImageData ( TBool aPreserveImageData ) [private]

Parameters

TBool aPreserveImageData

SetSourceDataL(const TDesC8 &)

void SetSourceDataL ( const TDesC8 & aData ) [private]

Parameters

const TDesC8 & aData

SetSourceFilenameL(const TDesC &)

void SetSourceFilenameL ( const TDesC & aFilename ) [private]

Parameters

const TDesC & aFilename

SetSourceImageTypeL(TUid, TUid)

void SetSourceImageTypeL ( TUid aImageType,
TUid aImageSubType
) [private]

Parameters

TUid aImageType
TUid aImageSubType

SetSourceMimeTypeL(const TDesC8 &)

void SetSourceMimeTypeL ( const TDesC8 & aMIMEType ) [private]

Parameters

const TDesC8 & aMIMEType

SetSourceRect(const TRect &)

void SetSourceRect ( const TRect & aRect ) [private]

Parameters

const TRect & aRect

SetTransformationsL(TUint)

void SetTransformationsL ( TUint aTransformations ) [private]

Parameters

TUint aTransformations

SetupL()

void SetupL ( ) [private]

SourceData()

const TDesC8 & SourceData ( ) const [private]

SourceFilename()

const TDesC & SourceFilename ( ) const [private]

SourceImageSubType()

const TUid SourceImageSubType ( ) const [private]

SourceImageType()

const TUid SourceImageType ( ) const [private]

SourceIsData()

TBool SourceIsData ( ) const [private]

SourceIsFilename()

TBool SourceIsFilename ( ) const [private]

SourceMimeType()

const TDesC8 & SourceMimeType ( ) const [private]

SourceRect(TRect &)

TBool SourceRect ( TRect & aRect ) const [private]

Parameters

TRect & aRect

SuffixTypeGetTransformerListL(RImplInfoPtrArray &, const TDesC &)

void SuffixTypeGetTransformerListL ( RImplInfoPtrArray & aTransformerList,
const TDesC & aFileName
) [private]

Parameters

RImplInfoPtrArray & aTransformerList
const TDesC & aFileName

Transform(TRequestStatus &)

void Transform ( TRequestStatus & aStatus ) [private]

Parameters

TRequestStatus & aStatus

Member Enumerations Documentation

Enum TImageTransformInternalFlags

Enumerators

EFlagMaintainAspectRatio = 0x00000001
EFlagPreserveImageData = 0x00000002
EFlagSourceRectSet = 0x00000004

Member Data Documentation

TImageParameterData iDestImage

TImageParameterData iDestImage [private]

TSize iDestinationSize

TSize iDestinationSize [private]

TInt iFlags

TInt iFlags [private]

RFs & iFs

RFs & iFs [private]

CImageTransform & iHandle

CImageTransform & iHandle [private]

TUint iOptions

TUint iOptions [private]

CImageTransformPlugin * iPlugin

CImageTransformPlugin * iPlugin [private]

TUid iPluginInstanceUid

TUid iPluginInstanceUid [private]

TUid iPluginUid

TUid iPluginUid [private]

TImageParameterData iSourceImage

TImageParameterData iSourceImage [private]

TRect iSourceRect

TRect iSourceRect [private]

TUint iTransformations

TUint iTransformations [private]