// CodeGear C++Builder
// Copyright (c) 1995, 2023 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'FMX.uecMapZip.pas' rev: 36.00 (Windows)

#ifndef Fmx_UecmapzipHPP
#define Fmx_UecmapzipHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <System.SysUtils.hpp>
#include <System.Types.hpp>
#include <System.UITypes.hpp>
#include <System.Rtti.hpp>
#include <System.Classes.hpp>
#include <System.Diagnostics.hpp>
#include <System.IOUtils.hpp>
#include <System.Zip.hpp>
#include <System.SyncObjs.hpp>
#include <FMX.Types.hpp>
#include <FMX.Platform.hpp>
#include <FMX.uecMapUtil.hpp>

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

namespace Fmx
{
namespace Uecmapzip
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TECMapZip;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TECMapZip : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	System::Zip::TZipFile* FZip;
	System::Classes::TStream* FMStream;
	System::UnicodeString FFilename;
	System::UnicodeString FDelim;
	System::UnicodeString FLocalCache;
	System::Syncobjs::TCriticalSection* FCritSect;
	void __fastcall Lock();
	void __fastcall UnLock();
	void __fastcall setLocalCache(const System::UnicodeString path);
	
public:
	__fastcall TECMapZip(const System::UnicodeString FilenameMapZip, const System::UnicodeString PathLocalCache);
	__fastcall virtual ~TECMapZip();
	void __fastcall ExtractAll(const System::UnicodeString Path);
	bool __fastcall Extract(const System::UnicodeString Filename);
	void __fastcall ReadAndExtractToCache(const System::UnicodeString Filename, System::Classes::TMemoryStream* Stream);
	void __fastcall ReadStream(const System::UnicodeString Filename, System::Classes::TMemoryStream* Stream);
	__property System::UnicodeString Filename = {read=FFilename};
	__property System::UnicodeString LocalCache = {read=FLocalCache, write=setLocalCache};
};

#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
extern DELPHI_PACKAGE void __fastcall CreateMapZipFromDirectory(const System::UnicodeString FilenameMapZip, const System::UnicodeString Directory);
}	/* namespace Uecmapzip */
}	/* namespace Fmx */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX_UECMAPZIP)
using namespace Fmx::Uecmapzip;
#endif
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX)
using namespace Fmx;
#endif
#pragma pack(pop)
#pragma option pop

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