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.
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
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 TBool | SupportsCustomInterfaces() |
IMPORT_C TBool | SupportsFileExtension(const TDesC8 &) |
IMPORT_C TBool | SupportsHeaderDataL(const TDesC8 &) |
IMPORT_C TBool | SupportsMimeType(const TDesC8 &) |
Protected Member Functions | |
---|---|
CMMFFormatImplementationInformation() | |
void | AddFileExtensionL(const TDesC8 &) |
void | AddHeaderDataL(const TDesC8 &) |
void | AddMimeTypeL(const TDesC8 &) |
void | ConstructL(const CImplementationInformation &) |
void | ProcessTaggedDataL(const TDesC8 &, const TDesC8 &) |
Private Attributes | |
---|---|
CBody * | iBody |
void | AddFileExtensionL | ( | const TDesC8 & | aData | ) | [protected] |
Adds a file extension to the array of extensions supported by this format.
const TDesC8 & aData |
void | AddHeaderDataL | ( | const TDesC8 & | aData | ) | [protected] |
Adds a chunk of header data to the array of chunks supported by this format.
const TDesC8 & aData |
void | AddMimeTypeL | ( | const TDesC8 & | aData | ) | [protected] |
Adds a mime type to the array of types supported by this format.
const TDesC8 & aData |
void | ConstructL | ( | const CImplementationInformation & | aImplInfo | ) | [protected] |
2nd phase constructor
const CImplementationInformation & aImplInfo |
CMMFFormatImplementationInformation * | NewL | ( | const CImplementationInformation & | aImplInfo | ) | [static] |
Constructs a new format implementation information object.
The new object created.
7.0s
const CImplementationInformation & aImplInfo | The ECOM implementation information |
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
const CImplementationInformation & aImplInfo | The ECOM implementation information |
void | ProcessTaggedDataL | ( | const TDesC8 & | aTag, |
const TDesC8 & | aData | |||
) | [protected] |
IMPORT_C const CDesC8Array & | SupportedFileExtensions | ( | ) | const |
Returns the array of supported file extensions.
The array of file extensions.
7.0s
IMPORT_C const CDesC8Array & | SupportedHeaderData | ( | ) | const |
Returns the array of supported header data matches.
The array of header data.
7.0s
IMPORT_C const CDesC8Array & | SupportedMimeTypes | ( | ) | const |
Returns the array of supported mime types.
The array of mime types.
7.0s
IMPORT_C TBool | SupportsCustomInterfaces | ( | ) | 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.
IMPORT_C TBool | SupportsFileExtension | ( | 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
const TDesC8 & aFileExtension | The requested file extension. Must be the extension only, and contain the dot '.' |
IMPORT_C TBool | SupportsHeaderDataL | ( | 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
const TDesC8 & aHeaderData | The requested header data. |
IMPORT_C TBool | SupportsMimeType | ( | 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
const TDesC8 & aMimeType | The requested mime type. |