00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef __UAPI__EMBEDDEDGRAMMARLISTENER
00021 #define __UAPI__EMBEDDEDGRAMMARLISTENER
00022 
00023 #include "exports.h"
00024 #include "ReturnCode.h"
00025 #include "GrammarListener.h"
00026 
00027 
00028 namespace android
00029 {
00030   namespace speech
00031   {
00032     namespace recognition
00033     {
00039       class EmbeddedGrammarListener: public GrammarListener
00040       {
00041         public:
00042           UAPI_EXPORT virtual ~EmbeddedGrammarListener();
00043           
00049           virtual void onSaved(const char* path) = 0;
00050           
00054           virtual void onCompileAllSlots() = 0;
00055           
00059           virtual void onResetAllSlots() = 0;
00060           
00072           virtual void onError(ReturnCode::Type returnCode) = 0;
00073       };
00077       DECLARE_SMARTPROXY(UAPI_EXPORT, EmbeddedGrammarListenerProxy, GrammarListenerProxy, EmbeddedGrammarListener)
00078     }
00079   }
00080 }
00081 
00082 #endif