diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-04-19 04:19:29 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-19 16:14:32 +0200 |
commit | c7c81463fd3ab01c9e096f75e7e8ad8b50902a98 (patch) | |
tree | ab19d0316cd293bcc05bc6b1b6e937c858814b90 /logic/MMCZip.h | |
parent | 6cfac115b1f18b9ff5130b2b9a6d5e2fcf052e6c (diff) | |
download | MultiMC-c7c81463fd3ab01c9e096f75e7e8ad8b50902a98.tar MultiMC-c7c81463fd3ab01c9e096f75e7e8ad8b50902a98.tar.gz MultiMC-c7c81463fd3ab01c9e096f75e7e8ad8b50902a98.tar.lz MultiMC-c7c81463fd3ab01c9e096f75e7e8ad8b50902a98.tar.xz MultiMC-c7c81463fd3ab01c9e096f75e7e8ad8b50902a98.zip |
GH-885 export dialog for filtering exported files
Includes implementation of a separator based prefix tree and some related bits
Diffstat (limited to 'logic/MMCZip.h')
-rw-r--r-- | logic/MMCZip.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/MMCZip.h b/logic/MMCZip.h index e1f2ba3a..0107d7a6 100644 --- a/logic/MMCZip.h +++ b/logic/MMCZip.h @@ -4,6 +4,7 @@ #include <QFileInfo> #include <QSet> #include "minecraft/Mod.h" +#include "SeparatorPrefixTree.h" #include <functional> class QuaZip; @@ -18,7 +19,8 @@ namespace MMCZip * \param recursive Whether to pack sub-directories as well or only files. * \return true if success, false otherwise. */ - bool compressSubDir(QuaZip* zip, QString dir, QString origDir, QSet<QString>& added, QString prefix = QString()); + bool compressSubDir(QuaZip *zip, QString dir, QString origDir, QSet<QString> &added, + QString prefix = QString(), const SeparatorPrefixTree <'/'> * blacklist = nullptr); /** * Compress a whole directory. @@ -27,7 +29,7 @@ namespace MMCZip * \param recursive Whether to pack the subdirectories as well, or just regular files. * \return true if success, false otherwise. */ - bool compressDir(QString zipFile, QString dir, QString prefix = QString()); + bool compressDir(QString zipFile, QString dir, QString prefix = QString(), const SeparatorPrefixTree <'/'> * blacklist = nullptr); /// filter function for @mergeZipFiles - passthrough bool noFilter(QString key); |