00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __UAPI__EMBEDDEDGRAMMAR
00021 #define __UAPI__EMBEDDEDGRAMMAR
00022
00023 #include "exports.h"
00024 #include "ReturnCode.h"
00025 #include "Grammar.h"
00026
00027
00028 namespace android
00029 {
00030 namespace speech
00031 {
00032 namespace recognition
00033 {
00034 class EmbeddedGrammarProxy;
00040 class EmbeddedGrammar: public Grammar
00041 {
00042 public:
00048 virtual void compileAllSlots(ReturnCode::Type& returnCode) = 0;
00049
00055 virtual void resetAllSlots(ReturnCode::Type& returnCode) = 0;
00056
00063 virtual void save(const char* path, ReturnCode::Type& returnCode) = 0;
00064 protected:
00068 UAPI_EXPORT EmbeddedGrammar();
00072 UAPI_EXPORT virtual ~EmbeddedGrammar();
00073
00074 friend class EmbeddedGrammarProxy;
00075 };
00076
00077
00078
00079
00080 DECLARE_SMARTPROXY(UAPI_EXPORT, EmbeddedGrammarProxy, GrammarProxy, EmbeddedGrammar)
00081 }
00082 }
00083 }
00084
00085 #endif