Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: ImageConversion.h
Link against: imageconversion.lib

Class CFileExtensionMIMEType

class CFileExtensionMIMEType : public CBase;

Description

Class used to manage the mapping between an image's MIME type & file extension.

Derivation

Members

Defined in CFileExtensionMIMEType:
DisplayName(), FileExtension(), ImageSubType(), ImageType(), ImplementationUid(), MIMEType(), NewLC(), ~CFileExtensionMIMEType()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewLC()

static IMPORT_C CFileExtensionMIMEType *NewLC(const TDesC8 &aExtn, const TDesC8 &aMIMEType, const TDesC &aDisplayName, TUid aImageType, TUid aImageSubType, TUid aImplementationUid);

Description

Constructs a new file extension/MIME type entry. The new object is left on the clean-up stack.

A leave occurs if there is insufficient memory available.

Parameters

const TDesC8 &aExtn

The file extension.

const TDesC8 &aMIMEType

The associated MIME type.

const TDesC &aDisplayName

The display name of the implementation

TUid aImageType

The plugin decoder/encoder type UID.

TUid aImageSubType

The plugin decoder/encoder sub-type UID.

TUid aImplementationUid

The unique ID of the implementation.

Return value

CFileExtensionMIMEType *

A pointer to the new file extension/MIME type entry.


~CFileExtensionMIMEType()

IMPORT_C ~CFileExtensionMIMEType();

Description

Destructor.

Frees all resources owned by the object prior to its destruction.

[Top]


Member functions


FileExtension()

IMPORT_C const TDesC &FileExtension() const;

Description

Returns the image file extension info.

Return value

const TDesC &

A reference to the descriptor containing the file extension.


MIMEType()

IMPORT_C const TDesC8 &MIMEType() const;

Description

Returns the image MIME type info.

Return value

const TDesC8 &

A reference to the descriptor containing the MIME type.


DisplayName()

IMPORT_C const TDesC &DisplayName() const;

Description

Returns the human-readable plugin description.

Return value

const TDesC &

A reference to the display descriptor.


ImageType()

IMPORT_C TUid ImageType() const;

Description

Returns the image type associated with the plugin.

Return value

TUid

The image type associated with the plugin


ImageSubType()

IMPORT_C TUid ImageSubType() const;

Description

Returns the image sub-type associated with the plugin.

Return value

TUid

The image sub-type associated with the plugin.


ImplementationUid()

IMPORT_C TUid ImplementationUid() const;

Description

Returns the implementation UID of the plugin.

Return value

TUid

The implementation UID of the plugin.