22 #include "qgis_core.h"
24 #include <QStringList>
25 #include <QTemporaryFile>
26 #include <QTemporaryDir>
61 bool zip(
const QString &zipFilename );
69 virtual bool unzip(
const QString &zipFilename );
82 void addFile(
const QString &filename );
89 bool removeFile(
const QString &filename );
94 QStringList files()
const;
112 std::unique_ptr<QTemporaryDir> mDir;
132 bool unzip(
const QString &zipFilename )
override;
137 QString projectFile()
const;
143 bool clearProjectFile();
149 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 unzip(const QString &zip, const QString &dir, QStringList &files)
Unzip a zip file in an output directory.
CORE_EXPORT bool zip(const QString &zip, const QStringList &files)
Zip the list of files in the zip file.