CMMFAudioPlayDeviceCustomCommandParser Class Reference

class CMMFAudioPlayDeviceCustomCommandParser : public CMMFCustomCommandParserBase

Custom command parser class to be used by controller plugins wishing to support audio play device commands.

The controller plugin must be derived from MMMFAudioPlayDeviceCustomCommandImplementor 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.
	}

7.0s

Inherits from

Constructor & Destructor Documentation

CMMFAudioPlayDeviceCustomCommandParser(MMMFAudioPlayDeviceCustomCommandImplementor &)

CMMFAudioPlayDeviceCustomCommandParser(MMMFAudioPlayDeviceCustomCommandImplementor &aImplementor)[private]

Constructor.

7.0s

Parameters

MMMFAudioPlayDeviceCustomCommandImplementor & aImplementorA reference to the controller plugin that owns this new object.

~CMMFAudioPlayDeviceCustomCommandParser()

IMPORT_C~CMMFAudioPlayDeviceCustomCommandParser()

Destructor.

7.0s

Member Functions Documentation

DoGetBalanceL(TMMFMessage &)

TBool DoGetBalanceL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoGetMaxVolumeL(TMMFMessage &)

TBool DoGetMaxVolumeL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoGetVolumeL(TMMFMessage &)

TBool DoGetVolumeL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoHandleRequestL(TMMFMessage &)

voidDoHandleRequestL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoSetBalanceL(TMMFMessage &)

TBool DoSetBalanceL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoSetVolumeL(TMMFMessage &)

TBool DoSetVolumeL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

DoSetVolumeRampL(TMMFMessage &)

TBool DoSetVolumeRampL(TMMFMessage &aMessage)[private]

Parameters

TMMFMessage & aMessage

HandleRequest(TMMFMessage &)

voidHandleRequest(TMMFMessage &aMessage)[virtual]

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

7.0s

Parameters

TMMFMessage & aMessageThe message to be handled.

NewL(MMMFAudioPlayDeviceCustomCommandImplementor &)

IMPORT_C CMMFAudioPlayDeviceCustomCommandParser *NewL(MMMFAudioPlayDeviceCustomCommandImplementor &aImplementor)[static]

Creates a new custom command parser capable of handling audio play device commands.

This function may leave with one of the system-wide error codes.

A pointer to the object created.

7.0s

Parameters

MMMFAudioPlayDeviceCustomCommandImplementor & aImplementorA reference to the controller plugin that owns this new object.

Member Data Documentation

MMMFAudioPlayDeviceCustomCommandImplementor & iImplementor

MMMFAudioPlayDeviceCustomCommandImplementor &iImplementor[private]

The object that implements the audio play device interface