// $Id: simple_i.h 83358 2008-10-21 23:02:02Z sowayaa $

#ifndef SIMPLEI_H_
#define SIMPLEI_H_

#include "simpleS.h"

class  Simple_i : public virtual POA_Simple
{
public:
  Simple_i (CORBA::ORB_ptr orb, int iterations);

  virtual ~Simple_i (void);

virtual CORBA::Long test_method (
    CORBA::Boolean do_callback
  );

virtual void callback_object (
    Callback_ptr cb
  );

virtual void shutdown (

  );

  /// Not part of the CORBA interface. This method is called
  /// by our special orb event loop in server main().
  int call_client();

private:
  CORBA::ORB_var orb_;
  int ready_for_callback_;
  int callback_count_;
  Callback_var callback_;
};


#endif /* SIMPLEI_H_  */
