Class TZip

Declaration
TZip = class(TObject)
  function Add(Action: Integer; ZipFile: String; FileName: String): Integer;
  property AddCompLevel: Integer read ReadAddCompLevel write WriteAddCompLevel;
  property AddDirNames: Boolean read ReadAddDirNames write WriteAddDirNames;
  property AddDiskSpan: Boolean read ReadAddDiskSpan write WriteAddDiskSpan;
  property AddDiskSpanErase: Boolean read ReadAddDiskSpanErase write WriteAddDiskSpanErase;
  property AddEncrypt: Boolean read ReadAddEncrypt write WriteAddEncrypt;
  property AddHiddenFiles: Boolean read ReadAddHiddenFiles write WriteAddHiddenFiles;
  function AddList(Action: Integer; ZipFile: String; FileNames: TStringList): Integer;
  property AddRecurseDirs: Boolean read ReadAddRecurseDirs write WriteAddRecurseDirs;
  property AddSeparateDirs: Boolean read ReadAddSeparateDirs write WriteAddSeparateDirs;
  property AddZipTime: Boolean read ReadAddZipTime write WriteAddZipTime;
  property ConfirmErase: Boolean read ReadConfirmErase write WriteConfirmErase;
  constructor Create;
  function Delete(ZipFile: String; FileName: String): Integer;
  function DeleteList(ZipFile: String; FileNames: TStringList): Integer;
  destructor Destroy;
  function Extract(Action: Integer; ZipFile: String; FileName: String; BaseDir: String): Integer;
  function ExtractList(Action: Integer; ZipFile: String; FileNames: TStringList; BaseDir: String): Integer;
  property ExtrDirNames: Boolean read ReadExtrDirNames write WriteExtrDirNames;
  property ExtrOverwrite: Boolean read ReadExtrOverwrite write WriteExtrOverwrite;
  property HowToDelete: Integer read ReadHowToDelete write WriteHowToDelete;
  property KeepFreeOnDisk1: Integer read ReadKeepFreeOnDisk1 write WriteKeepFreeOnDisk1;
  function List(ZipFile: String): TStringList;
  property MaxVolumeSize: Integer read ReadMaxVolumeSize write WriteMaxVolumeSize;
  function Message(ZipFile: String): String;
  property MinFreeVolumeSize: Integer read ReadMinFreeVolumeSize write WriteMinFreeVolumeSize;
  property Password: String read ReadPassword write WritePassword;
  function ReadAddCompLevel: Integer;
  function ReadAddDirNames: Boolean;
  function ReadAddDiskSpan: Boolean;
  function ReadAddDiskSpanErase: Boolean;
  function ReadAddEncrypt: Boolean;
  function ReadAddHiddenFiles: Boolean;
  function ReadAddRecurseDirs: Boolean;
  function ReadAddSeparateDirs: Boolean;
  function ReadAddZipTime: Boolean;
  function ReadConfirmErase: Boolean;
  function ReadExtrDirNames: Boolean;
  function ReadExtrOverwrite: Boolean;
  function ReadHowToDelete: Integer;
  function ReadKeepFreeOnDisk1: Integer;
  function ReadMaxVolumeSize: Integer;
  function ReadMinFreeVolumeSize: Integer;
  function ReadPassword: String;
  function ReadSFXAskCmdLine: Boolean;
  function ReadSFXAskFiles: Boolean;
  function ReadSFXCaption: String;
  function ReadSFXCommandLine: String;
  function ReadSFXDefaultDir: String;
  function ReadSFXHideOverwriteBox: Boolean;
  function ReadSFXOverwriteMode: Integer;
  function ReadSpan(SpanFile: String; var ZipFile: String): Integer;
  function ReadTemp: String;
  function SFX2ZIP(ZipFile: String): Integer;
  property SFXAskCmdLine: Boolean read ReadSFXAskCmdLine write WriteSFXAskCmdLine;
  property SFXAskFiles: Boolean read ReadSFXAskFiles write WriteSFXAskFiles;
  property SFXCaption: String read ReadSFXCaption write WriteSFXCaption;
  property SFXCommandLine: String read ReadSFXCommandLine write WriteSFXCommandLine;
  property SFXDefaultDir: String read ReadSFXDefaultDir write WriteSFXDefaultDir;
  property SFXHideOverwriteBox: Boolean read ReadSFXHideOverwriteBox write WriteSFXHideOverwriteBox;
  property SFXOverwriteMode: Integer read ReadSFXOverwriteMode write WriteSFXOverwriteMode;
  property Temp: String read ReadTemp write WriteTemp;
  procedure WriteAddCompLevel(Value: Integer);
  procedure WriteAddDirNames(Value: Boolean);
  procedure WriteAddDiskSpan(Value: Boolean);
  procedure WriteAddDiskSpanErase(Value: Boolean);
  procedure WriteAddEncrypt(Value: Boolean);
  procedure WriteAddHiddenFiles(Value: Boolean);
  procedure WriteAddRecurseDirs(Value: Boolean);
  procedure WriteAddSeparateDirs(Value: Boolean);
  procedure WriteAddZipTime(Value: Boolean);
  procedure WriteConfirmErase(Value: Boolean);
  procedure WriteExtrDirNames(Value: Boolean);
  procedure WriteExtrOverwrite(Value: Boolean);
  procedure WriteHowToDelete(Value: Integer);
  procedure WriteKeepFreeOnDisk1(Value: Integer);
  procedure WriteMaxVolumeSize(Value: Integer);
  procedure WriteMinFreeVolumeSize(Value: Integer);
  procedure WritePassword(Value: String);
  procedure WriteSFXAskCmdLine(Value: Boolean);
  procedure WriteSFXAskFiles(Value: Boolean);
  procedure WriteSFXCaption(Value: String);
  procedure WriteSFXCommandLine(Value: String);
  procedure WriteSFXDefaultDir(Value: String);
  procedure WriteSFXHideOverwriteBox(Value: Boolean);
  procedure WriteSFXOverwriteMode(Value: Integer);
  function WriteSpan(ZipFile: String; SpanFile: String): Integer;
  procedure WriteTemp(Value: String);
  function ZIP2SFX(ZipFile: String): Integer;
