CMMFPluginSelectionParameters Class Reference

class CMMFPluginSelectionParameters : public CBase

Contains the parameters used to select mmf plugins from the ECOM registry.

Since
7.0s

Inherits from

  • CMMFPluginSelectionParameters

Constructor & Destructor Documentation

CMMFPluginSelectionParameters(TUid)

CMMFPluginSelectionParameters(TUidaPluginInterfaceUid)[protected]

Protected constructor.

Defaults to setting the TPreferredSupplierMatchType enum to ENoPreferredSupplierMatch and TMediaIdMatchType to ENoMediaIdMatch.

Parameters

TUid aPluginInterfaceUidThe plugin's interface UID.

~CMMFPluginSelectionParameters()

~CMMFPluginSelectionParameters()[virtual]

Destructor. Resets and destroys all member data.

Since
7.0s

Member Functions Documentation

CheckMediaIdSupportL(const CMMFPluginImplementationInformation &)

TBool CheckMediaIdSupportL(const CMMFPluginImplementationInformation &aPlugin)const [protected]

Tests whether the specified media is supported by the plugin.

Parameters

const CMMFPluginImplementationInformation & aPluginThe media to test.

InterfaceUid()

IMPORT_C TUidInterfaceUid()const

Returns the uid of the interface to be searched for plugin matches.

Since
7.0s

MediaIdMatchType()

IMPORT_C TMediaIdMatchTypeMediaIdMatchType()const

Returns the type of preferred supplier match to perform.

Since
7.0s

MediaIds()

IMPORT_C const RArray< TUid > &MediaIds()const

Returns the list of media IDs that must be supported by the plugin.

Since
7.0s

PreferredSupplier()

IMPORT_C const TDesC &PreferredSupplier()const

Returns the preferred supplier. If no preferred supplier has been set, a blank string will be returned.

Since
7.0s

PreferredSupplierMatchType()

IMPORT_C TPreferredSupplierMatchTypePreferredSupplierMatchType()const

Returns the type of preferred supplier match to perform.

Since
7.0s

SetMediaIdsL(const RArray< TUid > &, TMediaIdMatchType)

IMPORT_C voidSetMediaIdsL(const RArray< TUid > &aMediaIds,
TMediaIdMatchTypeaMatchType
)

Sets the media IDs that must be supported by the plugin, for example audio, video etc.

Since
7.0s

Parameters

const RArray< TUid > & aMediaIdsAn array of the media IDs that the selected plugins must support.
TMediaIdMatchType aMatchTypeThe type of match to be made.

SetPreferredSupplierL(const TDesC &, TPreferredSupplierMatchType)

IMPORT_C voidSetPreferredSupplierL(const TDesC &aPreferredSupplier,
TPreferredSupplierMatchTypeaMatchType
)

Sets the preferred supplier of the plugin.

Since
7.0s

Parameters

const TDesC & aPreferredSupplierThe preferred supplier of the plugin.
TPreferredSupplierMatchType aMatchTypeThe type of match to be made.

Member Enumerations Documentation

Enum TMediaIdMatchType

Describes the type of media ID match to be performed on the plugins return from the ECOM registry.

Enumerators

ENoMediaIdMatch

No media ID match will be performed.

EAllowOtherMediaIds

All plugins that support the media ID supplied will be returned, even those that support other media IDs. For example, if an audio plugin is requested, plugins that support audio and video will also be returned.

EAllowOnlySuppliedMediaIds

Only plugins that support the exact media IDs supplied will be returned. For example, if an audio plugin is requested, plugins that only support audio will be returned (ie. no audio/video plugins).

Enum TPreferredSupplierMatchType

Describes the type of preferred supplier match to be performed on the plugins return from the ECOM registry.

Enumerators

ENoPreferredSupplierMatch

No preferred supplier match will be performed.

EPreferredSupplierPluginsFirstInList

Plugins from all suppliers will be returned, but those from the preferred supplier will be first in the list.

EOnlyPreferredSupplierPluginsReturned

Only plugins from the preferred supplier will be returned.

Member Data Documentation

TMediaIdMatchType iMediaIdMatchType

TMediaIdMatchType iMediaIdMatchType[private]

RArray< TUid > iMediaIds

RArray< TUid >iMediaIds[private]

TUid iPluginInterfaceUid

TUid iPluginInterfaceUid[private]

HBufC * iPreferredSupplier

HBufC *iPreferredSupplier[private]

TPreferredSupplierMatchType iPreferredSupplierMatchType

TPreferredSupplierMatchType iPreferredSupplierMatchType[private]