Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: mmfcontrollerpluginresolver.h
Link against: mmfcontrollerframework.lib

Class CMMFFormatSelectionParameters

class CMMFFormatSelectionParameters : public CBase;

Description

Defines the format support required.

On construction, the selection parameters are blank, causing all plugins to be returned.

Derivation

Members

Defined in CMMFFormatSelectionParameters:
EMatchAny, EMatchFileExtension, EMatchHeaderData, EMatchMimeType, MatchData(), MatchDataType(), NewL(), NewLC(), SetMatchToFileNameL(), SetMatchToHeaderDataL(), SetMatchToMimeTypeL(), SetMatchToUriL(), TMatchDataType, ~CMMFFormatSelectionParameters()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CMMFFormatSelectionParameters *NewL();

Description

Allocates and constructs a new format selection parameter object with blank parameters.

Calls NewLC().

Return value

CMMFFormatSelectionParameters *

A new format selection parameter object.


NewLC()

static IMPORT_C CMMFFormatSelectionParameters *NewLC();

Description

Allocates and constructs a new format selection parameter object with blank parameters, placing it on the cleanup stack.

Return value

CMMFFormatSelectionParameters *

A new format selection parameter object.


~CMMFFormatSelectionParameters()

virtual ~CMMFFormatSelectionParameters();

Description

Destructor.

[Top]


Member functions


SetMatchToFileNameL()

IMPORT_C void SetMatchToFileNameL(const TDesC &aFileName);

Description

Sets this object to match to a file extension.

aFileName can be a full filename or just an extension. If there is no dot in the filename and it is 5 characters or less in length then it is assumed to be an extension. If the first character of the filename is a dot, it assumed to be an extension. Otherwise, the filename is parsed using TParse to reveal the extension.

Once the extension has been extracted, it is converted from unicode to utf8 and copied into iMatchData.

Parameters

const TDesC &aFileName

The file name to be matched. Must include the extension.


SetMatchToUriL()

IMPORT_C void SetMatchToUriL(const TDesC &aUri);

Description

Sets this object to match to a file extension specified by a URI

Once the extension has been extracted, it is copied into iMatchData.

Parameters

const TDesC &aUri

The URI containing the file name to be matched. Must include the extension.


SetMatchToMimeTypeL()

IMPORT_C void SetMatchToMimeTypeL(const TDesC8 &aMimeType);

Description

Sets this object to match to a MIME type.

Parameters

const TDesC8 &aMimeType

The mime type to match.


SetMatchToHeaderDataL()

IMPORT_C void SetMatchToHeaderDataL(const TDesC8 &aHeaderData);

Description

Sets this object to match to a pattern in header data.

Parameters

const TDesC8 &aHeaderData

The header of the file in question. This header data will be matched against the match patterns provided by the plugins.


MatchData()

IMPORT_C const TDesC8 &MatchData() const;

Description

Returns the data used to perform the plugin match.

Return value

const TDesC8 &

The match data.


MatchDataType()

IMPORT_C TMatchDataType MatchDataType() const;

Description

Returns the type of the data used to perform the plugin match.

Return value

TMatchDataType

The match data type.

[Top]


Member enumerations


Enum TMatchDataType

TMatchDataType

Description

Describes the type of match to be performed. The match types are mutually exclusive.

EMatchAny

All plugins will be selected. This is the default option.

EMatchFileExtension

The match will be based on a file extension.

EMatchMimeType

The match will be based on a mime type.

EMatchHeaderData

The match will be based on a header data.