UnzipPrivate Class Reference

#include <unzip_p.h>

List of all members.

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


Detailed Description

Definition at line 51 of file unzip_p.h.


Constructor & Destructor Documentation

UnzipPrivate (  ) 

Definition at line 485 of file unzip.cpp.


Member Function Documentation

UnZip::ErrorCode openArchive ( QIODevice *  device  ) 

Definition at line 500 of file unzip.cpp.

Referenced by UnZip::openArchive().

Here is the caller graph for this function:

UnZip::ErrorCode seekToCentralDirectory (  ) 

Definition at line 712 of file unzip.cpp.

Referenced by openArchive().

Here is the caller graph for this function:

UnZip::ErrorCode parseCentralDirectoryRecord (  ) 

Definition at line 836 of file unzip.cpp.

Referenced by openArchive().

Here is the caller graph for this function:

UnZip::ErrorCode parseLocalHeaderRecord ( const QString &  path,
ZipEntryP entry 
)

Definition at line 574 of file unzip.cpp.

Referenced by extractFile().

Here is the caller graph for this function:

void closeArchive (  ) 

Definition at line 945 of file unzip.cpp.

Referenced by UnZip::closeArchive(), and openArchive().

Here is the caller graph for this function:

UnZip::ErrorCode extractFile ( const QString &  path,
ZipEntryP entry,
const QDir &  dir,
UnZip::ExtractionOptions  options 
)

Definition at line 969 of file unzip.cpp.

Referenced by UnZip::extractAll(), and UnZip::extractFile().

Here is the caller graph for this function:

UnZip::ErrorCode extractFile ( const QString &  path,
ZipEntryP entry,
QIODevice *  device,
UnZip::ExtractionOptions  options 
)

Definition at line 1040 of file unzip.cpp.

UnZip::ErrorCode testPassword ( quint32 *  keys,
const QString &  file,
const ZipEntryP header 
)

Definition at line 1294 of file unzip.cpp.

Referenced by extractFile().

Here is the caller graph for this function:

bool testKeys ( const ZipEntryP header,
quint32 *  keys 
)

Definition at line 1313 of file unzip.cpp.

Referenced by testPassword().

Here is the caller graph for this function:

bool createDirectory ( const QString &  path  ) 

Definition at line 1192 of file unzip.cpp.

Referenced by extractFile().

Here is the caller graph for this function:

void decryptBytes ( quint32 *  keys,
char *  buffer,
qint64  read 
) [inline]

Definition at line 1332 of file unzip.cpp.

Referenced by extractFile().

Here is the caller graph for this function:

quint32 getULong ( const unsigned char *  data,
quint32  offset 
) const [inline]

Definition at line 1216 of file unzip.cpp.

Referenced by parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and seekToCentralDirectory().

Here is the caller graph for this function:

quint64 getULLong ( const unsigned char *  data,
quint32  offset 
) const [inline]

Definition at line 1229 of file unzip.cpp.

quint16 getUShort ( const unsigned char *  data,
quint32  offset 
) const [inline]

Definition at line 1246 of file unzip.cpp.

Referenced by parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and seekToCentralDirectory().

Here is the caller graph for this function:

int decryptByte ( quint32  key2  )  const [inline]

Definition at line 1254 of file unzip.cpp.

Referenced by decryptBytes(), and testKeys().

Here is the caller graph for this function:

void updateKeys ( quint32 *  keys,
int  c 
) const [inline]

Definition at line 1263 of file unzip.cpp.

Referenced by decryptBytes(), initKeys(), and testKeys().

Here is the caller graph for this function:

void initKeys ( const QString &  pwd,
quint32 *  keys 
) const [inline]

Definition at line 1275 of file unzip.cpp.

Referenced by testPassword().

Here is the caller graph for this function:

QDateTime convertDateTime ( const unsigned char  date[2],
const unsigned char  time[2] 
) const [inline]

Definition at line 1341 of file unzip.cpp.

Referenced by UnZip::entryList().

Here is the caller graph for this function:


Member Data Documentation

QString password

Definition at line 57 of file unzip_p.h.

Referenced by UnZip::setPassword(), and testPassword().

bool skipAllEncrypted

Definition at line 59 of file unzip_p.h.

Referenced by closeArchive(), UnZip::extractAll(), and UnzipPrivate().

QMap<QString,ZipEntryP*>* 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* 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 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 buffer2[UNZIP_READ_BUFFER]

Definition at line 66 of file unzip_p.h.

Referenced by extractFile(), parseCentralDirectoryRecord(), and parseLocalHeaderRecord().

unsigned char* uBuffer

Definition at line 68 of file unzip_p.h.

Referenced by extractFile(), parseCentralDirectoryRecord(), parseLocalHeaderRecord(), and UnzipPrivate().

const quint32* crcTable

Definition at line 69 of file unzip_p.h.

Referenced by UnzipPrivate().

quint32 cdOffset

Definition at line 72 of file unzip_p.h.

Referenced by closeArchive(), seekToCentralDirectory(), and UnzipPrivate().

quint32 eocdOffset

Definition at line 74 of file unzip_p.h.

Referenced by closeArchive(), seekToCentralDirectory(), and UnzipPrivate().

quint16 cdEntryCount

Definition at line 77 of file unzip_p.h.

Referenced by closeArchive(), openArchive(), seekToCentralDirectory(), and UnzipPrivate().

quint16 unsupportedEntryCount

Definition at line 80 of file unzip_p.h.

Referenced by closeArchive(), parseCentralDirectoryRecord(), and UnzipPrivate().

QString comment

Definition at line 82 of file unzip_p.h.

Referenced by UnZip::archiveComment(), closeArchive(), and seekToCentralDirectory().


The documentation for this class was generated from the following files: