00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef __UAPI__AUDIOSOURCELISTER
00021 #define __UAPI__AUDIOSOURCELISTER
00022 
00023 #include "exports.h"
00024 #include "ReturnCode.h"
00025 #include "SmartProxy.h"
00026 
00027 namespace android
00028 {
00029   namespace speech
00030   {
00031     namespace recognition
00032     {
00036       class AudioSourceListener
00037       {
00038         public:
00042           virtual void onStarted() = 0;
00043           
00047           virtual void onStopped() = 0;
00048           
00055           virtual void onError(ReturnCode::Type error) = 0;
00056         protected:
00060           UAPI_EXPORT AudioSourceListener();
00064           UAPI_EXPORT virtual ~AudioSourceListener();
00065           
00066           friend class AudioSourceListenerProxy;
00067       };
00068       
00069       
00070 
00071 
00072       
00073       DECLARE_SMARTPROXY(UAPI_EXPORT, AudioSourceListenerProxy, android::speech::recognition::SmartProxy,
00074                          AudioSourceListener)
00075     }
00076   }
00077 }
00078 
00079 #endif