CFileExtensionMIMEType Class Reference

#include <imageconversion.h>

Link against: imageconversion.lib

class CFileExtensionMIMEType : public CBase

Inherits from

  • CFileExtensionMIMEType

Detailed Description

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

Constructor & Destructor Documentation

~CFileExtensionMIMEType ( )

IMPORT_C~CFileExtensionMIMEType()

Destructor.

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

Member Function Documentation

DisplayName ( )

IMPORT_C const TDesC &DisplayName()const

Returns the human-readable plugin description.

Return Value
A reference to the display descriptor.

FileExtension ( )

IMPORT_C const TDesC &FileExtension()const

Returns the image file extension info.

Return Value
A reference to the descriptor containing the file extension.

ImageSubType ( )

IMPORT_C TUidImageSubType()const

Returns the image sub-type associated with the plugin.

Return Value
The image sub-type associated with the plugin.

ImageType ( )

IMPORT_C TUidImageType()const

Returns the image type associated with the plugin.

Return Value
The image type associated with the plugin

ImplementationUid ( )

IMPORT_C TUidImplementationUid()const

Returns the implementation UID of the plugin.

Return Value
The implementation UID of the plugin.

MIMEType ( )

IMPORT_C const TDesC8 &MIMEType()const

Returns the image MIME type info.

Return Value
A reference to the descriptor containing the MIME type.

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

CFileExtensionMIMEType *NewL(const TDesC8 &aExtn,
const TDesC8 &aMIMEType,
const TDesC &aDisplayName,
TUidaImageType,
TUidaImageSubType,
TUidaImplementationUid
)[static]

Constructs a new file extension/MIME type entry.

A leave occurs if there is insufficient memory available.

Parameters
aExtnThe file extension.
aMIMETypeThe associated MIME type.
aDisplayNameThe display name of the implementation
aImageTypeThe plugin decoder/encoder type UID.
aImageSubTypeThe plugin decoder/encoder sub-type UID.
aImplementationUidThe unique ID of the implementation.
Return Value
A pointer to the new file extension/MIME type entry.

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

IMPORT_C CFileExtensionMIMEType *NewLC(const TDesC8 &aExtn,
const TDesC8 &aMIMEType,
const TDesC &aDisplayName,
TUidaImageType,
TUidaImageSubType,
TUidaImplementationUid
)[static]

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
aExtnThe file extension.
aMIMETypeThe associated MIME type.
aDisplayNameThe display name of the implementation
aImageTypeThe plugin decoder/encoder type UID.
aImageSubTypeThe plugin decoder/encoder sub-type UID.
aImplementationUidThe unique ID of the implementation.
Return Value
A pointer to the new file extension/MIME type entry.