CSDClientResultSet Class Reference

#include <mmf/common/speechrecognitiondataclient.h>

Link against: speechrecognitiondata.lib

class CSDClientResultSet : public CBase

Inherits from

Detailed Description

Class to encapsulate a client recogntion result set This is a lightweight result set formulated for client consumption

Since
8.0

Constructor & Destructor Documentation

~CSDClientResultSet ( )

IMPORT_C~CSDClientResultSet()

Destructor.

Member Function Documentation

At ( TInt )

IMPORT_C const CSDClientResult &At(TIntaIndex)const

Returns a result at a given index within the result set.

Since
8.0
Parameters
aIndexThe index of result to return.
Return Value
A pointer to CSDClientResult object.

Diagnostic ( )

IMPORT_C const TDiagnostic &Diagnostic()const

Gets the diagnostic of this result set.

Since
8.0
Return Value
A reference to TDiagnostic object.

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Writes the state of the class to a stream.

Since
8.0
Parameters
aStreamThe stream to write to.

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aStream)

Restores the state of the object from a stream.

Since
8.0
Parameters
aStreamThe stream to read from.

MaxResults ( )

IMPORT_C TIntMaxResults()const

Returns the current value of the max number of expected after recognition.

Since
8.0
Return Value
The maximum number of best matches (N-best) expected in the recognition result.

NewL ( )

IMPORT_C CSDClientResultSet *NewL()[static]

Two-phased constructor.

Return Value
CSDClientResultSet object.

NewLC ( )

IMPORT_C CSDClientResultSet *NewLC()[static]

Two-phased constructor. Pushes the newly created object onto the cleanup stack

Return Value
CSDClientResultSet object.

ResultCount ( )

IMPORT_C TIntResultCount()const

Returns the number of results actually returned after recogntion.

Since
8.0
Return Value
The number of results actually returned after recogntion.

SetDiagnostic ( TDiagnostic & )

IMPORT_C voidSetDiagnostic(TDiagnostic &aDiagnostic)

Sets the diagnostic of this result set.

Since
8.0
Parameters
aDiagnosticThe reference to the diagostic object.

SetMaxResultsL ( TInt )

IMPORT_C voidSetMaxResultsL(TIntaMaxResults)

Sets the maximum number of best matches (N-best) expected in the recognition result after recognition.

Since
8.0
Parameters
aMaxResultsThe maximum number of matches expected in the recognition result.

SetResultCount ( TInt )

IMPORT_C voidSetResultCount(TIntaResultCount)

Sets the number of results actually returned after recogntion.

Since
8.0
Parameters
aResultCountThe number of results returned by the recognizer.