end;
Description


Method TZip.Add

Declaration
function Add(Action: Integer; ZipFile: String; FileName: String): Integer;
Description



Property TZip.AddCompLevel

Declaration
property AddCompLevel: Integer read ReadAddCompLevel write WriteAddCompLevel;
Description



Property TZip.AddDirNames

Declaration
property AddDirNames: Boolean read ReadAddDirNames write WriteAddDirNames;
Description



Property TZip.AddDiskSpan

Declaration
property AddDiskSpan: Boolean read ReadAddDiskSpan write WriteAddDiskSpan;
Description



Property TZip.AddDiskSpanErase

Declaration
property AddDiskSpanErase: Boolean read ReadAddDiskSpanErase write WriteAddDiskSpanErase;
Description



Property TZip.AddEncrypt

Declaration
property AddEncrypt: Boolean read ReadAddEncrypt write WriteAddEncrypt;
Description



Property TZip.AddHiddenFiles

Declaration
property AddHiddenFiles: Boolean read ReadAddHiddenFiles write WriteAddHiddenFiles;
Description



Method TZip.AddList

Declaration
function AddList(Action: Integer; ZipFile: String; FileNames: TStringList): Integer;
Description



Property TZip.AddRecurseDirs

Declaration
property AddRecurseDirs: Boolean read ReadAddRecurseDirs write WriteAddRecurseDirs;
Description



Property TZip.AddSeparateDirs

Declaration
property AddSeparateDirs: Boolean read ReadAddSeparateDirs write WriteAddSeparateDirs;
Description



Property TZip.AddZipTime

Declaration
property AddZipTime: Boolean read ReadAddZipTime write WriteAddZipTime;
Description



Property TZip.ConfirmErase

Declaration
property ConfirmErase: Boolean read ReadConfirmErase write WriteConfirmErase;
Description



Method TZip.Create

Declaration
constructor Create;
Description



Method TZip.Delete

Declaration
function Delete(ZipFile: String; FileName: String): Integer;
Description



Method TZip.DeleteList

Declaration
function DeleteList(ZipFile: String; FileNames: TStringList): Integer;
Description



Method TZip.Destroy

Declaration
destructor Destroy;
Description



Method TZip.Extract

Declaration
function Extract(Action: Integer; ZipFile: String; FileName: String; BaseDir: String): Integer;
Description



Method TZip.ExtractList

Declaration
function ExtractList(Action: Integer; ZipFile: String; FileNames: TStringList; BaseDir: String): Integer;
Description



Property TZip.ExtrDirNames

