AbZip  1.5
ZipFileInfo.h
1 #ifndef ZIPFILEINFO_H
2 #define ZIPFILEINFO_H
3 
4 #include "zipglobal.h"
5 
6 #include <QObject>
7 #include <QDateTime>
8 #include <QFile>
9 
15 class ZIP_EXPORT ZipInfo
16 {
17 public:
18  ZipInfo();
19 
20  qint64 fileSize;
21  qint64 packedSize;
22  qint64 unpackedSize;
23  quint32 fileCount;
24  qint32 version;
25  qint32 madeByOS;
26  bool isZip64;
27 
28  QString comment;
29 
30  // Stats during adding/extracting
31  qint32 filesAdded;
32  qint32 filesExtracted;
33  qint32 filesDeleted;
34  qint32 errorCount;
35 };
36 
37 
38 class CentralDirFileHeader;
39 
45 class ZIP_EXPORT ZipFileInfo
46 {
47 public:
48  ZipFileInfo();
49  ZipFileInfo( CentralDirFileHeader* header );
50 
51  QString filePath;
52  QString comment;
53  QDateTime lastModifiedDate;
54  quint32 crc32;
55  quint64 compressedSize;
56  quint64 uncompressedSize;
58  quint32 version;
59  quint32 madeByOS;
61 
62  QFile::Permissions permissions;
63  quint8 attributes;
64  bool isFolder;
66  bool isEncrypted;
67 };
68 
69 #endif // ZIPFILEINFO_H
qint32 version
The PKWARE Version made by. Major version/10, minor version % 10 (e.g. version = 45 which is 4...
Definition: ZipFileInfo.h:24
qint32 filesAdded
The total number of files added since open()
Definition: ZipFileInfo.h:31
bool isZip64
true if the archive is in Zip64 format
Definition: ZipFileInfo.h:26
QString comment
The comment assigned to this file.
Definition: ZipFileInfo.h:52
QFile::Permissions permissions
The original file permission (e.g. read/write/execute etc.)
Definition: ZipFileInfo.h:62
qint64 unpackedSize
The total size of all files when extracted.
Definition: ZipFileInfo.h:22
This is a simple class to hold information about the archive.
Definition: ZipFileInfo.h:15
quint8 attributes
Definition: ZipFileInfo.h:63
QString comment
The main archive comment.
Definition: ZipFileInfo.h:28
qint32 filesDeleted
The total number of files deleted since open()
Definition: ZipFileInfo.h:33
quint64 compressedSize
The compressed side of the file in bytes.
Definition: ZipFileInfo.h:55
QDateTime lastModifiedDate
The last modifies date of the file.
Definition: ZipFileInfo.h:53
qint32 madeByOS
PKWARE OS made by. See PKWARE APPNOTE.TXT section 4.4.2.2.
Definition: ZipFileInfo.h:25
qint64 packedSize
The total compressed size of all files.
Definition: ZipFileInfo.h:21
qint32 errorCount
The total number of errors since open(). This can be reset by calling clearErrors() ...
Definition: ZipFileInfo.h:34
This class holds information about a file stored within the archive file.
Definition: ZipFileInfo.h:45
quint64 uncompressedSize
The uncompressed (or original) size of the file.
Definition: ZipFileInfo.h:56
qint32 filesExtracted
The total number of files extracted since open()
Definition: ZipFileInfo.h:32
quint32 crc32
The CRC checksum for the stored file.
Definition: ZipFileInfo.h:54
quint32 fileCount
The number of files stored in the archive.
Definition: ZipFileInfo.h:23
bool isEncrypted
true if this file is encrypted. See setPassword()
Definition: ZipFileInfo.h:66
quint32 compressionMethod
Pkware compression method (See PKWARE APPNOTE.TXT section 4.4.5)
Definition: ZipFileInfo.h:57
quint32 version
Definition: ZipFileInfo.h:58
QString filePath
The full path and filename as stored in the archive.
Definition: ZipFileInfo.h:51
qint64 fileSize
The actual file of the archive.
Definition: ZipFileInfo.h:20