MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
UnzipPrivate Class Reference

#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 (keyset keys, const QString &file, const ZipEntryP &header)
 
bool testKeys (const ZipEntryP &header, keyset keys)
 
bool createDirectory (const QString &path)
 
void decryptBytes (keyset keys, char *buffer, qint64 read) const
 
void updateKeys (keyset keys, int c) const
 
void initKeys (const QString &pwd, keyset keys) const
 

Static Public Member Functions

static quint32 getULong (const unsigned char *data, quint32 offset)
 
static quint64 getULLong (const unsigned char *data, quint32 offset)
 
static quint16 getUShort (const unsigned char *data, quint32 offset)
 
static int decryptByte (quint32 key2)
 
static QDateTime convertDateTime (const std::array< uint8_t, 2 > &date, const std::array< uint8_t, 2 > &time)
 

Public Attributes

QString password
 
bool skipAllEncrypted {false}
 
QMap< QString, ZipEntryP * > * headers {nullptr}
 
QIODevice * device {nullptr}
 
char buffer1 [UNZIP_READ_BUFFER] {0}
 
char buffer2 [UNZIP_READ_BUFFER] {0}
 
unsigned char * uBuffer
 
const quint32 * crcTable
 
quint32 cdOffset {0}
 
quint32 eocdOffset {0}
 
quint16 cdEntryCount {0}
 
quint16 unsupportedEntryCount {0}
 
QString comment
 

Detailed Description

Definition at line 53 of file unzip_p.h.

Constructor & Destructor Documentation

◆ UnzipPrivate()

UnzipPrivate::UnzipPrivate ( )

Definition at line 520 of file unzip.cpp.

Member Function Documentation

◆ openArchive()

UnZip::ErrorCode UnzipPrivate::openArchive ( QIODevice *  device)

Definition at line 527 of file unzip.cpp.

Referenced by UnZip::openArchive().

◆ seekToCentralDirectory()

UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory ( )

Definition at line 732 of file unzip.cpp.

◆ parseCentralDirectoryRecord()

UnZip::ErrorCode UnzipPrivate::parseCentralDirectoryRecord ( )

Definition at line 856 of file unzip.cpp.

◆ parseLocalHeaderRecord()

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

Definition at line 597 of file unzip.cpp.

◆ closeArchive()

void UnzipPrivate::closeArchive ( )

Definition at line 965 of file unzip.cpp.

Referenced by UnZip::closeArchive().

◆ extractFile() [1/2]

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

Definition at line 989 of file unzip.cpp.

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

◆ extractFile() [2/2]

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

Definition at line 1060 of file unzip.cpp.

◆ testPassword()

UnZip::ErrorCode UnzipPrivate::testPassword ( keyset  keys,
const QString &  file,
const ZipEntryP header 
)

Definition at line 1314 of file unzip.cpp.

◆ testKeys()

bool UnzipPrivate::testKeys ( const ZipEntryP header,
keyset  keys 
)

Definition at line 1333 of file unzip.cpp.

◆ createDirectory()

bool UnzipPrivate::createDirectory ( const QString &  path)

Definition at line 1212 of file unzip.cpp.

◆ decryptBytes()

void UnzipPrivate::decryptBytes ( keyset  keys,
char *  buffer,
qint64  read 
) const
inline

Definition at line 1352 of file unzip.cpp.

◆ getULong()

quint32 UnzipPrivate::getULong ( const unsigned char *  data,
quint32  offset 
)
inlinestatic

Definition at line 1236 of file unzip.cpp.

◆ getULLong()

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

Definition at line 1249 of file unzip.cpp.

◆ getUShort()

quint16 UnzipPrivate::getUShort ( const unsigned char *  data,
quint32  offset 
)
inlinestatic

Definition at line 1266 of file unzip.cpp.

◆ decryptByte()

int UnzipPrivate::decryptByte ( quint32  key2)
inlinestatic

Definition at line 1274 of file unzip.cpp.

◆ updateKeys()

void UnzipPrivate::updateKeys ( keyset  keys,
int  c 
) const
inline

Definition at line 1283 of file unzip.cpp.

◆ initKeys()

void UnzipPrivate::initKeys ( const QString &  pwd,
keyset  keys 
) const
inline

Definition at line 1295 of file unzip.cpp.

◆ convertDateTime()

QDateTime UnzipPrivate::convertDateTime ( const std::array< uint8_t, 2 > &  date,
const std::array< uint8_t, 2 > &  time 
)
inlinestatic

Definition at line 1361 of file unzip.cpp.

Referenced by UnZip::entryList().

Member Data Documentation

◆ password

QString UnzipPrivate::password

Definition at line 59 of file unzip_p.h.

Referenced by UnZip::setPassword().

◆ skipAllEncrypted

bool UnzipPrivate::skipAllEncrypted {false}

Definition at line 61 of file unzip_p.h.

Referenced by UnZip::extractAll().

◆ headers

QMap<QString,ZipEntryP*>* UnzipPrivate::headers {nullptr}

◆ device

QIODevice* UnzipPrivate::device {nullptr}

Definition at line 65 of file unzip_p.h.

Referenced by UnZip::archiveComment(), UnZip::extractAll(), and UnZip::isOpen().

◆ buffer1

char UnzipPrivate::buffer1[UNZIP_READ_BUFFER] {0}

Definition at line 67 of file unzip_p.h.

◆ buffer2

char UnzipPrivate::buffer2[UNZIP_READ_BUFFER] {0}

Definition at line 68 of file unzip_p.h.

◆ uBuffer

unsigned char* UnzipPrivate::uBuffer

Definition at line 70 of file unzip_p.h.

◆ crcTable

const quint32* UnzipPrivate::crcTable

Definition at line 71 of file unzip_p.h.

◆ cdOffset

quint32 UnzipPrivate::cdOffset {0}

Definition at line 74 of file unzip_p.h.

◆ eocdOffset

quint32 UnzipPrivate::eocdOffset {0}

Definition at line 76 of file unzip_p.h.

◆ cdEntryCount

quint16 UnzipPrivate::cdEntryCount {0}

Definition at line 79 of file unzip_p.h.

◆ unsupportedEntryCount

quint16 UnzipPrivate::unsupportedEntryCount {0}

Definition at line 82 of file unzip_p.h.

◆ comment

QString UnzipPrivate::comment

Definition at line 84 of file unzip_p.h.

Referenced by UnZip::archiveComment().


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