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

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

#ifndef InsaslHPP
#define InsaslHPP

#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 <Inbasecomponent.hpp>	// Pascal unit
#include <Intcpconnection.hpp>	// Pascal unit
#include <Inexception.hpp>	// Pascal unit

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

namespace Insasl
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TInSASLResult { srSuccess, srFailure, srAborted };
#pragma option pop

typedef SmallString<20>  TInSASLServiceName;

class DELPHICLASS TInSASL;
class PASCALIMPLEMENTATION TInSASL : public Inbasecomponent::TInBaseComponent 
{
	typedef Inbasecomponent::TInBaseComponent inherited;
	
protected:
	unsigned FSecurityLevel;
	unsigned __fastcall GetSecurityLevel(void);
	virtual void __fastcall InitComponent(void);
	
public:
	__fastcall virtual ~TInSASL(void);
	virtual AnsiString __fastcall StartAuthenticate(const AnsiString AChallenge) = 0 ;
	virtual AnsiString __fastcall ContinueAuthenticate(const AnsiString ALastResponse);
	virtual void __fastcall FinishAuthenticate(void);
	virtual bool __fastcall IsAuthProtocolAvailable(Classes::TStrings* AFeatStrings);
	__property unsigned SecurityLevel = {read=GetSecurityLevel, nodefault};
	#pragma option push -w-inl
	/* virtual class method */ virtual TInSASLServiceName __fastcall ServiceName() { return ServiceName(__classid(TInSASL)); }
	#pragma option pop
	/*         class method */ static TInSASLServiceName __fastcall ServiceName(TMetaClass* vmt);
public:
	#pragma option push -w-inl
	/* TInBaseComponent.Create */ inline __fastcall TInSASL(Classes::TComponent* AOwner)/* overload */ : Inbasecomponent::TInBaseComponent(AOwner) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE Classes::TThreadList* GlobalSASLList;

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

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