CMMFFormatImplementationInformation Class Reference

class CMMFFormatImplementationInformation : public CMMFPluginImplementationInformation

Contains format support information retrieved from the ECom registry.

An object of this type may describe either a concrete format plugin (ie a CMMFFormatEncode or a CMMFFormatDecode implementation) or a format supported by a controller plugin.

The object is created using a CImplementationInformation object retrieved from the ECom registry. All relevant data is copied out of the CImplementationInformation object, and its opaque data is parsed to provide the supplier, supported media ids, supported mime types, supported file extensions, and supported header data matches.

Notes for Format Plugin developers:
The opaque data section of the ECom plugin resource file must be in the format:

opaque_data = "<?>Data 1<?>Data 2<?>Data 3<?>Data 4[...]<?>Data N";

The <?> preceding the data determines the meaning of the data.  The following are the possible tags:

	<s> - Supplier
	<i> - Media Id
	<m> - Mime Type
	<e> - File Extension
	<h> - Header Data
	<c> - Custom Interfaces

UIDs must always be in hex in the format '0x12345678', must include the '0x' and be 10 characters long

7.0s

Inherits from

Public Member Functions
~CMMFFormatImplementationInformation()
CMMFFormatImplementationInformation *NewL(const CImplementationInformation &)
CMMFFormatImplementationInformation *NewLC(const CImplementationInformation &)
IMPORT_C const CDesC8Array &SupportedFileExtensions()
IMPORT_C const CDesC8Array &SupportedHeaderData()
IMPORT_C const CDesC8Array &SupportedMimeTypes()
IMPORT_C TBoolSupportsCustomInterfaces()
IMPORT_C TBoolSupportsFileExtension(const TDesC8 &)
IMPORT_C TBoolSupportsHeaderDataL(const TDesC8 &)
IMPORT_C TBoolSupportsMimeType(const TDesC8 &)
Protected Member Functions
CMMFFormatImplementationInformation()
voidAddFileExtensionL(const TDesC8 &)
voidAddHeaderDataL(const TDesC8 &)
voidAddMimeTypeL(const TDesC8 &)
voidConstructL(const CImplementationInformation &)
voidProcessTaggedDataL(const TDesC8 &, const TDesC8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMMFPluginImplementationInformation::AddMediaIdL(const TDesC8 &)
CMMFPluginImplementationInformation::CMMFPluginImplementationInformation()
CMMFPluginImplementationInformation::DisplayName()const
CMMFPluginImplementationInformation::SetSupplierL(const TDesC8 &)
CMMFPluginImplementationInformation::Supplier()const
CMMFPluginImplementationInformation::SupportedMediaIds()const
CMMFPluginImplementationInformation::SupportsMediaId(TUid)const
CMMFPluginImplementationInformation::SupportsSupplier(const TDesC &)const
CMMFPluginImplementationInformation::Uid()const
CMMFPluginImplementationInformation::Version()const
CMMFPluginImplementationInformation::~CMMFPluginImplementationInformation()
Private Attributes
CBody *iBody
Inherited Attributes
CMMFPluginImplementationInformation::iDisplayName
CMMFPluginImplementationInformation::iMediaIds
CMMFPluginImplementationInformation::iSupplier
CMMFPluginImplementationInformation::iUid
CMMFPluginImplementationInformation::iVersion

Constructor & Destructor Documentation

CMMFFormatImplementationInformation()

CMMFFormatImplementationInformation()[protected]

Constructor

~CMMFFormatImplementationInformation()

~CMMFFormatImplementationInformation()[virtual]

Destructor

Member Functions Documentation

AddFileExtensionL(const TDesC8 &)

voidAddFileExtensionL(const TDesC8 &aData)[protected]

Adds a file extension to the array of extensions supported by this format.

Parameters

const TDesC8 & aData

AddHeaderDataL(const TDesC8 &)

voidAddHeaderDataL(const TDesC8 &aData)[protected]

Adds a chunk of header data to the array of chunks supported by this format.

Parameters

const TDesC8 & aData

AddMimeTypeL(const TDesC8 &)

voidAddMimeTypeL(const TDesC8 &aData)[protected]

Adds a mime type to the array of types supported by this format.

Parameters

const TDesC8 & aData

ConstructL(const CImplementationInformation &)

voidConstructL(const CImplementationInformation &aImplInfo)[protected]

2nd phase constructor

Parameters

const CImplementationInformation & aImplInfo

NewL(const CImplementationInformation &)

CMMFFormatImplementationInformation *NewL(const CImplementationInformation &aImplInfo)[static]

Constructs a new format implementation information object.

The new object created.

7.0s

Parameters

const CImplementationInformation & aImplInfoThe ECOM implementation information

NewLC(const CImplementationInformation &)

CMMFFormatImplementationInformation *NewLC(const CImplementationInformation &aImplInfo)[static]

Constructs a new format implementation information object.

The new object created. Note that this will be on the cleanup stack.

7.0s

Parameters

const CImplementationInformation & aImplInfoThe ECOM implementation information

ProcessTaggedDataL(const TDesC8 &, const TDesC8 &)

voidProcessTaggedDataL(const TDesC8 &aTag,
const TDesC8 &aData
)[protected]

Parameters

const TDesC8 & aTag
const TDesC8 & aData

SupportedFileExtensions()

IMPORT_C const CDesC8Array &SupportedFileExtensions()const

Returns the array of supported file extensions.

The array of file extensions.

7.0s

SupportedHeaderData()

IMPORT_C const CDesC8Array &SupportedHeaderData()const

Returns the array of supported header data matches.

The array of header data.

7.0s

SupportedMimeTypes()

IMPORT_C const CDesC8Array &SupportedMimeTypes()const

Returns the array of supported mime types.

The array of mime types.

7.0s

SupportsCustomInterfaces()

IMPORT_C TBoolSupportsCustomInterfaces()const

Tests whether this format provides support for Custom Interfaces.

A boolean indicating if Custom Interfaces are supported. ETrue if this format provides the required support, EFalse if not.

SupportsFileExtension(const TDesC8 &)

IMPORT_C TBoolSupportsFileExtension(const TDesC8 &aFileExtension)const

Tests whether this format provides support for the specified file extension, aFileExtension.

A boolean indicating if the specified file extension is supported. ETrue if this format provides the required support, EFalse if it does not.

7.0s

Parameters

const TDesC8 & aFileExtensionThe requested file extension. Must be the extension only, and contain the dot '.'

SupportsHeaderDataL(const TDesC8 &)

IMPORT_C TBoolSupportsHeaderDataL(const TDesC8 &aHeaderData)const

Tests whether this format provides support for aHeaderData. aHeaderData is searched for each chunk supported by this format.

A boolean indicating if aHeaderData is supported. ETrue if this format provides the required support, EFalse if not.

7.0s

Parameters

const TDesC8 & aHeaderDataThe requested header data.

SupportsMimeType(const TDesC8 &)

IMPORT_C TBoolSupportsMimeType(const TDesC8 &aMimeType)const

Tests whether this format provides support for aMimeType.

A boolean indicating if the format is supported. ETrue if this format provides the required support, EFalse if not.

7.0s

Parameters

const TDesC8 & aMimeTypeThe requested mime type.

Member Data Documentation

CBody * iBody

CBody *iBody[private]