22 #include "qgis_core.h"
24 #include <QStringList>
25 #include <QTemporaryFile>
26 #include <QTemporaryDir>
60 bool zip(
const QString &zipFilename );
68 virtual bool unzip(
const QString &zipFilename );
81 void addFile(
const QString &filename );
88 bool removeFile(
const QString &filename );
93 QStringList
files()
const;
111 std::unique_ptr<QTemporaryDir> mDir;
130 bool unzip(
const QString &zipFilename )
override;
135 QString projectFile()
const;
141 bool clearProjectFile();
147 QString auxiliaryStorageFile()
const;
Class allowing to manage the zip/unzip actions.
virtual ~QgsArchive()=default
Destructor.
Class allowing to manage the zip/unzip actions on project file.
CORE_EXPORT bool zip(const QString &zip, const QStringList &files)
Zip the list of files in the zip file.
CORE_EXPORT bool unzip(const QString &zip, const QString &dir, QStringList &files, bool checkConsistency=true)
Unzip a zip file in an output directory.
CORE_EXPORT const QStringList files(const QString &zip)
Returns the list of files within a zip file.