QuaZIP
quazip-0-6-1
|
Information about a file inside archive (with zip64 support). More...
#include <quazipfileinfo.h>
Public Member Functions | |
QFile::Permissions | getPermissions () const |
Get the file permissions. More... | |
bool | toQuaZipFileInfo (QuaZipFileInfo &info) const |
Converts to QuaZipFileInfo. More... | |
Public Attributes | |
QString | name |
File name. | |
quint16 | versionCreated |
Version created by. | |
quint16 | versionNeeded |
Version needed to extract. | |
quint16 | flags |
General purpose flags. | |
quint16 | method |
Compression method. | |
QDateTime | dateTime |
Last modification date and time. | |
quint32 | crc |
CRC. | |
quint64 | compressedSize |
Compressed file size. | |
quint64 | uncompressedSize |
Uncompressed file size. | |
quint16 | diskNumberStart |
Disk number start. | |
quint16 | internalAttr |
Internal file attributes. | |
quint32 | externalAttr |
External file attributes. | |
QString | comment |
Comment. | |
QByteArray | extra |
Extra field. | |
Information about a file inside archive (with zip64 support).
Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to fill this structure.
QFile::Permissions QuaZipFileInfo64::getPermissions | ( | ) | const |
Get the file permissions.
Returns the high 16 bits of external attributes converted to QFile::Permissions.
bool QuaZipFileInfo64::toQuaZipFileInfo | ( | QuaZipFileInfo & | info) | const |
Converts to QuaZipFileInfo.
If any of the fields are greater than 0xFFFFFFFFu, they are set to 0xFFFFFFFFu exactly, not just truncated. This function should be mainly used for compatibility with the old code expecting QuaZipFileInfo, in the cases when it's impossible or otherwise unadvisable (due to ABI compatibility reasons, for example) to modify that old code to use QuaZipFileInfo64.
true
if all fields converted correctly, false
if an overflow occured. References QuaZipFileInfo::comment, comment, QuaZipFileInfo::compressedSize, compressedSize, QuaZipFileInfo::crc, crc, QuaZipFileInfo::dateTime, dateTime, QuaZipFileInfo::diskNumberStart, diskNumberStart, QuaZipFileInfo::externalAttr, externalAttr, QuaZipFileInfo::extra, extra, QuaZipFileInfo::flags, flags, QuaZipFileInfo::internalAttr, internalAttr, QuaZipFileInfo::method, method, QuaZipFileInfo::name, name, QuaZipFileInfo::uncompressedSize, uncompressedSize, QuaZipFileInfo::versionCreated, versionCreated, QuaZipFileInfo::versionNeeded, and versionNeeded.
Referenced by QuaZip::getCurrentFileInfo(), and QuaZipFile::getFileInfo().