// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Soapconn.pas' rev: 10.00

#ifndef SoapconnHPP
#define SoapconnHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Midas.hpp>	// Pascal unit
#include <Dbclient.hpp>	// Pascal unit
#include <Soaphttptrans.hpp>	// Pascal unit
#include <Rio.hpp>	// Pascal unit
#include <Soaphttpclient.hpp>	// Pascal unit
#include <Soapmidas.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Soapconn
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSoapConnection;
class PASCALIMPLEMENTATION TSoapConnection : public Dbclient::TCustomRemoteServer 
{
	typedef Dbclient::TCustomRemoteServer inherited;
	
private:
	Soaphttpclient::THTTPRIO* FRIO;
	AnsiString FURL;
	AnsiString FAgent;
	AnsiString FPassword;
	AnsiString FProxy;
	AnsiString FProxyByPass;
	AnsiString FUserName;
	Midas::_di_IAppServer FAppServer;
	Soapmidas::_di_IAppServerSOAP FSOAPServer;
	bool FUseSOAPAdapter;
	AnsiString FSOAPServerIID;
	Rio::TAfterExecuteEvent FOnAfterExecute;
	Rio::TBeforeExecuteEvent FOnBeforeExecute;
	AnsiString __fastcall GetAgent();
	AnsiString __fastcall GetPassword();
	AnsiString __fastcall GetProxy();
	AnsiString __fastcall GetProxyByPass();
	AnsiString __fastcall GetUserName();
	void __fastcall SetAgent(const AnsiString Value);
	void __fastcall SetPassword(const AnsiString Value);
	void __fastcall SetProxy(const AnsiString Value);
	void __fastcall SetProxyByPass(const AnsiString Value);
	void __fastcall SetURL(const AnsiString Value);
	void __fastcall SetUserName(const AnsiString Value);
	
protected:
	virtual void __fastcall DoConnect(void);
	virtual bool __fastcall GetConnected(void);
	virtual void __fastcall DoDisconnect(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	void __fastcall SetUseSoapAdapter(bool Value);
	void __fastcall SetSOAPServerIID(const AnsiString IID);
	GUID __fastcall GetSOAPServerIID();
	
public:
	__fastcall virtual TSoapConnection(Classes::TComponent* AOwner);
	__fastcall virtual ~TSoapConnection(void);
	virtual OleVariant __fastcall GetServerList();
	virtual void __fastcall GetProviderNames(Classes::TGetStrProc Proc);
	virtual Midas::_di_IAppServer __fastcall GetServer();
	Soapmidas::_di_IAppServerSOAP __fastcall GetSOAPServer();
	__property Soaphttpclient::THTTPRIO* RIO = {read=FRIO};
	
__published:
	__property AnsiString Agent = {read=GetAgent, write=SetAgent};
	__property Connected  = {default=0};
	__property AfterConnect ;
	__property BeforeConnect ;
	__property AfterDisconnect ;
	__property BeforeDisconnect ;
	__property AnsiString Password = {read=GetPassword, write=SetPassword};
	__property AnsiString Proxy = {read=GetProxy, write=SetProxy};
	__property AnsiString ProxyByPass = {read=GetProxyByPass, write=SetProxyByPass};
	__property AnsiString URL = {read=FURL, write=SetURL};
	__property AnsiString SOAPServerIID = {read=FSOAPServerIID, write=SetSOAPServerIID};
	__property AnsiString UserName = {read=GetUserName, write=SetUserName};
	__property bool UseSOAPAdapter = {read=FUseSOAPAdapter, write=SetUseSoapAdapter, nodefault};
	__property Rio::TAfterExecuteEvent OnAfterExecute = {read=FOnAfterExecute, write=FOnAfterExecute};
	__property Rio::TBeforeExecuteEvent OnBeforeExecute = {read=FOnBeforeExecute, write=FOnBeforeExecute};
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Soapconn */
using namespace Soapconn;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Soapconn
