CMMFVideoControllerCustomCommandParser Class Reference

#include <mmf/common/mmfstandardcustomcommands.h>

Link against: mmfstandardcustomcommands.lib

class CMMFVideoControllerCustomCommandParser : public CMMFCustomCommandParserBase, public CMMFCustomCommandParserBase

Inherits from

Detailed Description

Custom command parser class to be used by controller plugins wishing to support

video controller commands.

The controller plugin must be derived from MMMFVideoControllerCustomCommandImplementor

to use this class.

The controller plugin should create an object of this type and add it to the list of custom

command parsers in the controller framework. See the following example code for details.

void CMMFAudioController::ConstructL()

	{

	// Construct custom command parsers

	CMMFAudioPlayDeviceCustomCommandParser* audPlayDevParser = CMMFAudioPlayDeviceCustomCommandParser::NewL(*this);

	CleanupStack::PushL(audPlayDevParser);

	AddCustomCommandParserL(*audPlayDevParser); //parser now owned by controller framework

	CleanupStack::Pop();//audPlayDevParser



	CMMFAudioRecordDeviceCustomCommandParser* audRecDevParser = CMMFAudioRecordDeviceCustomCommandParser::NewL(*this);

	CleanupStack::PushL(audRecDevParser);

	AddCustomCommandParserL(*audRecDevParser); //parser now owned by controller framework

	CleanupStack::Pop();//audRecDevParser



etc.

	}
Since
7.0s

Constructor & Destructor Documentation

~CMMFVideoControllerCustomCommandParser ( )

IMPORT_C~CMMFVideoControllerCustomCommandParser()

Destructor.

Since
7.0s

Member Function Documentation

HandleRequest ( TMMFMessage & )

voidHandleRequest(TMMFMessage &aMessage)[virtual]

Reimplemented from CMMFCustomCommandParserBase::HandleRequest(TMMFMessage &)

Handles a request from the client. Called by the controller framework.

Since
7.0s
Parameters
aMessageThe message to be handled.

NewL ( MMMFVideoControllerCustomCommandImplementor & )

Creates a new custom command parser capable of handling video controller commands.

Since
7.0s
Parameters
aImplementorA reference to the controller plugin that owns this new object.
Return Value
A pointer to the object created.