class CMMFAudioRecordDeviceCustomCommandParser : public CMMFCustomCommandParserBase |
Custom command parser class to be used by controller plugins wishing to support audio record device commands.
The controller plugin must be derived from MMMFAudioRecordDeviceCustomCommandImplementor 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
Public Member Functions | |
---|---|
~CMMFAudioRecordDeviceCustomCommandParser() | |
void | HandleRequest(TMMFMessage &) |
IMPORT_C CMMFAudioRecordDeviceCustomCommandParser * | NewL(MMMFAudioRecordDeviceCustomCommandImplementor &) |
Private Member Functions | |
---|---|
CMMFAudioRecordDeviceCustomCommandParser(MMMFAudioRecordDeviceCustomCommandImplementor &) | |
TBool | DoGetBalanceL(TMMFMessage &) |
TBool | DoGetGainL(TMMFMessage &) |
TBool | DoGetMaxGainL(TMMFMessage &) |
void | DoHandleRequestL(TMMFMessage &) |
TBool | DoSetBalanceL(TMMFMessage &) |
TBool | DoSetGainL(TMMFMessage &) |
Private Attributes | |
---|---|
MMMFAudioRecordDeviceCustomCommandImplementor & | iImplementor |
CMMFAudioRecordDeviceCustomCommandParser | ( | MMMFAudioRecordDeviceCustomCommandImplementor & | aImplementor | ) | [private] |
Constructor.
7.0s
MMMFAudioRecordDeviceCustomCommandImplementor & aImplementor | A reference to the controller plugin that owns this new object. |
IMPORT_C | ~CMMFAudioRecordDeviceCustomCommandParser | ( | ) |
Destructor.
7.0s
TBool | DoGetBalanceL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
TBool | DoGetGainL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
TBool | DoGetMaxGainL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
void | DoHandleRequestL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
TBool | DoSetBalanceL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
TBool | DoSetGainL | ( | TMMFMessage & | aMessage | ) | [private] |
TMMFMessage & aMessage |
void | HandleRequest | ( | TMMFMessage & | aMessage | ) | [virtual] |
Handles a request from the client. Called by the controller framework.
7.0s
TMMFMessage & aMessage | The message to be handled. |
IMPORT_C CMMFAudioRecordDeviceCustomCommandParser * | NewL | ( | MMMFAudioRecordDeviceCustomCommandImplementor & | aImplementor | ) | [static] |
Creates a new custom command parser capable of handling audio record device commands.
This function may leave with one of the system-wide error codes.
A pointer to the object created.
7.0s
MMMFAudioRecordDeviceCustomCommandImplementor & aImplementor | A reference to the controller plugin that owns this new object. |
MMMFAudioRecordDeviceCustomCommandImplementor & | iImplementor | [private] |
The object that implements the audio record device interface