Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Construction and destruction


NewLC(const TDesC8 &,const TDesC8 &,const TDesC &,TUid,TUid,TUid)

IMPORT_C static 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 TDesC16 &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()const

IMPORT_C const TDesC& FileExtension() const;

Description

Returns the image file extension info.

Return value

const TDesC16 &

A reference to the descriptor containing the file extension.


MIMEType()const

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()const

IMPORT_C const TDesC& DisplayName() const;

Description

Returns the human-readable plugin description.

Return value

const TDesC16 &

A reference to the display descriptor.


ImageType()const

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()const

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()const

IMPORT_C TUid ImplementationUid() const;

Description

Returns the implementation UID of the plugin.

Return value

TUid

The implementation UID of the plugin.