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

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

#ifndef IdrshserverHPP
#define IdrshserverHPP

#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 <Classes.hpp>	// Pascal unit
#include <Idassignednumbers.hpp>	// Pascal unit
#include <Idremotecmdserver.hpp>	// Pascal unit
#include <Idtcpclient.hpp>	// Pascal unit
#include <Idtcpserver.hpp>	// Pascal unit
#include <Idcomponent.hpp>	// Pascal unit

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

namespace Idrshserver
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TIdRSHCommandEvent)(Idtcpserver::TIdPeerThread* AThread, Idtcpclient::TIdTCPClient* AStdError, AnsiString AClientUserName, AnsiString AHostUserName, AnsiString ACommand);

class DELPHICLASS TIdRSHServer;
class PASCALIMPLEMENTATION TIdRSHServer : public Idremotecmdserver::TIdRemoteCMDServer 
{
	typedef Idremotecmdserver::TIdRemoteCMDServer inherited;
	
protected:
	TIdRSHCommandEvent FOnCommand;
	virtual void __fastcall DoCMD(Idtcpserver::TIdPeerThread* AThread, Idtcpclient::TIdTCPClient* AStdError, AnsiString AParam1, AnsiString AParam2, AnsiString ACommand);
	
public:
	__fastcall virtual TIdRSHServer(Classes::TComponent* AOwner);
	
__published:
	__property TIdRSHCommandEvent OnCommand = {read=FOnCommand, write=FOnCommand};
	__property DefaultPort  = {default=514};
	__property bool ForcePortsInRange = {read=FForcePortsInRange, write=FForcePortsInRange, default=1};
public:
	#pragma option push -w-inl
	/* TIdTCPServer.Destroy */ inline __fastcall virtual ~TIdRSHServer(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const bool RSH_FORCEPORTSINRANGE = true;

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

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