// Client.h,v 1.6 2002/01/29 20:21:11 okellogg Exp

// ============================================================================
//
// = LIBRARY
//   TAO/tests/Xt_Stopwatch/Stopwatch_client
//
// = FILENAME
//   Client.h
//
// = AUTHOR
//   Balachandran  Natarajan <bala@cs.wustl.edu>
//
// ============================================================================

#ifndef CLIENT_H
#define CLIENT_H

#include "testC.h"

#if defined (ACE_HAS_XT)

#include "tao/xt_resource.h"
class Control;

class Client
{
public:

  Client (CORBA::ORB_ptr orb);
  // ctor

  ~Client (void);
  //Dtor..

  static void start_callback (Widget w,
                              XtPointer client_data,
                              XtPointer call_data);
  static void stop_callback  (Widget w,
                              XtPointer client_data,
                              XtPointer call_data);
  // The callbacks

  void start_hook (void);
  void stop_hook (void);
  // The hooks...

  void add_callback (Control &);
  // Adds the callbacks to the GUI underneath.....

  void parse_args (int argc, char *argv[]
                   ACE_ENV_ARG_DECL);
private:

  CORBA::ORB_var orb_;
  // The ORB

  Stopwatch_var server_;
  // The server.
};

#endif /*ACE_HAS_XT*/
#endif /* CLIENT_H */
