CNssSpeechItemTrainer Class Reference
class CNssSpeechItemTrainer : public CBase |
Public Member Functions |
---|
| ~CNssSpeechItemTrainer() |
TBool
| CheckContext(CNssContext &) |
TBool
| CheckTrainingParametersL(const CNssTrainingParameters *) |
void | CleanUpTraining() |
TInt
| CommitSIUpdate() |
TInt
| CreateSrsApi() |
void | DeleteNextTag() |
TInt
| DeleteTagDelayed(MNssDeleteTagClient *, CNssTag &) |
void | DoDeleteGroupedTags() |
void | DoDeleteTags() |
void | DoRetrainAddVoiceTags() |
void | DoRetrainTextDelayed() |
void | DoSaveTags() |
void | DoTrainTextDelayed() |
void | FinishDeleteTags(TInt) |
TBool
| GrammarIdBufferNeeded() |
void | HandleGrammarCreated(TInt) |
void | HandleLexiconCreated(TInt) |
void | HandleRemoveTagComplete() |
void | HandleRemoveTagFailed(TInt) |
void | HandleRemoveTagsComplete() |
void | HandleRetrainComplete(TInt) |
void | HandleTrainComplete(TInt) |
void | HandleTrainError(RPointerArray< CNssSpeechItem > *&) |
void | MsruoEvent(TUid, TInt) |
CNssSpeechItemTrainer * | NewL(CNssVASDatabase *) |
CNssSpeechItemTrainer * | NewLC(CNssVASDatabase *) |
void | RemoveTagsFinished(TInt) |
void | RemoveTagsFromVAS() |
void | RestartTimer() |
MNssSpeechItem::TNssSpeechItemResult
| RetrainTextDelayed(MNssTrainTextEventHandler *, CNssTrainingParameters *, CNssSpeechItem &, CNssContext &) |
void | RunBufferedActionsL() |
TInt
| SaveTagDelayed(MNssSaveTagClient *, CNssTag &) |
void | SendTrainingCallbacks(TInt) |
TBool
| SpeechItemBufferNeeded() |
TInt
| SpeechItems2Phrases(RPointerArray< CNssSpeechItem > &, RPointerArray< MDesCArray > &) |
CDesC16ArrayFlat * | SplitPhraseL(const TDesC &, TChar) |
MNssSpeechItem::TNssSpeechItemResult
| TrainTextDelayed(MNssTrainTextEventHandler *, CNssTrainingParameters *, CNssSpeechItem &, CNssContext &) |
TInt
| UncommitSIUpdate() |
Constructor & Destructor Documentation
CNssSpeechItemTrainer(CNssVASDatabase *)
Member Functions Documentation
CheckContext(CNssContext &)
CheckTrainingParametersL(const CNssTrainingParameters *)
ConstructL()
void | ConstructL | ( | ) | [private] |
Symbian 2nd phase constructor
CreateSrsApi()
Initializes iSrsApi or returns an error.
- Since
- 2.8
DeleteTagDelayed(MNssDeleteTagClient *, CNssTag &)
DoDeleteGroupedTags()
void | DoDeleteGroupedTags | ( | ) | |
DoRetrainAddVoiceTags()
void | DoRetrainAddVoiceTags | ( | ) | |
DoRetrainTextDelayed()
void | DoRetrainTextDelayed | ( | ) | |
FinishDeleteTags(TInt)
void | FinishDeleteTags | ( | TInt | aSuccess | ) | |
GrammarIdBufferNeeded()
TBool
| GrammarIdBufferNeeded | ( | ) | |
HandleGrammarCreated(TInt)
void | HandleGrammarCreated | ( | TInt | aError | ) | |
HandleLexiconCreated(TInt)
void | HandleLexiconCreated | ( | TInt | aError | ) | |
HandleRemoveTagComplete()
void | HandleRemoveTagComplete | ( | ) | |
HandleRemoveTagFailed(TInt)
void | HandleRemoveTagFailed | ( | TInt | aError | ) | |
HandleRemoveTagsComplete()
void | HandleRemoveTagsComplete | ( | ) | |
HandleRetrainComplete(TInt)
void | HandleRetrainComplete | ( | TInt | aResult | ) | |
HandleTrainComplete(TInt)
void | HandleTrainComplete | ( | TInt | aResult | ) | |
HandleTrainError(RPointerArray< CNssSpeechItem > *&)
MsruoEvent(TUid, TInt)
void | MsruoEvent | ( | TUid | aEvent, |
| TInt | aResult |
| ) | [virtual] |
RemoveTagsFinished(TInt)
void | RemoveTagsFinished | ( | TInt | aSuccess | ) | |
Cleanup/error handler function for Delayed Remove operation.
- Since
- 2.8
Parameters
TInt aSuccess | Success status of remove tags |
RetrainTextDelayed(MNssTrainTextEventHandler *, CNssTrainingParameters *, CNssSpeechItem &, CNssContext &)
Adds a names to the queue of names to be trained. These names are actually trained after a delay. Calling this function resets the delay timer.
- Since
- 2.8
RunBufferedActionsL()
void | RunBufferedActionsL | ( | ) | |
SaveTagDelayed(MNssSaveTagClient *, CNssTag &)
Queue a tag for saving.
- Since
- 2.8
SendTrainingCallbacks(TInt)
void | SendTrainingCallbacks | ( | TInt | aResult | ) | |
Cleans up training/retraining and sends the callbacks to the client.
- Since
- 2.8
Parameters
TInt aResult | Was training successful or not. |
SetState(TTrainState)
Set the train state. This is the place to check any state-related invariants and/or print state switching related info in UDEB
SpeechItemBufferNeeded()
TBool
| SpeechItemBufferNeeded | ( | ) | |
SpeechItems2Phrases(RPointerArray< CNssSpeechItem > &, RPointerArray< MDesCArray > &)
SplitPhraseL(const TDesC &, TChar)
SplitPhraseSindeL(const TDesC &, TChar)
TrainTextDelayed(MNssTrainTextEventHandler *, CNssTrainingParameters *, CNssSpeechItem &, CNssContext &)
Adds a names to the queue of names to be trained. These names are actually trained after a delay. Calling this function resets the delay timer.
- Since
- 2.8
Member Data Documentation
CNssTrainingActionTracker * iActionTracker
CNssTrainingActionTracker * | iActionTracker | [private] |
CNssVASDatabase * iDatabase
MNssDeleteTagClient * iDeleteEventHandler
RArray< TUint32 > * iDeleteRuleIDArray
RArray< TUint32 > * iGrammarIdBuffer
RArray< TUint32 > * iGrammarIdDeletingBuffer
RPointerArray< MDesCArray > iPhraseArray
RArray< TUint32 > * iRuleIDArray
MNssSaveTagClient * iSaveEventHandler
RPointerArray< CNssSpeechItem > * iSpeechItemBuffer
RPointerArray< CNssSpeechItem > * iSpeechItemTrainingBuffer
CNssSiUtilityWrapper * iSrsApi
CNssSiUtilityWrapper * | iSrsApi | [private] |
RPointerArray< CNssTag > * iTagBuffer
RPointerArray< CNssTag > * iTagDeleteBuffer
TInt
iTagDeleteCounter
TInt
| iTagDeleteCounter | [private] |
MNssTrainTextEventHandler * iTrainEventHandler
CNssTrainingParameters * iTrainingParams
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.