MASRSGrCompilerHwDeviceObserver Class Reference

class MASRSGrCompilerHwDeviceObserver

Callback class for Grammar Compiler.

asrgrcompilerhwdevice.lib
Since
2.8

Member Functions Documentation

MghdoConfigurationData(TUint32, TUint32, TUint32, TUint32)

HBufC8 *MghdoConfigurationData(TUint32aPackageType,
TUint32aPackageID,
TUint32aStartPosition = 0,
TUint32aEndPosition =  KMaxTUint32
)[pure virtual]

Callback function to load configuration data. Client provides an implementation.

Parameters

TUint32 aPackageTypeType identifier.
TUint32 aPackageIDPackage identifier.
TUint32 aStartPosition = 0First byte.
TUint32 aEndPosition =  KMaxTUint32 Last byte. If greater than the size of the data, rest of the data is given.

MghdoGrammarCombinerComplete(HBufC8 *, TInt)

voidMghdoGrammarCombinerComplete(HBufC8 *aResult,
TIntaError
)[pure virtual]
Called after grammar combination has finished or stopped.
Since
2.8

Parameters

HBufC8 * aResultThe compiled grammar. Format dependes on the technology provider.
TInt aErrorKErrNone or a system-wide error code

MghdoGrammarCompilerComplete(TInt)

voidMghdoGrammarCompilerComplete(TIntaError)[pure virtual]
Called after grammar compilation has finished or stopped.
Since
2.8

Parameters

TInt aErrorKErrNone or a system-wide error code

MghdoSILexiconL(TSILexiconID)

CSILexicon *MghdoSILexiconL(TSILexiconIDaID)[pure virtual]
Combination and compilation operations require lexicons. To provide those lexicons when needed, the client must implement these functions. CASRGrCompilerHwDevice takes ownership of the data.
Since
2.8

Parameters

TSILexiconID aIDThe lexicon identifier