CSDClientResult Class Reference

#include <mmf/common/speechrecognitiondataclient.h>

Link against: speechrecognitiondata.lib

class CSDClientResult : public CBase

Inherits from

Detailed Description

Class to encapsulate a client recognition result. The result is formulated for client consumption.

Since
8.0

Constructor & Destructor Documentation

~CSDClientResult ( )

IMPORT_C~CSDClientResult()

Destructor.

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const

Writes the class to a stream.

Since
8.0
Parameters
aStreamA RWriteStream to write the class to.

GrammarID ( )

IMPORT_C TGrammarIDGrammarID()const

Retrieves the grammar ID of the result.

Since
8.0
Return Value
Grammar identifier.

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)

Reads the class from a stream.

Since
8.0
Parameters
aStreamA RReadStream to read from.

NewL ( )

IMPORT_C CSDClientResult *NewL()[static]

Two-phased constructor. Creates an uninitialised recognition result.

Can leave with one of the system-wide error codes

Return Value
CSDClientResult object

NewL ( TGrammarID, TRuleID )

IMPORT_C CSDClientResult *NewL(TGrammarIDaGrammarID,
TRuleIDaRuleID
)[static]

Two-phased constructor. Creates a result with a grammar and rule ID.

Can leave with one of the system-wide error codes.

Parameters
aGrammarIDThe grammar ID of the result.
aRuleIDThe rule ID of the result.
Return Value
CSDClientResult object.

NewLC ( )

IMPORT_C CSDClientResult *NewLC()[static]

Two-phased constructor. Creates an uninitialised recognition result. A copy of the newly created class is pushed onto the cleanup stack.

Can leave with one of the system-wide error codes.

Return Value
CSDClientResult object

NewLC ( TGrammarID, TRuleID )

IMPORT_C CSDClientResult *NewLC(TGrammarIDaGrammarID,
TRuleIDaRuleID
)[static]

Two-phased constructor. Creates a result with a grammar and rule ID. A copy of the newly created class is pushed onto the cleanup stack.

Can leave with one of the system-wide error codes.

Parameters
aGrammarIDThe grammar ID of the result
aRuleIDThe rule ID of the result
Return Value
CSDClientResult object.

RuleID ( )

IMPORT_C TRuleIDRuleID()const

Returns the rule ID of the result.

Since
8.0
Return Value
The rule identifier.

SetGrammarID ( TGrammarID )

IMPORT_C voidSetGrammarID(TGrammarIDaGrammarID)

Sets the grammar ID on the result.

Since
8.0
Parameters
aGrammarIDThe grammar identifier.

SetRuleID ( TRuleID )

IMPORT_C voidSetRuleID(TRuleIDaRuleID)

Sets the rule ID of the result.

Since
8.0
Parameters
aRuleIDThe rule identifier.