25 #include "encryption.h" 29 #define DEFAULT_BUFSIZE (16384) 45 explicit Compressor(QIODevice* inDev, QIODevice* outDev);
59 static Compressor* createCompressor( quint32 Type,
int level, QIODevice* inDev, QIODevice* outDev = 0 );
60 static Compressor* createDecompressor( quint32 Type, QIODevice* inDev, QIODevice* outDev = 0 );
63 virtual bool compressData(
Encryption* = 0){
return false; }
64 virtual bool decompressData( qint64,
Encryption* = 0){
return false; }
67 bool setError(
int err, QString msg = QString() ){ error = err; errorMessage = msg;
return false;}
68 QString errorString( ){
return errorMessage; }
71 quint64 compressedSize;
72 quint64 uncompressedSize;
74 void checkIfBinary(
char* , quint32 );
90 #endif // COMPRESSOR_H Definition: Compressor.h:42
Definition: encryption.h:40