Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Construction and destruction


NewL()

IMPORT_C static CMMFFormatSelectionParameters* NewL();

Description

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

Calls CMMFFormatSelectionParameters::NewLC().

Return value

CMMFFormatSelectionParameters *

A new format selection parameter object.


NewLC()

IMPORT_C static 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(const TDesC &)

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 TDesC16 &aFileName

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


SetMatchToUriL(const TDesC &)

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 TDesC16 &aUri

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


SetMatchToMimeTypeL(const TDesC8 &)

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(const TDesC8 &)

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

IMPORT_C const TDesC8& MatchData() const;

Description

Returns the data used to perform the plugin match.

Return value

const TDesC8 &

The match data.


MatchDataType()const

IMPORT_C TMatchDataType MatchDataType() const;

Description

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

Return value

CMMFFormatSelectionParameters::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.