VHISTlib
1.84.0.3018
|
00001 /* $HEADERS 00002 $Id: inflater.h 2792 2013-05-06 11:25:27Z michael $ 00003 */ 00004 00005 #ifndef INFLATER_INCLUDED 00006 #define INFLATER_INCLUDED 00007 00008 #include "../shared/misc_defines.h" 00009 00010 #include <zlib.h> 00011 00012 #include <QByteArray> 00013 00014 namespace vhist 00015 { 00016 00031 class VHIST_EXTERN Inflater 00032 { 00033 public: 00034 Inflater(); 00035 ~Inflater(); 00036 00037 public: 00038 QByteArray inflateData(QByteArray data); 00039 bool hasFinished(); 00040 bool isValid(); 00041 void reset(); 00042 00043 private: 00044 void init(); 00045 00046 private: 00047 z_stream m_stream; 00048 bool m_valid; 00049 bool m_finished; 00050 unsigned char *m_out; 00051 unsigned int m_iChunk; 00052 }; 00053 00054 } // namespace 00055 00056 #endif // INFLATER_INCLUDED 00057