Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <mmfcontroller.h>
Link against: mmfcontrollerframework.lib

Class CMMFCustomCommandParserBase

class CMMFCustomCommandParserBase : public CBase;

Description

Base class to define the interface of a custom command parser.

In order to facilitate the support of common custom commands by controller plugins, a custom command parser object can be used. A set of custom command parsers are created by the controller plugin (one for each interface supported), and added to the custom command parser manager in the controller framework. The controller plugin must also derive from a set of concrete interfaces (provided in the form of mixin classes). Then, a custom command supported by one of the custom command parsers will appear to the controller as a concrete API call, rather than a call to its own custom command API.

Derivation

Members

Defined in CMMFCustomCommandParserBase:

Inherited from CBase:


Construction and destruction


~CMMFCustomCommandParserBase()

IMPORT_C ~CMMFCustomCommandParserBase();

Description

Destructor.


CMMFCustomCommandParserBase(TUid)

protected: IMPORT_C CMMFCustomCommandParserBase(TUid aInterfaceId);

Description

Constructor.

Parameters

TUid aInterfaceId

The uid of the custom command interface provided by this parser. This must be the same as the interface id of the corresponding client API class. See RMMFCustomCommandsBase.

[Top]


Member functions


HandleRequest(TMMFMessage &)

virtual void HandleRequest(TMMFMessage &aMessage)=0;

Description

Pure virtual method to be implemented by derived classes.

Derived classes must implement the code to decode the message from the client.

Parameters

TMMFMessage &aMessage

The message to be serviced. This message must be completed by the derived class.


InterfaceId()

IMPORT_C TUid InterfaceId();

Description

Returns the UID of the custom command interface provided by this parser.

Return value

TUid

The interface UID.