CFileExtensionMIMEType Class Reference

class CFileExtensionMIMEType : public CBase

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

Inherits from

  • CFileExtensionMIMEType

Constructor & Destructor Documentation

CFileExtensionMIMEType()

CFileExtensionMIMEType()[private]

Default constructor.

~CFileExtensionMIMEType()

IMPORT_C~CFileExtensionMIMEType()

Destructor.

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

Member Functions Documentation

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

voidConstructL(const TDesC8 &aExtn,
const TDesC8 &aMIMEType,
const TDesC &aDisplayName,
TUidaImageType,
TUidaImageSubType,
TUidaImplementationUid
)[private]

Second phase constructor.

Parameters

const TDesC8 & aExtnThe file extension
const TDesC8 & aMIMETypeThe associated MIME type.
const TDesC & aDisplayNameThe display name of the implementation
TUid aImageTypeThe plugin decoder/encoder type UID.
TUid aImageSubTypeThe plugin decoder/encoder sub-type UID.
TUid aImplementationUidThe unique ID of the implementation.

DisplayName()

IMPORT_C const TDesC &DisplayName()const

Returns the human-readable plugin description.

FileExtension()

IMPORT_C const TDesC &FileExtension()const

Returns the image file extension info.

ImageSubType()

IMPORT_C TUidImageSubType()const

Returns the image sub-type associated with the plugin.

ImageType()

IMPORT_C TUidImageType()const

Returns the image type associated with the plugin.

ImplementationUid()

IMPORT_C TUidImplementationUid()const

Returns the implementation UID of the plugin.

MIMEType()

IMPORT_C const TDesC8 &MIMEType()const

Returns the image MIME type info.

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

const TDesC8 & aExtnThe file extension.
const TDesC8 & aMIMETypeThe associated MIME type.
const TDesC & aDisplayNameThe display name of the implementation
TUid aImageTypeThe plugin decoder/encoder type UID.
TUid aImageSubTypeThe plugin decoder/encoder sub-type UID.
TUid aImplementationUidThe unique ID of the implementation.

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

const TDesC8 & aExtnThe file extension.
const TDesC8 & aMIMETypeThe associated MIME type.
const TDesC & aDisplayNameThe display name of the implementation
TUid aImageTypeThe plugin decoder/encoder type UID.
TUid aImageSubTypeThe plugin decoder/encoder sub-type UID.
TUid aImplementationUidThe unique ID of the implementation.

Member Data Documentation

HBufC * iDisplayName

HBufC *iDisplayName[private]

HBufC * iFileExtension

HBufC *iFileExtension[private]

TUid iImageSubTypeUid

TUid iImageSubTypeUid[private]

TUid iImageTypeUid

TUid iImageTypeUid[private]

TUid iImplementationUid

TUid iImplementationUid[private]

HBufC8 * iMIMEType

HBufC8 *iMIMEType[private]