ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
QuaZipFileInfo64 Struct Reference

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...
 
QDateTime getNTFSmTime (int *fineTicks=NULL) const
 Returns the NTFS modification time. More...
 
QDateTime getNTFSaTime (int *fineTicks=NULL) const
 Returns the NTFS access time. More...
 
QDateTime getNTFScTime (int *fineTicks=NULL) const
 Returns the NTFS creation time. More...
 
bool isEncrypted () const
 Checks whether the file is encrypted. More...
 

Public Attributes

QString name
 File name. More...
 
quint16 versionCreated
 Version created by. More...
 
quint16 versionNeeded
 Version needed to extract. More...
 
quint16 flags
 General purpose flags. More...
 
quint16 method
 Compression method. More...
 
QDateTime dateTime
 Last modification date and time. More...
 
quint32 crc
 CRC. More...
 
quint64 compressedSize
 Compressed file size. More...
 
quint64 uncompressedSize
 Uncompressed file size. More...
 
quint16 diskNumberStart
 Disk number start. More...
 
quint16 internalAttr
 Internal file attributes. More...
 
quint32 externalAttr
 External file attributes. More...
 
QString comment
 Comment. More...
 
QByteArray extra
 Extra field. More...
 

Detailed Description

Information about a file inside archive (with zip64 support).

Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to fill this structure.

Definition at line 81 of file quazipfileinfo.h.

Member Function Documentation

◆ getNTFSaTime()

QDateTime QuaZipFileInfo64::getNTFSaTime ( int *  fineTicks = NULL) const

Returns the NTFS access time.

The getNTFS*Time() functions only work if there is an NTFS extra field present. Otherwise, they all return invalid null timestamps.

Parameters
fineTicksIf not NULL, the fractional part of milliseconds returned there, measured in 100-nanosecond ticks. Will be set to zero if there is no NTFS extra field.
See also
dateTime
getNTFSmTime()
getNTFScTime()
Returns
The NTFS access time, UTC

Definition at line 168 of file quazipfileinfo.cpp.

References extra, and getNTFSTime().

◆ getNTFScTime()

QDateTime QuaZipFileInfo64::getNTFScTime ( int *  fineTicks = NULL) const

Returns the NTFS creation time.

The getNTFS*Time() functions only work if there is an NTFS extra field present. Otherwise, they all return invalid null timestamps.

Parameters
fineTicksIf not NULL, the fractional part of milliseconds returned there, measured in 100-nanosecond ticks. Will be set to zero if there is no NTFS extra field.
See also
dateTime
getNTFSmTime()
getNTFSaTime()
Returns
The NTFS creation time, UTC

Definition at line 172 of file quazipfileinfo.cpp.

References extra, and getNTFSTime().

◆ getNTFSmTime()

QDateTime QuaZipFileInfo64::getNTFSmTime ( int *  fineTicks = NULL) const

Returns the NTFS modification time.

The getNTFS*Time() functions only work if there is an NTFS extra field present. Otherwise, they all return invalid null timestamps.

Parameters
fineTicksIf not NULL, the fractional part of milliseconds returned there, measured in 100-nanosecond ticks. Will be set to zero if there is no NTFS extra field.
See also
dateTime
getNTFSaTime()
getNTFScTime()
Returns
The NTFS modification time, UTC

Definition at line 164 of file quazipfileinfo.cpp.

References extra, and getNTFSTime().

◆ getPermissions()

QFile::Permissions QuaZipFileInfo64::getPermissions ( ) const

Get the file permissions.

Returns the high 16 bits of external attributes converted to QFile::Permissions.

Definition at line 50 of file quazipfileinfo.cpp.

References externalAttr, and permissionsFromExternalAttr().

◆ isEncrypted()

bool QuaZipFileInfo64::isEncrypted ( ) const
inline

Checks whether the file is encrypted.

Definition at line 176 of file quazipfileinfo.h.

◆ toQuaZipFileInfo()

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.

Returns
true if all fields converted correctly, false if an overflow occured.

Definition at line 54 of file quazipfileinfo.cpp.

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().

Member Data Documentation

◆ comment

QString QuaZipFileInfo64::comment

Comment.

Definition at line 114 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), and toQuaZipFileInfo().

◆ compressedSize

quint64 QuaZipFileInfo64::compressedSize

Compressed file size.

Definition at line 104 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ crc

quint32 QuaZipFileInfo64::crc

◆ dateTime

QDateTime QuaZipFileInfo64::dateTime

Last modification date and time.

This is the time stored in the standard ZIP header. This format only allows to store time with 2-second precision, so the seconds will always be even and the milliseconds will always be zero. If you need more precise date and time, you can try to call the getNTFSmTime() function or its siblings, provided that the archive itself contains these NTFS times.

Definition at line 100 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), and toQuaZipFileInfo().

◆ diskNumberStart

quint16 QuaZipFileInfo64::diskNumberStart

Disk number start.

Definition at line 108 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ externalAttr

quint32 QuaZipFileInfo64::externalAttr

External file attributes.

Definition at line 112 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), getPermissions(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ extra

QByteArray QuaZipFileInfo64::extra

Extra field.

Definition at line 116 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), getNTFSaTime(), getNTFScTime(), getNTFSmTime(), and toQuaZipFileInfo().

◆ flags

quint16 QuaZipFileInfo64::flags

General purpose flags.

Definition at line 89 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ internalAttr

quint16 QuaZipFileInfo64::internalAttr

Internal file attributes.

Definition at line 110 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ method

quint16 QuaZipFileInfo64::method

Compression method.

Definition at line 91 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ name

QString QuaZipFileInfo64::name

File name.

Definition at line 83 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ uncompressedSize

quint64 QuaZipFileInfo64::uncompressedSize

Uncompressed file size.

Definition at line 106 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ versionCreated

quint16 QuaZipFileInfo64::versionCreated

Version created by.

Definition at line 85 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().

◆ versionNeeded

quint16 QuaZipFileInfo64::versionNeeded

Version needed to extract.

Definition at line 87 of file quazipfileinfo.h.

Referenced by QuaZip::getCurrentFileInfo(), QuaZipDir_getFileInfo(), and toQuaZipFileInfo().


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