android.speech.recognition.SrecGrammarListener Class Reference

Inheritance diagram for android.speech.recognition.SrecGrammarListener:

Inheritance graph
[legend]
Collaboration diagram for android.speech.recognition.SrecGrammarListener:

Collaboration graph
[legend]

List of all members.


Detailed Description

Listens for SrecGrammar events.

Author:
Emilio Aguirre

Public Member Functions

virtual void onAddItemList ()=0
virtual void onAddItemListFailure (int index, ReturnCode::Type returnCode)=0
virtual void onLoadedVoicetag ()=0
virtual void onSavedVoicetag ()=0
virtual void onSaved (const char *path)=0
virtual void onCompileAllSlots ()=0
virtual void onResetAllSlots ()=0
virtual void onError (ReturnCode::Type returnCode)=0
virtual void onLoaded ()=0
virtual void onUnloaded ()=0
virtual bool isEmbeddedGrammarListener ()=0
virtual bool isSrecGrammarListener ()=0

Member Function Documentation

virtual void android.speech.recognition.SrecGrammarListener.onAddItemList (  )  [pure virtual]

Invokes after all items of the list have been added.

virtual void android.speech.recognition.SrecGrammarListener.onAddItemListFailure ( int  index,
ReturnCode::Type  returnCode 
) [pure virtual]

Invoked when adding a SlotItem from a list fails. This callback will be trigger for each element in the list that fails to be add in the slot, unless there is a grammar fail operation, which will be reported in the onError callback.

Parameters:
index the item index that cause the failure.
e the cause of the failure.

virtual void android.speech.recognition.SrecGrammarListener.onLoadedVoicetag (  )  [pure virtual]

Invoked after a Voicetag has been loaded.

virtual void android.speech.recognition.SrecGrammarListener.onSavedVoicetag (  )  [pure virtual]

Invoked after a Voicetag has been saved.

virtual void android.speech.recognition.EmbeddedGrammarListener.onSaved ( const char *  path  )  [pure virtual, inherited]

Invoked after the grammar is saved.

Parameters:
path the path the grammar was saved to

virtual void android.speech.recognition.EmbeddedGrammarListener.onCompileAllSlots (  )  [pure virtual, inherited]

Invokes after all grammar slots have been compiled.

virtual void android.speech.recognition.EmbeddedGrammarListener.onResetAllSlots (  )  [pure virtual, inherited]

Invokes after all grammar slots have been reset.

virtual void android.speech.recognition.EmbeddedGrammarListener.onError ( ReturnCode::Type  returnCode  )  [pure virtual, inherited]

Invoked when an unexpected error occurs. This is normally followed by onStopped() if the component shuts down successfully.

Parameters:
returnCode GRAMMAR_SLOT_FULL if an item cannot be added into a grammar slot because it is full.
NOT_SUPPORTED if different words with the same pronunciation are added.
INVALID_STATE if reseting or compiling the slots fails.
READ_ERROR if the grammar could not be loaded.
WRITE_ERROR if the grammar could not be saved.

Implements android.speech.recognition.GrammarListener.

virtual void android.speech.recognition.GrammarListener.onLoaded (  )  [pure virtual, inherited]

Invoked after the grammar is loaded.

virtual void android.speech.recognition.GrammarListener.onUnloaded (  )  [pure virtual, inherited]

Invoked after the grammar is unloaded.

virtual bool android.speech.recognition.GrammarListener.isEmbeddedGrammarListener (  )  [pure virtual, inherited]

Returns true if the listener is an EmbeddedGrammarListener.

Returns:
true if the listener is an EmbeddedGrammarListener

virtual bool android.speech.recognition.GrammarListener.isSrecGrammarListener (  )  [pure virtual, inherited]

Returns true if the listener is an SrecGrammarListener.

Returns:
true if the listener is an SrecGrammarListener


Generated on Thu May 1 17:16:52 2008 for UAPI by  doxygen 1.5.3