Declaration
property ExtrDirNames: Boolean read ReadExtrDirNames write WriteExtrDirNames;
Description



Property TZip.ExtrOverwrite

Declaration
property ExtrOverwrite: Boolean read ReadExtrOverwrite write WriteExtrOverwrite;
Description



Property TZip.HowToDelete

Declaration
property HowToDelete: Integer read ReadHowToDelete write WriteHowToDelete;
Description



Property TZip.KeepFreeOnDisk1

Declaration
property KeepFreeOnDisk1: Integer read ReadKeepFreeOnDisk1 write WriteKeepFreeOnDisk1;
Description



Method TZip.List

Declaration
function List(ZipFile: String): TStringList;
Description



Property TZip.MaxVolumeSize

Declaration
property MaxVolumeSize: Integer read ReadMaxVolumeSize write WriteMaxVolumeSize;
Description



Method TZip.Message

Declaration
function Message(ZipFile: String): String;
Description



Property TZip.MinFreeVolumeSize

Declaration
property MinFreeVolumeSize: Integer read ReadMinFreeVolumeSize write WriteMinFreeVolumeSize;
Description



Property TZip.Password

Declaration
property Password: String read ReadPassword write WritePassword;
Description



Method TZip.ReadAddCompLevel

Declaration
function ReadAddCompLevel: Integer;
Description



Method TZip.ReadAddDirNames

Declaration
function ReadAddDirNames: Boolean;
Description



Method TZip.ReadAddDiskSpan

Declaration
function ReadAddDiskSpan: Boolean;
Description



Method TZip.ReadAddDiskSpanErase

Declaration
function ReadAddDiskSpanErase: Boolean;
Description



Method TZip.ReadAddEncrypt

Declaration
function ReadAddEncrypt: Boolean;
Description



Method TZip.ReadAddHiddenFiles

Declaration
function ReadAddHiddenFiles: Boolean;
Description



Method TZip.ReadAddRecurseDirs

Declaration
function ReadAddRecurseDirs: Boolean;
Description



Method TZip.ReadAddSeparateDirs

Declaration
function ReadAddSeparateDirs: Boolean;
Description



Method TZip.ReadAddZipTime

Declaration
function ReadAddZipTime: Boolean;
Description



Method TZip.ReadConfirmErase

Declaration
function ReadConfirmErase: Boolean;
Description



Method TZip.ReadExtrDirNames

Declaration
function ReadExtrDirNames: Boolean;
Description



Method TZip.ReadExtrOverwrite

Declaration
function ReadExtrOverwrite: Boolean;
Description



Method TZip.ReadHowToDelete

Declaration
function ReadHowToDelete: Integer;
Description



Method TZip.ReadKeepFreeOnDisk1

Declaration
function ReadKeepFreeOnDisk1: Integer;
Description



Method TZip.ReadMaxVolumeSize

Declaration
function ReadMaxVolumeSize: Integer;
Description



Method TZip.ReadMinFreeVolumeSize

Declaration
function ReadMinFreeVolumeSize: Integer;
Description



Method TZip.ReadPassword

Declaration
function ReadPassword: String;
Description



Method TZip.ReadSFXAskCmdLine

Declaration
function ReadSFXAskCmdLine: Boolean;
Description



Method TZip.ReadSFXAskFiles

Declaration
function ReadSFXAskFiles: Boolean;
Description



Method TZip.ReadSFXCaption

Declaration
function ReadSFXCaption: String;
Description



Method TZip.ReadSFXCommandLine

Declaration
function ReadSFXCommandLine: String;
Description



Method TZip.ReadSFXDefaultDir

Declaration
function ReadSFXDefaultDir: String;
Description



Method TZip.ReadSFXHideOverwriteBox

Declaration
function ReadSFXHideOverwriteBox: Boolean;
Description



Method TZip.ReadSFXOverwriteMode

Declaration
function ReadSFXOverwriteMode: Integer;
Description



Method TZip.ReadSpan

Declaration
function ReadSpan(SpanFile: String; var ZipFile: String): Integer;
Description



Method TZip.ReadTemp

Declaration
function ReadTemp: String;
Description



Method TZip.SFX2ZIP

Declaration
function SFX2ZIP(ZipFile: String): Integer;
Description



Property TZip.SFXAskCmdLine

Declaration
property SFXAskCmdLine: Boolean read ReadSFXAskCmdLine write WriteSFXAskCmdLine;
Description



