Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: mmfstandardcustomcommands.h
Link against: mmfstandardcustomcommands.lib

Class CMMFAudioControllerCustomCommandParser

class CMMFAudioControllerCustomCommandParser : public CMMFCustomCommandParserBase;

Description

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

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

Derivation

Members

Defined in CMMFAudioControllerCustomCommandParser:
HandleRequest(), NewL(), ~CMMFAudioControllerCustomCommandParser()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CMMFCustomCommandParserBase:
InterfaceId()


Construction and destruction


NewL()

static IMPORT_C CMMFAudioControllerCustomCommandParser *NewL(MMMFAudioControllerCustomCommandImplementor &aImplementor);

Description

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

Parameters

MMMFAudioControllerCustomCommandImplementor &aImplementor

A reference to the controller plugin that owns this new object.

Return value

CMMFAudioControllerCustomCommandParser *

A pointer to the object created.


~CMMFAudioControllerCustomCommandParser()

IMPORT_C ~CMMFAudioControllerCustomCommandParser();

Description

Destructor.

[Top]


Member functions


HandleRequest()

virtual void HandleRequest(TMMFMessage &aMessage);

Description

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

Parameters

TMMFMessage &aMessage

The message to be handled.