diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h index ec6a2be7993..df205b13717 100644 --- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h +++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h @@ -30,7 +30,11 @@ #include "ace/Reactor.h" #include "ace/Event_Handler.h" +#include "ace/ARGV.h" +#include "tao/TAO.h" +#include "orbsvcs/CosNamingC.h" +#include "mpeg_shared/Video_ControlC.h" class Command_Handler : public virtual ACE_Event_Handler @@ -47,6 +51,12 @@ public: Command_Handler (ACE_HANDLE command_handle); // Construct this handler with a control (UNIX) handle + int init (void); + // initialize the ORB. + + int resolve_server_reference (void); + // Resolve the AV server reference. + virtual int handle_input (ACE_HANDLE fd = ACE_INVALID_HANDLE); // Called when input events occur (e.g., connection or data). @@ -54,8 +64,44 @@ public: // Returns the handle used by the event_handler. private: + CORBA::Boolean init_video (void); + + CORBA::Boolean stat_stream (CORBA::Char_out ch, + CORBA::Long_out size) ; + + CORBA::Boolean close (void) ; + + CORBA::Boolean stat_sent (void) ; + + CORBA::Boolean fast_forward (void); + + CORBA::Boolean fast_backward (void); + + CORBA::Boolean step (void); + + CORBA::Boolean play (int flag, + CORBA::Environment& env); + + CORBA::Boolean position (void); + + int position_release (void); + + int volume (void); + + int balance (void); + + CORBA::Boolean speed (void); + + CORBA::Boolean stop (void); + ACE_HANDLE command_handle_; // The fd for the UNIX command socket + + TAO_ORB_Manager *orb_manager_; + // orb manager + + Video_Control_var video_control_; + // Video control object }; |