Property TZip.SFXAskFiles

Declaration
property SFXAskFiles: Boolean read ReadSFXAskFiles write WriteSFXAskFiles;
Description



Property TZip.SFXCaption

Declaration
property SFXCaption: String read ReadSFXCaption write WriteSFXCaption;
Description



Property TZip.SFXCommandLine

Declaration
property SFXCommandLine: String read ReadSFXCommandLine write WriteSFXCommandLine;
Description



Property TZip.SFXDefaultDir

Declaration
property SFXDefaultDir: String read ReadSFXDefaultDir write WriteSFXDefaultDir;
Description



Property TZip.SFXHideOverwriteBox

Declaration
property SFXHideOverwriteBox: Boolean read ReadSFXHideOverwriteBox write WriteSFXHideOverwriteBox;
Description



Property TZip.SFXOverwriteMode

Declaration
property SFXOverwriteMode: Integer read ReadSFXOverwriteMode write WriteSFXOverwriteMode;
Description



Property TZip.Temp

Declaration
property Temp: String read ReadTemp write WriteTemp;
Description



Method TZip.WriteAddCompLevel

Declaration
procedure WriteAddCompLevel(Value: Integer);
Description



Method TZip.WriteAddDirNames

Declaration
procedure WriteAddDirNames(Value: Boolean);
Description



Method TZip.WriteAddDiskSpan

Declaration
procedure WriteAddDiskSpan(Value: Boolean);
Description



Method TZip.WriteAddDiskSpanErase

Declaration
procedure WriteAddDiskSpanErase(Value: Boolean);
Description



Method TZip.WriteAddEncrypt

Declaration
procedure WriteAddEncrypt(Value: Boolean);
Description



Method TZip.WriteAddHiddenFiles

Declaration
procedure WriteAddHiddenFiles(Value: Boolean);
Description



Method TZip.WriteAddRecurseDirs

Declaration
procedure WriteAddRecurseDirs(Value: Boolean);
Description



Method TZip.WriteAddSeparateDirs

Declaration
procedure WriteAddSeparateDirs(Value: Boolean);
Description



Method TZip.WriteAddZipTime

Declaration
procedure WriteAddZipTime(Value: Boolean);
Description



Method TZip.WriteConfirmErase

Declaration
procedure WriteConfirmErase(Value: Boolean);
Description



Method TZip.WriteExtrDirNames

Declaration
procedure WriteExtrDirNames(Value: Boolean);
Description



Method TZip.WriteExtrOverwrite

Declaration
procedure WriteExtrOverwrite(Value: Boolean);
Description



Method TZip.WriteHowToDelete

Declaration
procedure WriteHowToDelete(Value: Integer);
Description



Method TZip.WriteKeepFreeOnDisk1

Declaration
procedure WriteKeepFreeOnDisk1(Value: Integer);
Description



Method TZip.WriteMaxVolumeSize

Declaration
procedure WriteMaxVolumeSize(Value: Integer);
Description



Method TZip.WriteMinFreeVolumeSize

Declaration
procedure WriteMinFreeVolumeSize(Value: Integer);
Description



Method TZip.WritePassword

Declaration
procedure WritePassword(Value: String);
Description



Method TZip.WriteSFXAskCmdLine

Declaration
procedure WriteSFXAskCmdLine(Value: Boolean);
Description



Method TZip.WriteSFXAskFiles

Declaration
procedure WriteSFXAskFiles(Value: Boolean);
Description



Method TZip.WriteSFXCaption

Declaration
procedure WriteSFXCaption(Value: String);
Description



Method TZip.WriteSFXCommandLine

Declaration
procedure WriteSFXCommandLine(Value: String);
Description



Method TZip.WriteSFXDefaultDir

Declaration
procedure WriteSFXDefaultDir(Value: String);
Description



Method TZip.WriteSFXHideOverwriteBox

Declaration
procedure WriteSFXHideOverwriteBox(Value: Boolean);
Description



Method TZip.WriteSFXOverwriteMode

Declaration
procedure WriteSFXOverwriteMode(Value: Integer);
Description



Method TZip.WriteSpan

Declaration
function WriteSpan(ZipFile: String; SpanFile: String): Integer;
Description



Method TZip.WriteTemp

Declaration
procedure WriteTemp(Value: String);
Description



Method TZip.ZIP2SFX

Declaration
function ZIP2SFX(ZipFile: String): Integer;
Description