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;
106 std::unique_ptr<QTemporaryDir> mDir;
126 bool unzip(
const QString &zipFilename )
override;
131 QString projectFile()
const;
137 bool clearProjectFile();
143 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.