diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h new file mode 100644 index 00000000000..28723bab228 --- /dev/null +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h @@ -0,0 +1,86 @@ +/* _*_ C++ _*_ */ +//$Id$ + +#ifndef _AV_AUDIO_CONTROL_H +#define _AV_AUDIO_CONTROL_H + +#include "mpeg_shared/Audio_ControlS.h" +#include "Globals.h" +#include "Audio_Server.h" + +class Audio_Control_State; + +class Audio_Control_i + :public virtual POA_Audio_Control +{ +public: + Audio_Control_i (void); + // Default Constructor + + ~Audio_Control_i (void); + // Default destructor + + int create_handlers (void); + // creates the data and sig handlers. + + virtual CORBA::Boolean init_audio ( + const Audio_Control::INITaudioPara & para, + Audio_Control::INITaudioReply_out reply_para, + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + virtual CORBA::Boolean play ( + const Audio_Control::PLAYPara & para, + CORBA::Long_out ats, + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + virtual CORBA::Boolean speed ( + const Audio_Control::SPEEDPara & para, + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + virtual CORBA::Boolean stop ( + CORBA::Long cmdsn, + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + virtual CORBA::Boolean set_peer ( + char *&peer, + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + virtual void close ( + CORBA::Environment &_tao_environment + ) + ACE_THROW_SPEC (( CORBA::SystemException )); + + void change_state (Audio_Control_State *state); + // Changes the state of the Audio Control object. + + Audio_Control_State *get_state (void); + // gets the state. +private: + int register_handlers (void); + + ACE_Reactor *reactor_; + + Audio_Control_State *state_; + + Audio_Data_Handler *data_handler_; + + Audio_Sig_Handler *sig_handler_; + + ACE_SOCK_CODgram dgram_; + + Audio_Global *audio_global_; +}; + +typedef ACE_Singleton <Audio_Control_i,ACE_Null_Mutex> AUDIO_CONTROL_I; + +#endif /*_AV_AUDIO_CONTROL_H */ |