#include <unzip_p.h>
Public Member Functions | |
| UnzipPrivate () | |
| UnZip::ErrorCode | openArchive (QIODevice *device) |
| UnZip::ErrorCode | seekToCentralDirectory () |
| UnZip::ErrorCode | parseCentralDirectoryRecord () |
| UnZip::ErrorCode | parseLocalHeaderRecord (const QString &path, ZipEntryP &entry) |
| void | closeArchive () |
| UnZip::ErrorCode | extractFile (const QString &path, ZipEntryP &entry, const QDir &dir, UnZip::ExtractionOptions options) |
| UnZip::ErrorCode | extractFile (const QString &path, ZipEntryP &entry, QIODevice *device, UnZip::ExtractionOptions options) |
| UnZip::ErrorCode | testPassword (quint32 *keys, const QString &file, const ZipEntryP &header) |
| bool | testKeys (const ZipEntryP &header, quint32 *keys) |
| bool | createDirectory (const QString &path) |
| void | decryptBytes (quint32 *keys, char *buffer, qint64 read) |
| quint32 | getULong (const unsigned char *data, quint32 offset) const |
| quint64 | getULLong (const unsigned char *data, quint32 offset) const |
| quint16 | getUShort (const unsigned char *data, quint32 offset) const |
| int | decryptByte (quint32 key2) const |
| void | updateKeys (quint32 *keys, int c) const |
| void | initKeys (const QString &pwd, quint32 *keys) const |
| QDateTime | convertDateTime (const unsigned char date[2], const unsigned char time[2]) const |
Public Attributes | |
| QString | password |
| bool | skipAllEncrypted |
| QMap< QString, ZipEntryP * > * | headers |
| QIODevice * | device |
| char | buffer1 [UNZIP_READ_BUFFER] |
| char | buffer2 [UNZIP_READ_BUFFER] |
| unsigned char * | uBuffer |
| const quint32 * | crcTable |
| quint32 | cdOffset |
| quint32 | eocdOffset |
| quint16 | cdEntryCount |
| quint16 | unsupportedEntryCount |
| QString | comment |
Definition at line 51 of file unzip_p.h.
| UnZip::ErrorCode UnzipPrivate::openArchive | ( | QIODevice * | device | ) |
Definition at line 500 of file unzip.cpp.
Referenced by UnZip::openArchive().
| UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory | ( | ) |
Definition at line 712 of file unzip.cpp.
Referenced by openArchive().
| UnZip::ErrorCode UnzipPrivate::parseCentralDirectoryRecord | ( | ) |
Definition at line 837 of file unzip.cpp.
Referenced by openArchive().
| UnZip::ErrorCode UnzipPrivate::parseLocalHeaderRecord | ( | const QString & | path, | |
| ZipEntryP & | entry | |||
| ) |
Definition at line 574 of file unzip.cpp.
Referenced by extractFile().
| void UnzipPrivate::closeArchive | ( | ) |
Definition at line 946 of file unzip.cpp.
Referenced by UnZip::closeArchive(), and openArchive().
| UnZip::ErrorCode UnzipPrivate::extractFile | ( | const QString & | path, | |
| ZipEntryP & | entry, | |||
| const QDir & | dir, | |||
| UnZip::ExtractionOptions | options | |||
| ) |
Definition at line 970 of file unzip.cpp.
Referenced by UnZip::extractAll(), and UnZip::extractFile().
| UnZip::ErrorCode UnzipPrivate::extractFile | ( | const QString & | path, | |
| ZipEntryP & | entry, | |||
| QIODevice * | device, | |||
| UnZip::ExtractionOptions | options | |||
| ) |
| UnZip::ErrorCode UnzipPrivate::testPassword | ( | quint32 * | keys, | |
| const QString & | file, | |||
| const ZipEntryP & | header | |||
| ) |
Definition at line 1295 of file unzip.cpp.
Referenced by extractFile().
Definition at line 1314 of file unzip.cpp.
Referenced by testPassword().
| bool UnzipPrivate::createDirectory | ( | const QString & | path | ) |
Definition at line 1193 of file unzip.cpp.
Referenced by extractFile().
| void UnzipPrivate::decryptBytes | ( | quint32 * | keys, | |
| char * | buffer, | |||
| qint64 | read | |||
| ) | [inline] |
Definition at line 1333 of file unzip.cpp.
Referenced by extractFile().
| quint32 UnzipPrivate::getULong | ( | const unsigned char * | data, | |
| quint32 | offset | |||
| ) | const [inline] |
Definition at line 1217 of file unzip.cpp.
Referenced by parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and seekToCentralDirectory().
| quint64 UnzipPrivate::getULLong | ( | const unsigned char * | data, | |
| quint32 | offset | |||
| ) | const [inline] |
| quint16 UnzipPrivate::getUShort | ( | const unsigned char * | data, | |
| quint32 | offset | |||
| ) | const [inline] |
Definition at line 1247 of file unzip.cpp.
Referenced by parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and seekToCentralDirectory().
| int UnzipPrivate::decryptByte | ( | quint32 | key2 | ) | const [inline] |
Definition at line 1255 of file unzip.cpp.
Referenced by decryptBytes(), and testKeys().
| void UnzipPrivate::updateKeys | ( | quint32 * | keys, | |
| int | c | |||
| ) | const [inline] |
Definition at line 1264 of file unzip.cpp.
Referenced by decryptBytes(), initKeys(), and testKeys().
| void UnzipPrivate::initKeys | ( | const QString & | pwd, | |
| quint32 * | keys | |||
| ) | const [inline] |
Definition at line 1276 of file unzip.cpp.
Referenced by testPassword().
| QDateTime UnzipPrivate::convertDateTime | ( | const unsigned char | date[2], | |
| const unsigned char | time[2] | |||
| ) | const [inline] |
Definition at line 1342 of file unzip.cpp.
Referenced by UnZip::entryList().
| QString UnzipPrivate::password |
Definition at line 57 of file unzip_p.h.
Referenced by UnZip::setPassword(), and testPassword().
Definition at line 59 of file unzip_p.h.
Referenced by closeArchive(), UnZip::extractAll(), and UnzipPrivate().
| QMap<QString,ZipEntryP*>* UnzipPrivate::headers |
Definition at line 61 of file unzip_p.h.
Referenced by closeArchive(), UnZip::contains(), UnZip::entryList(), UnZip::extractAll(), UnZip::extractFile(), UnZip::fileList(), parseCentralDirectoryRecord(), and UnzipPrivate().
| QIODevice* UnzipPrivate::device |
Definition at line 63 of file unzip_p.h.
Referenced by UnZip::archiveComment(), closeArchive(), UnZip::extractAll(), extractFile(), UnZip::isOpen(), openArchive(), parseCentralDirectoryRecord(), parseLocalHeaderRecord(), seekToCentralDirectory(), testPassword(), and UnzipPrivate().
| char UnzipPrivate::buffer1[UNZIP_READ_BUFFER] |
Definition at line 65 of file unzip_p.h.
Referenced by extractFile(), openArchive(), parseCentralDirectoryRecord(), parseLocalHeaderRecord(), seekToCentralDirectory(), testKeys(), testPassword(), and UnzipPrivate().
| char UnzipPrivate::buffer2[UNZIP_READ_BUFFER] |
Definition at line 66 of file unzip_p.h.
Referenced by extractFile(), parseCentralDirectoryRecord(), and parseLocalHeaderRecord().
| unsigned char* UnzipPrivate::uBuffer |
Definition at line 68 of file unzip_p.h.
Referenced by extractFile(), parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and UnzipPrivate().
| const quint32* UnzipPrivate::crcTable |
Definition at line 69 of file unzip_p.h.
Referenced by UnzipPrivate().
| quint32 UnzipPrivate::cdOffset |
Definition at line 72 of file unzip_p.h.
Referenced by closeArchive(), seekToCentralDirectory(), and UnzipPrivate().
| quint32 UnzipPrivate::eocdOffset |
Definition at line 74 of file unzip_p.h.
Referenced by closeArchive(), seekToCentralDirectory(), and UnzipPrivate().
| quint16 UnzipPrivate::cdEntryCount |
Definition at line 77 of file unzip_p.h.
Referenced by closeArchive(), openArchive(), seekToCentralDirectory(), and UnzipPrivate().
Definition at line 80 of file unzip_p.h.
Referenced by closeArchive(), parseCentralDirectoryRecord(), and UnzipPrivate().
| QString UnzipPrivate::comment |
Definition at line 82 of file unzip_p.h.
Referenced by UnZip::archiveComment(), closeArchive(), and seekToCentralDirectory().
1.6.3