diff options
author | lado <herrlado@gmail.com> | 2013-04-01 00:11:19 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-04-01 00:11:19 +0200 |
commit | da1c6058c56059c064f55b81586d6079677fa1b4 (patch) | |
tree | d88900a569335af120e9d13709a2c37478bd56ee /vdr-vdrmanager/compressor.h | |
parent | da671823efe4d9202b2df74d12b7b69d0bea56c0 (diff) | |
download | vdr-manager-da1c6058c56059c064f55b81586d6079677fa1b4.tar.gz vdr-manager-da1c6058c56059c064f55b81586d6079677fa1b4.tar.bz2 |
Feature #790
Diffstat (limited to 'vdr-vdrmanager/compressor.h')
-rw-r--r-- | vdr-vdrmanager/compressor.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vdr-vdrmanager/compressor.h b/vdr-vdrmanager/compressor.h new file mode 100644 index 0000000..fbcc14f --- /dev/null +++ b/vdr-vdrmanager/compressor.h @@ -0,0 +1,32 @@ +/* + * compressor.h + * + * Created on: 23.03.2013 + * Author: bju + */ + +#ifndef COMPRESSOR_H_ +#define COMPRESSOR_H_ + +#include <string> + +#define COMPRESSION_NONE 0 +#define COMPRESSION_ZLIB 1 +#define COMPRESSION_GZIP 2 + +using namespace std; + +class cCompressor { +private: + char * data; + size_t size; +public: + cCompressor(); + virtual ~cCompressor(); + bool CompressGzip(string text); + bool CompressZlib(string text); + char * GetData(); + size_t getDataSize(); +}; +#endif /* COMPRESSOR_H_ */ + |