CFileExtensionMIMEType Class Reference

class CFileExtensionMIMEType : public CBase

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

Inherits from

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)

void ConstructL ( const TDesC8 & aExtn,
const TDesC8 & aMIMEType,
const TDesC & aDisplayName,
TUid aImageType,
TUid aImageSubType,
TUid aImplementationUid
) [private]

Second phase constructor.

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.

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

Returns the image sub-type associated with the plugin.

ImageType()

IMPORT_C TUid ImageType ( ) const

Returns the image type associated with the plugin.

ImplementationUid()

IMPORT_C TUid ImplementationUid ( ) 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,
TUid aImageType,
TUid aImageSubType,
TUid aImplementationUid
) [static]

Constructs a new file extension/MIME type entry.

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.

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

IMPORT_C CFileExtensionMIMEType * NewLC ( const TDesC8 & aExtn,
const TDesC8 & aMIMEType,
const TDesC & aDisplayName,
TUid aImageType,
TUid aImageSubType,
TUid aImplementationUid
) [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 & 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.

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]