25 #include "ZipCentralDir.h" 30 friend class ZipArcive;
40 bool open(
AbZip::Mode mode, AbZip::ZipOptions options = AbZip::None );
44 bool checkAutoOpenWrite();
45 bool checkAutoOpenRead();
47 bool backupOrDeleteCurrentZip( AbZip::ZipOptions options );
49 bool addFile(
const QString& file,
const QString& root = QString(), AbZip::ZipOptions options =
AbZip::AddRelativePaths,
int level = -1 );
50 bool addFile(
const QFileInfo& srcFileInfo,
const QString& arcFile, AbZip::ZipOptions options,
int level = -1);
52 bool addDirectory(
const QString& srcPath,
const QString& root = QString(), AbZip::ZipOptions options =
AbZip::AddRelativePaths,
int level = -1 );
54 quint32 getBestCompressionMethod( QFile& srcFileInfo, AbZip::ZipOptions options );
56 bool extractFile(
const QString& filename,
const QString& dirname, AbZip::ZipOptions options =
AbZip::ExtractPaths);
58 bool extractAll(
AbZip& zip,
const QString& destPath,
const QString& fromRoot, AbZip::ZipOptions options);
61 bool deleteFile(
AbZip& zip,
const QString& filename, AbZip::ZipOptions options = AbZip::None);
64 QList<ZipFileInfo> findFile(
AbZip& zip,
const QString& filename,
const QString& root, AbZip::ZipOptions options =
AbZip::Recursive );
66 bool checkIntegrity();
68 bool setError(
int err, QString msg = QString() );
79 qint32 filesExtracted;
89 QStringList nameFilters;
96 bool commitDeletedFiles();
97 bool writeToTempFile( QIODevice* );
99 QList<CentralDirFileHeader*> deletedEntries;
101 QStringList storeTheseTypes;
When searching or adding directories, recurse into all sub folders.
Definition: AbZip.h:101
Mode
Definition: AbZip.h:57
Definition: ZipFileInfo.h:10
Definition: ZipCentralDir.h:34
Recreate the relative path from the archive when extracting files.
Definition: AbZip.h:110
Add files including relative paths.
Definition: AbZip.h:112