#include <mmf/common/mmfcontrollerpluginresolver.h>
class CMMFPluginSelectionParameters : 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.
Describes the type of preferred supplier match to be performed on the plugins return from the ECOM registry.
CMMFPluginSelectionParameters | ( | TUid | aPluginInterfaceUid | ) | [protected] |
Protected constructor.
Defaults to setting the TPreferredSupplierMatchType enum to ENoPreferredSupplierMatch and TMediaIdMatchType to ENoMediaIdMatch.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aPlugin | The media to test. |
Returns: A boolean indicating if the specified media is supported by the plugin. ETrue if the specified media is supported by the plugin. EFalse if the specified media is not supported by the plugin.
IMPORT_C TUid | InterfaceUid | ( | ) | const |
Returns the uid of the interface to be searched for plugin matches.
Returns: The interface uid.
IMPORT_C TMediaIdMatchType | MediaIdMatchType | ( | ) | const |
Returns the type of preferred supplier match to perform.
Returns: The preferred supplier match type.
IMPORT_C const TDesC & | PreferredSupplier | ( | ) | const |
Returns the preferred supplier. If no preferred supplier has been set, a blank string will be returned.
Returns: The preferred supplier
IMPORT_C TPreferredSupplierMatchType | PreferredSupplierMatchType | ( | ) | const |
Returns the type of preferred supplier match to perform.
Returns: The preferred supplier match type.
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aPreferredSupplier | The preferred supplier of the plugin. |
aMatchType | The type of match to be made. |