#include <mmf/common/mmfcontrollerpluginresolver.h>
Link against: mmfcontrollerframework.lib
class CMMFPluginSelectionParameters : public CBase, public CBase |
Public Member Enumerations | |
---|---|
enum | TMediaIdMatchType { ENoMediaIdMatch, EAllowOtherMediaIds, EAllowOnlySuppliedMediaIds } |
enum | TPreferredSupplierMatchType { ENoPreferredSupplierMatch, EPreferredSupplierPluginsFirstInList, EOnlyPreferredSupplierPluginsReturned } |
Public Member Functions | |
---|---|
virtual | ~CMMFPluginSelectionParameters() |
IMPORT_C TUid | InterfaceUid() |
IMPORT_C TMediaIdMatchType | MediaIdMatchType() |
IMPORT_C const RArray< TUid > & | MediaIds() |
IMPORT_C const TDesC & | PreferredSupplier() |
IMPORT_C TPreferredSupplierMatchType | PreferredSupplierMatchType() |
IMPORT_C void | SetMediaIdsL(const RArray< TUid > &, TMediaIdMatchType) |
IMPORT_C void | SetPreferredSupplierL(const TDesC &, TPreferredSupplierMatchType) |
Protected Member Functions | |
---|---|
CMMFPluginSelectionParameters(TUid) | |
TBool | CheckMediaIdSupportL(const CMMFPluginImplementationInformation &) |
Contains the parameters used to select mmf plugins from the ECOM registry.
Describes the type of media ID match to be performed on the plugins return from the ECOM registry.
Enumerator | Value | Description |
---|---|---|
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). |
Describes the type of preferred supplier match to be performed on the plugins return from the ECOM registry.
Enumerator | Value | Description |
---|---|---|
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. |
CMMFPluginSelectionParameters | ( | TUid | aPluginInterfaceUid | ) | [protected] |
Protected constructor.
Defaults to setting the TPreferredSupplierMatchType enum to ENoPreferredSupplierMatch and TMediaIdMatchType to ENoMediaIdMatch.
Parameters | |
---|---|
aPluginInterfaceUid | The plugin's interface UID. |
~CMMFPluginSelectionParameters | ( | ) | [virtual] |
Destructor. Resets and destroys all member data.
TBool | CheckMediaIdSupportL | ( | const CMMFPluginImplementationInformation & | aPlugin | ) | const [protected] |
Tests whether the specified media is supported by the plugin.
Parameters | |
---|---|
aPlugin | The media to test. |
IMPORT_C TUid | InterfaceUid | ( | ) | const |
Returns the uid of the interface to be searched for plugin matches.
IMPORT_C TMediaIdMatchType | MediaIdMatchType | ( | ) | const |
Returns the type of preferred supplier match to perform.
IMPORT_C const TDesC & | PreferredSupplier | ( | ) | const |
Returns the preferred supplier. If no preferred supplier has been set, a blank string will be returned.
IMPORT_C TPreferredSupplierMatchType | PreferredSupplierMatchType | ( | ) | const |
Returns the type of preferred supplier match to perform.
IMPORT_C void | SetMediaIdsL | ( | const RArray< TUid > & | aMediaIds, |
TMediaIdMatchType | aMatchType | |||
) |
Sets the media IDs that must be supported by the plugin, for example audio, video etc.
Parameters | |
---|---|
aMediaIds | An array of the media IDs that the selected plugins must support. |
aMatchType | The type of match to be made. |
IMPORT_C void | SetPreferredSupplierL | ( | const TDesC & | aPreferredSupplier, |
TPreferredSupplierMatchType | aMatchType | |||
) |
Sets the preferred supplier of the plugin.
Parameters | |
---|---|
aPreferredSupplier | The preferred supplier of the plugin. |
aMatchType | The type of match to be made. |