![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <zip_p.h>
Public Types | |
| typedef uLongf | crc_t |
Public Member Functions | |
| ZipPrivate () | |
| virtual | ~ZipPrivate () |
| Zip::ErrorCode | createArchive (QIODevice *device) |
| Zip::ErrorCode | closeArchive () |
| void | reset () |
| bool | zLibInit () |
| bool | containsEntry (const QFileInfo &info) const |
| Zip::ErrorCode | addDirectory (const QString &path, const QString &root, Zip::CompressionOptions options, Zip::CompressionLevel level, int hierarchyLevel, int *addedFiles=0) |
| Zip::ErrorCode | addFiles (const QStringList &paths, const QString &root, Zip::CompressionOptions options, Zip::CompressionLevel level, int *addedFiles) |
| Zip::ErrorCode | createEntry (const QFileInfo &file, const QString &root, Zip::CompressionLevel level) |
| Zip::CompressionLevel | detectCompressionByMime (const QString &ext) |
| quint32 | updateChecksum (const quint32 &crc, const quint32 &val) const |
| Updates a one-char-only CRC; it's the Info-Zip macro re-adapted. | |
| void | encryptBytes (quint32 *keys, char *buffer, qint64 read) |
| void | setULong (quint32 v, char *buffer, unsigned int offset) |
| void | updateKeys (quint32 *keys, int c) const |
| void | initKeys (quint32 *keys) const |
| int | decryptByte (quint32 key2) const |
| QString | extractRoot (const QString &p, Zip::CompressionOptions o) |
Public Attributes | |
| QMap< QString, ZipEntryP * > * | headers |
| QIODevice * | device |
| QFile * | file |
| char | buffer1 [ZIP_READ_BUFFER] |
| char | buffer2 [ZIP_READ_BUFFER] |
| unsigned char * | uBuffer |
| const crc_t * | crcTable |
| QString | comment |
| QString | password |
Private Slots | |
| void | deviceDestroyed (QObject *) |
Private Member Functions | |
| int | compressionStrategy (const QString &path, QIODevice &file) const |
| Zip::ErrorCode | deflateFile (const QFileInfo &fileInfo, quint32 &crc, qint64 &written, const Zip::CompressionLevel &level, quint32 **keys) |
| Zip::ErrorCode | storeFile (const QString &path, QIODevice &file, quint32 &crc, qint64 &written, quint32 **keys) |
| Zip::ErrorCode | compressFile (const QString &path, QIODevice &file, quint32 &crc, qint64 &written, const Zip::CompressionLevel &level, quint32 **keys) |
| Zip::ErrorCode | do_closeArchive () |
| Zip::ErrorCode | writeEntry (const QString &fileName, const ZipEntryP *h, quint32 &szCentralDir) |
| Zip::ErrorCode | writeCentralDir (quint32 offCentralDir, quint32 szCentralDir) |
| typedef uLongf ZipPrivate::crc_t |
| ZipPrivate::ZipPrivate | ( | ) |
|
virtual |
| Zip::ErrorCode ZipPrivate::addDirectory | ( | const QString & | path, |
| const QString & | root, | ||
| Zip::CompressionOptions | options, | ||
| Zip::CompressionLevel | level, | ||
| int | hierarchyLevel, | ||
| int * | addedFiles = 0 ) |
| Zip::ErrorCode ZipPrivate::addFiles | ( | const QStringList & | paths, |
| const QString & | root, | ||
| Zip::CompressionOptions | options, | ||
| Zip::CompressionLevel | level, | ||
| int * | addedFiles ) |
| Zip::ErrorCode ZipPrivate::closeArchive | ( | ) |
Closes the current archive and writes out pending data.
|
private |
|
private |
| bool ZipPrivate::containsEntry | ( | const QFileInfo & | info | ) | const |
Returns true if an entry for info has already been added. Uses file size and lower case absolute path to compare entries.
| Zip::ErrorCode ZipPrivate::createArchive | ( | QIODevice * | device | ) |
| Zip::ErrorCode ZipPrivate::createEntry | ( | const QFileInfo & | file, |
| const QString & | root, | ||
| Zip::CompressionLevel | level ) |
|
inline |
|
private |
| Zip::CompressionLevel ZipPrivate::detectCompressionByMime | ( | const QString & | ext | ) |
|
privateslot |
|
private |
|
inline |
|
inline |
|
inline |
| void ZipPrivate::reset | ( | ) |
|
inline |
|
private |
|
inline |
Updates a one-char-only CRC; it's the Info-Zip macro re-adapted.
|
inline |
|
private |
|
private |
| bool ZipPrivate::zLibInit | ( | ) |
| char ZipPrivate::buffer1[ZIP_READ_BUFFER] |
| char ZipPrivate::buffer2[ZIP_READ_BUFFER] |
| QString ZipPrivate::comment |
| const crc_t* ZipPrivate::crcTable |
| QIODevice* ZipPrivate::device |
| QFile* ZipPrivate::file |
| QString ZipPrivate::password |
| unsigned char* ZipPrivate::uBuffer |