diff options
Diffstat (limited to 'ace/XtReactor.h')
-rw-r--r-- | ace/XtReactor.h | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/ace/XtReactor.h b/ace/XtReactor.h deleted file mode 100644 index 2eefbd25873..00000000000 --- a/ace/XtReactor.h +++ /dev/null @@ -1,105 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// XtReactor.h -// -// = AUTHOR -// Eric C. Newton's <ecn@clark.net> and Douglas C. Schmidt <schmidt@cs.wustl.edu> -// -// ============================================================================ - -#if !defined (ACE_XTREACTOR_H) -#define ACE_XTREACTOR_H - -#include "ace/Select_Reactor.h" - -#if defined (ACE_HAS_XT) - -#define String XtString -#include /**/ <X11/Intrinsic.h> -#undef String - -// Forward decl. -struct ACE_XtReactorID; - -class ACE_XtReactor : public ACE_Select_Reactor -{ - // = TITLE - // An object oriented event demultiplexor and event handler - // dispatcher that uses the X Toolkit functions. -public: - // = Initialization and termination methods. - ACE_XtReactor (XtAppContext context, - size_t size = DEFAULT_SIZE, - int restart = 0, - ACE_Sig_Handler * = 0); - virtual ~ACE_XtReactor (void); - - XtAppContext context (void); - - // = Timer operations. - virtual long schedule_timer (ACE_Event_Handler *handler, - const void *arg, - const ACE_Time_Value &delta_time, - const ACE_Time_Value &interval); - - virtual int cancel_timer (ACE_Event_Handler *handler, - int dont_call_handle_close = 1); - - virtual int cancel_timer (long timer_id, - const void **arg = 0, - int dont_call_handle_close = 1); - -protected: - // = Register timers/handles with Xt. - virtual int register_handler_i (ACE_HANDLE handle, - ACE_Event_Handler *handler, - ACE_Reactor_Mask mask); - // Register a single <handler>. - - virtual int register_handler_i (const ACE_Handle_Set &handles, - ACE_Event_Handler *handler, - ACE_Reactor_Mask mask); - // Register a set of <handlers>. - - virtual int remove_handler_i (ACE_HANDLE handle, - ACE_Reactor_Mask mask); - // Remove the <handler> associated with this <handle>. - - virtual int remove_handler_i (const ACE_Handle_Set &handles, - ACE_Reactor_Mask); - // Remove a set of <handles>. - - virtual int wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &, - ACE_Time_Value *); - // Wait for events to occur. - - virtual int XtWaitForMultipleEvents (int, - ACE_Select_Reactor_Handle_Set &, - ACE_Time_Value *); - - XtAppContext context_; - struct ACE_XtReactorID *ids_; - int id_len_; - XtIntervalId timeout_; - -private: - void reset_timeout (void); - - // = Integrate with the X callback function mechanism. - static void TimerCallbackProc (XtPointer closure, XtIntervalId *id); - static void InputCallbackProc (XtPointer closure, int* source, XtInputId *id); - - ACE_XtReactor (const ACE_XtReactor &); - ACE_XtReactor &operator = (const ACE_XtReactor &); - // Deny access since member-wise won't work... -}; -#endif /* ACE_HAS_XT */ - -#endif /* ACE_XTREACTOR_H */ |