From 8fac2c6298c5fd2b06e7e219687766dd8cf965b3 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 3 Dec 2001 11:39:34 +0000 Subject: Zlib.... --- include/Buffer.h | 7 +++++-- include/CopyJob.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Buffer.h b/include/Buffer.h index c2e78ec..5177916 100644 --- a/include/Buffer.h +++ b/include/Buffer.h @@ -2,6 +2,7 @@ #define __BUFFER_H__ #ifdef __cplusplus +#include #include #include @@ -18,12 +19,14 @@ class Buffer : public Handle { virtual bool CanRead(); virtual bool CanWrite(); virtual String GetName(); - Buffer operator=(const Buffer &); + virtual Buffer operator=(const Buffer &); virtual bool CanWatch(); + void deflate(void) throw (GeneralException); private: - char * buffer; + char * buffer, * zbuffer; int realsiz, bufsiz, ptr; + z_stream zs; }; #else diff --git a/include/CopyJob.h b/include/CopyJob.h index bd859bb..14fbf0b 100644 --- a/include/CopyJob.h +++ b/include/CopyJob.h @@ -9,7 +9,7 @@ class CopyJob : public Task { public: - CopyJob(Handle *, Handle *, ssize_t = -1, bool = false); + CopyJob(Handle *, Handle *, ssize_t = -1, bool = false, int z = 0); virtual ~CopyJob(); virtual int Do() throw (GeneralException); virtual String GetName(); -- cgit v1.2.3