CNssContext Class Reference
class CNssContext : public CBase
|
CContext is the implementation class for
MNssContext
. It encapsulates context data. A context cannot be directly created by a client. A client has to own an instance of Context Manager which has methods for creating context objects. The CContext class also provides additional members for internal use by NssVAS. NssVASApi.lib
-
Since
-
2.0
Constructor & Destructor Documentation
CNssContext(CNssContextSrsPortal *)
Member Functions Documentation
BeginDeleteFromSrsL(MNssCoreSrsDBEventHandler *)
Delete the context from the SRS. for internal use deletes grammar from SRS
-
Since
-
2.0
BeginSaveToSrsL(MNssCoreSrsDBEventHandler *)
Save the context to the SRS. for internal use This method is used to save the context to the SRS. This creates the model bank, lexicon, and grammar for a context. Model bank, and lexicon are created only for the first time, and are thus, fixed. For every context, there is one grammar id. After, model bank, lexicon, and grammar are created, the corresponding Ids are set in the context object.
-
Since
-
2.0
ClientData()
Gets the client data.
-
Since
-
2.8
CommitSrsChanges()
TInt
|
CommitSrsChanges
|
(
|
)
|
|
Commit the context from the SRS. for internal use Commit the changes from SRS
-
Since
-
2.0
ContextId()
Get the context id for internal use
-
Since
-
2.0
ContextName()
Get the name of the context
-
Since
-
2.0
CopyL()
Create a copy of the context. for internal use This function creates a new context by allocating memory for a new context, and deep copying the members of the context on which this fucntion is called. Old context and new context exist. Client need to deallocate memory.
-
Since
-
2.0
GrammarId()
Get the grammar id for internal use
-
Since
-
2.0
IsGlobal()
Is the context global
-
Since
-
2.0
LexiconId()
Get the lexicon id for internal use
-
Since
-
2.0
ModelBankAndLexiconExist()
TBool
|
ModelBankAndLexiconExist
|
(
|
)
|
|
Get the iModelBankAndLexiconExist flag for internal use
-
Since
-
2.0
ModelBankId()
Get the model bank id for internal use
-
Since
-
2.0
RecognitionMode()
TNSSRecognitionMode
|
RecognitionMode
|
(
|
)
|
const
|
Get the recognition mode for internal use
-
Since
-
2.8
RollbackSrsChanges()
TInt
|
RollbackSrsChanges
|
(
|
)
|
|
Don't commit the context from the SRS. for internal use Doesn't commit the changes from SRS
-
Since
-
2.8
SetClientData(const TDesC8 &)
void
|
SetClientData
|
(
|
const
TDesC8
&
|
aData
|
)
|
|
Parameters
const
TDesC8
& aData
|
At most 100 bytes of serialized client data.
|
SetContextId(TInt)
void
|
SetContextId
|
(
|
TInt
|
aContextId
|
)
|
|
Set the context id for internal use
-
Since
-
2.0
Parameters
TInt
aContextId
|
- the context id
|
SetGlobal(TBool)
void
|
SetGlobal
|
(
|
TBool
|
aGlobal
|
)
|
|
Sets/Resets the global flag for the context
-
Since
-
2.0
Parameters
TBool
aGlobal
|
ETrue to set the context as global, EFalse as not global
|
SetGrammarId(TUint32)
void
|
SetGrammarId
|
(
|
TUint32
|
aGrammarId
|
)
|
|
Set the grammar id for internal use
-
Since
-
2.0
Parameters
TUint32
aGrammarId
|
- the grammar id
|
SetLexiconId(TUint32)
void
|
SetLexiconId
|
(
|
TUint32
|
aLexiconId
|
)
|
|
Set the lexicon id for internal use
-
Since
-
2.0
Parameters
TUint32
aLexiconId
|
- the lexicon id
|
SetModelBankAndLexiconExist(TBool)
void
|
SetModelBankAndLexiconExist
|
(
|
TBool
|
aVal
|
)
|
|
Set/Reset the iModelBankAndLexiconExist flag. for internal use
-
Since
-
2.0
SetModelBankId(TUint32)
void
|
SetModelBankId
|
(
|
TUint32
|
aModelBankId
|
)
|
|
Set the model bank id for internal use
-
Since
-
2.0
Parameters
TUint32
aModelBankId
|
- the model bank id
|
SetNameL(const TDesC &)
void
|
SetNameL
|
(
|
const
TDesC
&
|
aName
|
)
|
|
Sets the name of the context
-
Since
-
2.0
Parameters
const
TDesC
& aName
|
name of the context as a descriptor
|
SetRecognitionMode(TNSSRecognitionMode)
void
|
SetRecognitionMode
|
(
|
TNSSRecognitionMode
|
aRecognitionMode
|
)
|
|
Set the speech technology (Speaker independent or dependent) for internal use
-
Since
-
2.0
Parameters
TNSSRecognitionMode
aRecognitionMode
|
- the recognition mode
|
operator=(const CNssContext &)
overloaded assignment operator for internal use
-
Since
-
2.0
Member Data Documentation
TBuf8< 100 > iClientData
TBuf8
< 100 >
|
iClientData
|
[private]
|
TInt
iContextId
TInt
|
iContextId
|
[private]
|
CNssContextSrsPortal * iContextSrsPortal
TBool
iModelBankAndLexiconExist
TBool
|
iModelBankAndLexiconExist
|
[private]
|
TNSSRecognitionMode
iRecognitionMode
TNSSRecognitionMode
|
iRecognitionMode
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.