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

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

#ifndef IwcompressHPP
#define IwcompressHPP

#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 <Windows.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Swsystem.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Httpapp.hpp>	// Pascal unit

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

namespace Iwcompress
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TIWCompressor;
class PASCALIMPLEMENTATION TIWCompressor : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	bool FAllowGZIP;
	bool FAllowDeflate;
	int FMinSize;
	int FLevel;
	AnsiString FContentTypes;
	AnsiString FSkipContentTypes;
	AnsiString FDontSkipContentTypes;
	bool FSkipAuto;
	int FBufSize;
	void __fastcall IntSendChunk(void * Data, int DataSize);
	void __fastcall GetSkipContentTypes(AnsiString UserAgent, AnsiString &Skip, AnsiString &DontSkip);
	bool __fastcall ContentTypeCheck(AnsiString ContentType, AnsiString UserAgent);
	
public:
	__fastcall virtual TIWCompressor(Classes::TComponent* AOwner);
	__fastcall virtual ~TIWCompressor(void);
	virtual void __fastcall Compress(System::TObject* Sender, Httpapp::TWebRequest* Request, Httpapp::TWebResponse* Response, bool &Handled);
	__property int Level = {read=FLevel, write=FLevel, nodefault};
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool libraryLoaded;
extern PACKAGE unsigned libraryHandle;
extern PACKAGE AnsiString libraryVersion;

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

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