28 #ifndef OSDAB_UNZIP__H
29 #define OSDAB_UNZIP__H
31 #include "zipglobal.h"
33 #include <QtCore/QDateTime>
34 #include <QtCore/QMap>
35 #include <QtCore/QtGlobal>
46 OSDAB_BEGIN_NAMESPACE(
Zip)
70 HeaderConsistencyError,
77 ExtractPaths = 0x0001,
80 NoSilentDirectoryCreation = 0x0008
82 Q_DECLARE_FLAGS(ExtractionOptions, ExtractionOption)
84 enum CompressionMethod
86 NoCompression, Deflated, UnknownCompression
101 quint32 compressedSize;
102 quint32 uncompressedSize;
105 QDateTime lastModified;
107 CompressionMethod compression;
118 ErrorCode openArchive(
const QString& filename);
119 ErrorCode openArchive(QIODevice* device);
122 QString archiveComment()
const;
126 bool contains(
const QString& file)
const;
128 QStringList fileList()
const;
129 QList<ZipEntry> entryList()
const;
133 ErrorCode extractAll(
const QString& dirname, ExtractionOptions options = ExtractPaths);
134 ErrorCode extractAll(
const QDir& dir, ExtractionOptions options = ExtractPaths);
136 ErrorCode extractFile(
const QString& filename,
const QString& dirname, ExtractionOptions options = ExtractPaths);
137 ErrorCode extractFile(
const QString& filename,
const QDir& dir, ExtractionOptions options = ExtractPaths);
138 ErrorCode extractFile(
const QString& filename, QIODevice* device, ExtractionOptions options = ExtractPaths);
140 ErrorCode extractFiles(
const QStringList& filenames,
const QString& dirname, ExtractionOptions options = ExtractPaths);
141 ErrorCode extractFiles(
const QStringList& filenames,
const QDir& dir, ExtractionOptions options = ExtractPaths);
143 void setPassword(
const QString& pwd);
149 Q_DECLARE_OPERATORS_FOR_FLAGS(UnZip::ExtractionOptions)
153 #endif // OSDAB_UNZIP__H
ErrorCode
Definition: unzip.h:53
Zip file compression.
Definition: zip.h:49
Definition: fpoptimizer.cc:789
PKZip 2.0 file decompression. Compatibility with later versions is not ensured as they may use unsupp...
Definition: unzip.h:50