ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
All the internal stuff for the QuaZip class. More...
Private Member Functions | |
QTextCodec * | getDefaultFileNameCodec () |
QuaZipPrivate (QuaZip *q) | |
The constructor for the corresponding QuaZip constructor. More... | |
QuaZipPrivate (QuaZip *q, const QString &zipName) | |
The constructor for the corresponding QuaZip constructor. More... | |
QuaZipPrivate (QuaZip *q, QIODevice *ioDevice) | |
The constructor for the corresponding QuaZip constructor. More... | |
template<typename TFileInfo > | |
bool | getFileInfoList (QList< TFileInfo > *result) const |
Returns either a list of file names or a list of QuaZipFileInfo. More... | |
void | clearDirectoryMap () |
Stores map of filenames and file locations for unzipping. More... | |
void | addCurrentFileToDirectoryMap (const QString &fileName) |
bool | goToFirstUnmappedFile () |
Private Attributes | |
QuaZip * | q |
The pointer to the corresponding QuaZip instance. More... | |
QTextCodec * | fileNameCodec |
The codec for file names. More... | |
QTextCodec * | commentCodec |
The codec for comments. More... | |
QString | zipName |
The archive file name. More... | |
QIODevice * | ioDevice |
The device to access the archive. More... | |
QString | comment |
The global comment. More... | |
QuaZip::Mode | mode |
The open mode. More... | |
union { | |
unzFile | unzFile_f |
The internal handle for UNZIP modes. More... | |
zipFile | zipFile_f |
The internal handle for ZIP modes. More... | |
}; | |
bool | hasCurrentFile_f |
Whether a current file is set. More... | |
int | zipError |
The last error. More... | |
bool | dataDescriptorWritingEnabled |
Whether the data descriptor writing mode is enabled. More... | |
bool | zip64 |
The zip64 mode. More... | |
bool | autoClose |
The auto-close flag. More... | |
QHash< QString, unz64_file_pos > | directoryCaseSensitive |
QHash< QString, unz64_file_pos > | directoryCaseInsensitive |
unz64_file_pos | lastMappedDirectoryEntry |
Static Private Attributes | |
static QTextCodec * | defaultFileNameCodec = NULL |
Friends | |
class | QuaZip |
This class keeps all the private stuff for the QuaZip class so it can be changed without breaking binary compatibility, according to the Pimpl idiom.
Definition at line 39 of file quazip.cpp.
|
inlineprivate |
Definition at line 81 of file quazip.cpp.
References lastMappedDirectoryEntry, unz64_file_pos_s::num_of_file, and unz64_file_pos_s::pos_in_zip_directory.
|
inlineprivate |
Definition at line 97 of file quazip.cpp.
References lastMappedDirectoryEntry, unz64_file_pos_s::num_of_file, and unz64_file_pos_s::pos_in_zip_directory.
Definition at line 114 of file quazip.cpp.
References lastMappedDirectoryEntry, unz64_file_pos_s::num_of_file, and unz64_file_pos_s::pos_in_zip_directory.
|
inlineprivate |
Definition at line 153 of file quazip.cpp.
References directoryCaseInsensitive, directoryCaseSensitive, hasCurrentFile_f, lastMappedDirectoryEntry, unz64_file_pos_s::pos_in_zip_directory, and unzGetFilePos64().
Referenced by QuaZip::getCurrentFileInfo(), and QuaZip::getCurrentFileName().
|
inlineprivate |
Definition at line 145 of file quazip.cpp.
References directoryCaseInsensitive, directoryCaseSensitive, lastMappedDirectoryEntry, unz64_file_pos_s::num_of_file, and unz64_file_pos_s::pos_in_zip_directory.
Referenced by QuaZip::close().
|
inlineprivate |
Definition at line 72 of file quazip.cpp.
References defaultFileNameCodec.
|
private |
Definition at line 687 of file quazip.cpp.
References QuaZip::getCurrentFileName(), QuaZip::goToFirstFile(), QuaZip::goToNextFile(), QuaZip::hasCurrentFile(), QuaZip::mdUnzip, mode, q, QuaZip::setCurrentFile(), UNZ_OK, and zipError.
Referenced by QuaZip::getFileInfoList(), QuaZip::getFileInfoList64(), and QuaZip::getFileNameList().
|
private |
Definition at line 172 of file quazip.cpp.
References hasCurrentFile_f, lastMappedDirectoryEntry, QuaZip::mdUnzip, mode, unz64_file_pos_s::pos_in_zip_directory, UNZ_END_OF_LIST_OF_FILE, UNZ_OK, unzGoToFilePos64(), unzGoToFirstFile(), unzGoToNextFile(), and zipError.
Referenced by QuaZip::setCurrentFile().
|
friend |
Definition at line 40 of file quazip.cpp.
union { ... } |
|
private |
Definition at line 71 of file quazip.cpp.
Referenced by QuaZip::isAutoClose(), QuaZip::open(), and QuaZip::setAutoClose().
|
private |
Definition at line 53 of file quazip.cpp.
Referenced by QuaZip::close(), and QuaZip::setComment().
|
private |
Definition at line 47 of file quazip.cpp.
Referenced by QuaZip::close(), QuaZip::getComment(), QuaZip::getCommentCodec(), QuaZip::getCurrentFileInfo(), and QuaZip::setCommentCodec().
|
private |
Definition at line 67 of file quazip.cpp.
Referenced by QuaZip::isDataDescriptorWritingEnabled(), QuaZip::open(), and QuaZip::setDataDescriptorWritingEnabled().
|
staticprivate |
Definition at line 140 of file quazip.cpp.
Referenced by getDefaultFileNameCodec(), and QuaZip::setDefaultFileNameCodec().
|
private |
Definition at line 138 of file quazip.cpp.
Referenced by addCurrentFileToDirectoryMap(), clearDirectoryMap(), and QuaZip::setCurrentFile().
|
private |
Definition at line 137 of file quazip.cpp.
Referenced by addCurrentFileToDirectoryMap(), clearDirectoryMap(), and QuaZip::setCurrentFile().
|
private |
Definition at line 45 of file quazip.cpp.
Referenced by QuaZip::getCurrentFileInfo(), QuaZip::getCurrentFileName(), QuaZip::getFileNameCodec(), and QuaZip::setFileNameCodec().
|
private |
Definition at line 63 of file quazip.cpp.
Referenced by addCurrentFileToDirectoryMap(), QuaZip::goToFirstFile(), goToFirstUnmappedFile(), QuaZip::goToNextFile(), QuaZip::hasCurrentFile(), and QuaZip::setCurrentFile().
|
private |
Definition at line 51 of file quazip.cpp.
Referenced by QuaZip::close(), QuaZip::getIoDevice(), QuaZip::open(), QuaZip::setIoDevice(), and QuaZip::setZipName().
|
private |
Definition at line 139 of file quazip.cpp.
Referenced by addCurrentFileToDirectoryMap(), clearDirectoryMap(), goToFirstUnmappedFile(), and QuaZipPrivate().
|
private |
Definition at line 55 of file quazip.cpp.
Referenced by QuaZip::close(), QuaZip::getComment(), QuaZip::getCurrentFileInfo(), QuaZip::getCurrentFileName(), QuaZip::getEntriesCount(), getFileInfoList(), QuaZip::getMode(), QuaZip::goToFirstFile(), goToFirstUnmappedFile(), QuaZip::goToNextFile(), QuaZip::isOpen(), QuaZip::open(), and QuaZip::setCurrentFile().
|
private |
Definition at line 43 of file quazip.cpp.
Referenced by getFileInfoList().
|
private |
Definition at line 69 of file quazip.cpp.
Referenced by QuaZip::isZip64Enabled(), and QuaZip::setZip64Enabled().
|
private |
Definition at line 65 of file quazip.cpp.
Referenced by QuaZip::close(), QuaZip::getComment(), QuaZip::getCurrentFileInfo(), QuaZip::getCurrentFileName(), QuaZip::getEntriesCount(), getFileInfoList(), QuaZip::getZipError(), QuaZip::goToFirstFile(), goToFirstUnmappedFile(), QuaZip::goToNextFile(), QuaZip::open(), and QuaZip::setCurrentFile().
|
private |
Definition at line 49 of file quazip.cpp.
Referenced by QuaZip::close(), QuaZip::getIoDevice(), QuaZip::getZipName(), QuaZip::open(), QuaZip::setIoDevice(), and QuaZip::setZipName().