CNssContextSrsPortal Class Reference

class CNssContextSrsPortal : public CBase
CNssContextSrsPortal is the interface to SRS. NssVASApi.lib
Since
2.8

Inherits from

Public Member Functions
CNssContextSrsPortal ()
~CNssContextSrsPortal ()
void BeginDeleteContextL ( CNssContext *, MNssCoreSrsDBEventHandler *)
void BeginResetModelsL ( TSIModelBankID , TSIModelBankID &, MNssCoreSrsDBEventHandler *)
void BeginSaveContextL ( CNssContext *, MNssCoreSrsDBEventHandler *)
void CleanUp ( TInt )
TInt CommitSaveContext ()
TInt ContextCount ()
void DeleteSRS ()
void Deregister ()
MNssCoreSrsDBEventHandler::TNssSrsDBResult DoSrsDBResult ( TInt )
void MsruoEvent ( TUid , TInt )
void Register ()
TInt RollbackSaveContext ()
void SetTerminationState ( TNssTerminationState )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TNssTerminationState { EVASTERMINATION_PENDING , EVASTERMINATION_NOT_PENDING }
Private Member Enumerations
enum TState {
EVASNone , EVASCreateModelBank , EVASCreateLexicon , EVASCreateGrammar , EVASRemoveModelBank , EVASRemoveLexicon , EVASRemoveGrammar , EVASResetRemoveModelBank , EVASResetCreateModelBank , EVasWaitForCommitChanges
}
Private Attributes
CNssContext * iContext
TInt iContextCount
TSIGrammarID iGrammarId
TSILexiconID iLexiconId
TSIModelBankID iModelBankId
TBool iRecovery
TSIModelBankID * iResetModelBankId
CNssSiUtilityWrapper * iSpeechRecognitionUtility
MNssCoreSrsDBEventHandler * iSrsDBEventHandler
enum CNssContextSrsPortal::TState iState
TNssTerminationState iTerminationState

Constructor & Destructor Documentation

CNssContextSrsPortal()

CNssContextSrsPortal ( )

C++ constructor

~CNssContextSrsPortal()

~CNssContextSrsPortal ( )

C++ destructor

Member Functions Documentation

BeginDeleteContextL(CNssContext *, MNssCoreSrsDBEventHandler *)

void BeginDeleteContextL ( CNssContext * aContext,
MNssCoreSrsDBEventHandler * aSrsDBEventHandler
)
Delete a context from SRS. Asyncronous function
Since
2.0

Parameters

CNssContext * aContext - context to be deleted
MNssCoreSrsDBEventHandler * aSrsDBEventHandler - call back address

BeginResetModelsL(TSIModelBankID, TSIModelBankID &, MNssCoreSrsDBEventHandler *)

void BeginResetModelsL ( TSIModelBankID aAdaptedModels,
TSIModelBankID & aNewModels,
MNssCoreSrsDBEventHandler * aSrsDBEventHandler
)
Reset speaker adapted models: Remove a model bank and create a new one.
Since
2.8

Parameters

TSIModelBankID aAdaptedModels
TSIModelBankID & aNewModels
MNssCoreSrsDBEventHandler * aSrsDBEventHandler

BeginSaveContextL(CNssContext *, MNssCoreSrsDBEventHandler *)

void BeginSaveContextL ( CNssContext * aContext,
MNssCoreSrsDBEventHandler * aSrsDBEventHandler
)
Save a context to SRS. Asyncronous function.
Since
2.0

Parameters

CNssContext * aContext - context to be saved
MNssCoreSrsDBEventHandler * aSrsDBEventHandler - call back address

CleanUp(TInt)

void CleanUp ( TInt aResult )
Clean up the SRS after the SRS operation fail
Since
2.0

Parameters

TInt aResult

CommitSaveContext()

TInt CommitSaveContext ( )
Commit a context from SRS. Syncronous function
Since
2.0

ContextCount()

TInt ContextCount ( )
Returns context count, number of contexts registered with the portal
Since
2.0

DeleteSRS()

void DeleteSRS ( )
Delete the SRS
Since
2.0

Deregister()

void Deregister ( )
Deregister context from portal
Since
2.0

DoSrsDBResult(TInt)

MNssCoreSrsDBEventHandler::TNssSrsDBResult DoSrsDBResult ( TInt aResult )
Method to process the SRS DB error
Since
2.0

Parameters

TInt aResult - the result value from SRS to indicate an error

MsruoEvent(TUid, TInt)

void MsruoEvent ( TUid aEvent,
TInt aResult
)
overriding interface from MSpeechRecognitionUtilityObserver
Since
2.0

Parameters

TUid aEvent
TInt aResult

Register()

void Register ( )
Register context to the portal
Since
2.0

RollbackSaveContext()

TInt RollbackSaveContext ( )
Don't commit a context from SRS. Syncronous function
Since
2.8

SetTerminationState(TNssTerminationState)

void SetTerminationState ( TNssTerminationState aState )
Set portal state to termination pending, or not pending
Since
2.0

Parameters

TNssTerminationState aState - termination pending, or not.

Member Enumerations Documentation

Enum TNssTerminationState

Enumerators

EVASTERMINATION_PENDING
EVASTERMINATION_NOT_PENDING

Enum TState

Enumerators

EVASNone
EVASCreateModelBank
EVASCreateLexicon
EVASCreateGrammar
EVASRemoveModelBank
EVASRemoveLexicon
EVASRemoveGrammar
EVASResetRemoveModelBank
EVASResetCreateModelBank
EVasWaitForCommitChanges

Member Data Documentation

CNssContext * iContext

CNssContext * iContext [private]

TInt iContextCount

TInt iContextCount [private]

TSIGrammarID iGrammarId

TSIGrammarID iGrammarId [private]

TSILexiconID iLexiconId

TSILexiconID iLexiconId [private]

TSIModelBankID iModelBankId

TSIModelBankID iModelBankId [private]

TBool iRecovery

TBool iRecovery [private]

TSIModelBankID * iResetModelBankId

TSIModelBankID * iResetModelBankId [private]

CNssSiUtilityWrapper * iSpeechRecognitionUtility

CNssSiUtilityWrapper * iSpeechRecognitionUtility [private]

MNssCoreSrsDBEventHandler * iSrsDBEventHandler

MNssCoreSrsDBEventHandler * iSrsDBEventHandler [private]

enum CNssContextSrsPortal::TState iState

enum CNssContextSrsPortal::TState iState [private]

TNssTerminationState iTerminationState

TNssTerminationState iTerminationState [private]