diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Buffer.h | 7 | ||||
-rw-r--r-- | include/CopyJob.h | 2 |
2 files changed, 6 insertions, 3 deletions
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 <zlib.h> #include <Exceptions.h> #include <Handle.h> @@ -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(); |