summaryrefslogtreecommitdiffstats
path: root/api/logic/MMCZip.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-29 01:32:28 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-31 09:20:24 +0200
commitcdc9bed83f9110bdf41133a3489ed2fca543ee32 (patch)
tree19fe215b438f1b6d63b6b45a31b587496d8c4d8a /api/logic/MMCZip.h
parent7acf1998eb0683860dc21fc740f1e6bd42f54169 (diff)
downloadMultiMC-cdc9bed83f9110bdf41133a3489ed2fca543ee32.tar
MultiMC-cdc9bed83f9110bdf41133a3489ed2fca543ee32.tar.gz
MultiMC-cdc9bed83f9110bdf41133a3489ed2fca543ee32.tar.lz
MultiMC-cdc9bed83f9110bdf41133a3489ed2fca543ee32.tar.xz
MultiMC-cdc9bed83f9110bdf41133a3489ed2fca543ee32.zip
NOISSUE move some zip utility functions back to quazip
It's not entirely clean yet.
Diffstat (limited to 'api/logic/MMCZip.h')
-rw-r--r--api/logic/MMCZip.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/api/logic/MMCZip.h b/api/logic/MMCZip.h
index 7608352c..ca8b349f 100644
--- a/api/logic/MMCZip.h
+++ b/api/logic/MMCZip.h
@@ -9,7 +9,7 @@
#include "multimc_logic_export.h"
-class QuaZip;
+#include <JlCompress.h>
namespace MMCZip
{
@@ -64,22 +64,10 @@ namespace MMCZip
*/
bool MULTIMC_LOGIC_EXPORT findFilesInZip(QuaZip * zip, const QString & what, QStringList & result, const QString &root = QString());
- enum Option {
- NoPermissions = 1
- };
- Q_DECLARE_FLAGS(Options, Option)
-
- /**
- * Extract a single file to a destination
- *
- * \return true if it succeeds
- */
- bool MULTIMC_LOGIC_EXPORT extractFile(QuaZip *zip, const QString &fileName, const QString &fileDest, Options opts = 0);
-
/**
* Extract a subdirectory from an archive
*/
- QStringList MULTIMC_LOGIC_EXPORT extractSubDir(QuaZip *zip, const QString & subdir, const QString &target, Options opts = 0);
+ QStringList MULTIMC_LOGIC_EXPORT extractSubDir(QuaZip *zip, const QString & subdir, const QString &target);
/**
* Extract a whole archive.
@@ -89,6 +77,6 @@ namespace MMCZip
* \param opts Extra options.
* \return The list of the full paths of the files extracted, empty on failure.
*/
- QStringList MULTIMC_LOGIC_EXPORT extractDir(QString fileCompressed, QString dir, Options opts = 0);
+ QStringList MULTIMC_LOGIC_EXPORT extractDir(QString fileCompressed, QString dir);
}