|
@@ -266,7 +266,7 @@ Type
|
|
Constructor Create;
|
|
Constructor Create;
|
|
Destructor Destroy;
|
|
Destructor Destroy;
|
|
Procedure ZipAllFiles; virtual;
|
|
Procedure ZipAllFiles; virtual;
|
|
- Procedure ZipFiles(AFileName : String; FileList : TStringList);
|
|
|
|
|
|
+ Procedure ZipFiles(AFileName : String; FileList : TStrings);
|
|
Procedure Clear;
|
|
Procedure Clear;
|
|
Public
|
|
Public
|
|
Property BufferSize : Cardinal Read FBufSize Write SetBufSize;
|
|
Property BufferSize : Cardinal Read FBufSize Write SetBufSize;
|
|
@@ -283,6 +283,10 @@ Type
|
|
|
|
|
|
Implementation
|
|
Implementation
|
|
|
|
|
|
|
|
+ResourceString
|
|
|
|
+ SErrBufsizeChange = 'Changing buffer size is not allowed while zipping';
|
|
|
|
+ SErrOutputFileChange = 'Changing output file name is not allowed while zipping';
|
|
|
|
+
|
|
{ ---------------------------------------------------------------------
|
|
{ ---------------------------------------------------------------------
|
|
Auxiliary
|
|
Auxiliary
|
|
---------------------------------------------------------------------}
|
|
---------------------------------------------------------------------}
|
|
@@ -966,12 +970,12 @@ Begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
Procedure TZipper.SetBufSize(Value : Cardinal);
|
|
Procedure TZipper.SetBufSize(Value : Cardinal);
|
|
|
|
|
|
begin
|
|
begin
|
|
If FZipping then
|
|
If FZipping then
|
|
- Raise EZipError.Create('Changing buffer size is not allowed while zipping');
|
|
|
|
|
|
+ Raise EZipError.Create(SErrBufsizeChange);
|
|
If Value>=DefaultBufSize then
|
|
If Value>=DefaultBufSize then
|
|
FBufSize:=Value;
|
|
FBufSize:=Value;
|
|
end;
|
|
end;
|
|
@@ -980,11 +984,11 @@ Procedure TZipper.SetFileName(Value : String);
|
|
|
|
|
|
begin
|
|
begin
|
|
If FZipping then
|
|
If FZipping then
|
|
- Raise EZipError.Create('Changing output file name is not allowed while zipping');
|
|
|
|
|
|
+ Raise EZipError.Create(SErrOutputFileChange);
|
|
FFileName:=Value;
|
|
FFileName:=Value;
|
|
end;
|
|
end;
|
|
|
|
|
|
-Procedure TZipper.ZipFiles(AFileName : String; FileList : TStringList);
|
|
|
|
|
|
+Procedure TZipper.ZipFiles(AFileName : String; FileList : TStrings);
|
|
|
|
|
|
begin
|
|
begin
|
|
FFiles.Assign(FileList);
|
|
FFiles.Assign(FileList);
|