Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
UnzipPrivate Class Reference

#include <unzip_p.h>

Inheritance diagram for UnzipPrivate:
[legend]
Collaboration diagram for UnzipPrivate:
[legend]

Public Member Functions

 UnzipPrivate ()
UnZip::ErrorCode openArchive (QIODevice *device)
UnZip::ErrorCode seekToCentralDirectory ()
UnZip::ErrorCode parseCentralDirectoryRecord ()
UnZip::ErrorCode parseLocalHeaderRecord (const QString &path, const ZipEntryP &entry)
void closeArchive ()
UnZip::ErrorCode extractFile (const QString &path, const ZipEntryP &entry, const QDir &dir, UnZip::ExtractionOptions options)
UnZip::ErrorCode extractFile (const QString &path, const 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
QFile * file
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

Private Slots

void deviceDestroyed (QObject *)

Private Member Functions

UnZip::ErrorCode extractStoredFile (const quint32 szComp, quint32 **keys, quint32 &myCRC, QIODevice *outDev, UnZip::ExtractionOptions options)
UnZip::ErrorCode inflateFile (const quint32 szComp, quint32 **keys, quint32 &myCRC, QIODevice *outDev, UnZip::ExtractionOptions options)
void do_closeArchive ()

Constructor & Destructor Documentation

◆ UnzipPrivate()

UnzipPrivate::UnzipPrivate ( )

Member Function Documentation

◆ closeArchive()

void UnzipPrivate::closeArchive ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convertDateTime()

QDateTime UnzipPrivate::convertDateTime ( const unsigned char date[2],
const unsigned char time[2] ) const
inline
Here is the caller graph for this function:

◆ createDirectory()

bool UnzipPrivate::createDirectory ( const QString & path)
Here is the caller graph for this function:

◆ decryptByte()

int UnzipPrivate::decryptByte ( quint32 key2) const
inline
Here is the caller graph for this function:

◆ decryptBytes()

void UnzipPrivate::decryptBytes ( quint32 * keys,
char * buffer,
qint64 read )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deviceDestroyed

void UnzipPrivate::deviceDestroyed ( QObject * )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_closeArchive()

void UnzipPrivate::do_closeArchive ( )
private
Here is the caller graph for this function:

◆ extractFile() [1/2]

UnZip::ErrorCode UnzipPrivate::extractFile ( const QString & path,
const ZipEntryP & entry,
const QDir & dir,
UnZip::ExtractionOptions options )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractFile() [2/2]

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

Encryption header size

Here is the call graph for this function:

◆ extractStoredFile()

UnZip::ErrorCode UnzipPrivate::extractStoredFile ( const quint32 szComp,
quint32 ** keys,
quint32 & myCRC,
QIODevice * outDev,
UnZip::ExtractionOptions options )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getULLong()

quint64 UnzipPrivate::getULLong ( const unsigned char * data,
quint32 offset ) const
inline

◆ getULong()

quint32 UnzipPrivate::getULong ( const unsigned char * data,
quint32 offset ) const
inline
Here is the caller graph for this function:

◆ getUShort()

quint16 UnzipPrivate::getUShort ( const unsigned char * data,
quint32 offset ) const
inline
Here is the caller graph for this function:

◆ inflateFile()

UnZip::ErrorCode UnzipPrivate::inflateFile ( const quint32 szComp,
quint32 ** keys,
quint32 & myCRC,
QIODevice * outDev,
UnZip::ExtractionOptions options )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initKeys()

void UnzipPrivate::initKeys ( const QString & pwd,
quint32 * keys ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openArchive()

UnZip::ErrorCode UnzipPrivate::openArchive ( QIODevice * device)
Todo
Ignore CD entry count? CD may be corrupted.
Here is the call graph for this function:

◆ parseCentralDirectoryRecord()

UnZip::ErrorCode UnzipPrivate::parseCentralDirectoryRecord ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseLocalHeaderRecord()

UnZip::ErrorCode UnzipPrivate::parseLocalHeaderRecord ( const QString & path,
const ZipEntryP & entry )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seekToCentralDirectory()

UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testKeys()

bool UnzipPrivate::testKeys ( const ZipEntryP & header,
quint32 * keys )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testPassword()

UnZip::ErrorCode UnzipPrivate::testPassword ( quint32 * keys,
const QString & _file,
const ZipEntryP & header )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateKeys()

void UnzipPrivate::updateKeys ( quint32 * keys,
int c ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ buffer1

char UnzipPrivate::buffer1[UNZIP_READ_BUFFER]

◆ buffer2

char UnzipPrivate::buffer2[UNZIP_READ_BUFFER]

◆ cdEntryCount

quint16 UnzipPrivate::cdEntryCount

◆ cdOffset

quint32 UnzipPrivate::cdOffset

◆ comment

QString UnzipPrivate::comment

◆ crcTable

const quint32* UnzipPrivate::crcTable

◆ device

QIODevice* UnzipPrivate::device

◆ eocdOffset

quint32 UnzipPrivate::eocdOffset

◆ file

QFile* UnzipPrivate::file

◆ headers

QMap<QString,ZipEntryP*>* UnzipPrivate::headers

◆ password

QString UnzipPrivate::password

◆ skipAllEncrypted

bool UnzipPrivate::skipAllEncrypted

◆ uBuffer

unsigned char* UnzipPrivate::uBuffer

◆ unsupportedEntryCount

quint16 UnzipPrivate::unsupportedEntryCount

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