From cdc9bed83f9110bdf41133a3489ed2fca543ee32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 29 May 2017 01:32:28 +0200 Subject: NOISSUE move some zip utility functions back to quazip It's not entirely clean yet. --- api/logic/MMCZip.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'api/logic/MMCZip.h') 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 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); } -- cgit v1.2.3