//
// Handler_i.h,v 1.4 2003/04/23 02:51:02 bala Exp
//

#ifndef TAO_TUTORIALS_QUOTER_ONDEMAND_CLIENT_HANDLER_I_H
#define TAO_TUTORIALS_QUOTER_ONDEMAND_CLIENT_HANDLER_I_H

#include "QuoterS.h"

class Single_Query_Stock_Handler_i : public POA_Quoter::AMI_Single_Query_StockHandler
{
public:
  Single_Query_Stock_Handler_i (int *response_count);

  void get_price_and_names (CORBA::Double ami_return_val,
                           const char *symbol,
                           const char *full_name)
      throw (CORBA::SystemException);

  void get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void get_symbol(const char *)
    throw (CORBA::SystemException);
  void get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void get_full_name (const char *)
    throw (CORBA::SystemException);
  void get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void price (double)
    throw (CORBA::SystemException);
  void price_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

private:

  int *response_count_;
};

#endif /* TAO_TUTORIALS_QUOTER_AMI_CLIENT_HANDLER_I_H */
