39 #ifndef OSDAB_UNZIP_P__H 40 #define OSDAB_UNZIP_P__H 49 #define UNZIP_READ_BUFFER (256*1024) 100 inline void decryptBytes(quint32* keys,
char* buffer, qint64 read);
102 inline quint32
getULong(
const unsigned char* data, quint32 offset)
const;
103 inline quint64
getULLong(
const unsigned char* data, quint32 offset)
const;
104 inline quint16
getUShort(
const unsigned char* data, quint32 offset)
const;
106 inline void updateKeys(quint32* keys,
int c)
const;
107 inline void initKeys(
const QString& pwd, quint32* keys)
const;
109 inline QDateTime
convertDateTime(
const unsigned char date[2],
const unsigned char time[2])
const;
112 #endif // OSDAB_UNZIP_P__H quint16 getUShort(const unsigned char *data, quint32 offset) const
UnZip::ErrorCode testPassword(quint32 *keys, const QString &file, const ZipEntryP &header)
QDateTime convertDateTime(const unsigned char date[2], const unsigned char time[2]) const
bool testKeys(const ZipEntryP &header, quint32 *keys)
UnZip::ErrorCode parseLocalHeaderRecord(const QString &path, ZipEntryP &entry)
char buffer1[UNZIP_READ_BUFFER]
bool createDirectory(const QString &path)
#define UNZIP_READ_BUFFER
QMap< QString, ZipEntryP * > * headers
void initKeys(const QString &pwd, quint32 *keys) const
quint16 unsupportedEntryCount
void updateKeys(quint32 *keys, int c) const
void decryptBytes(quint32 *keys, char *buffer, qint64 read)
UnZip::ErrorCode openArchive(QIODevice *device)
UnZip::ErrorCode seekToCentralDirectory()
int decryptByte(quint32 key2) const
UnZip::ErrorCode extractFile(const QString &path, ZipEntryP &entry, const QDir &dir, UnZip::ExtractionOptions options)
quint64 getULLong(const unsigned char *data, quint32 offset) const
char buffer2[UNZIP_READ_BUFFER]
UnZip::ErrorCode parseCentralDirectoryRecord()
quint32 getULong(const unsigned char *data, quint32 offset) const