From 23d0bd8edde6aadfaa282215b5f143ad16210438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 5 Sep 2015 18:46:57 +0200 Subject: NOISSUE make shared logic library ... shared --- logic/MMCZip.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'logic/MMCZip.h') diff --git a/logic/MMCZip.h b/logic/MMCZip.h index 0107d7a6..a3167079 100644 --- a/logic/MMCZip.h +++ b/logic/MMCZip.h @@ -7,6 +7,8 @@ #include "SeparatorPrefixTree.h" #include +#include "multimc_logic_export.h" + class QuaZip; namespace MMCZip @@ -19,7 +21,7 @@ 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 &added, + bool MULTIMC_LOGIC_EXPORT compressSubDir(QuaZip *zip, QString dir, QString origDir, QSet &added, QString prefix = QString(), const SeparatorPrefixTree <'/'> * blacklist = nullptr); /** @@ -29,23 +31,23 @@ 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(), const SeparatorPrefixTree <'/'> * blacklist = nullptr); + bool MULTIMC_LOGIC_EXPORT compressDir(QString zipFile, QString dir, QString prefix = QString(), const SeparatorPrefixTree <'/'> * blacklist = nullptr); /// filter function for @mergeZipFiles - passthrough - bool noFilter(QString key); + bool MULTIMC_LOGIC_EXPORT noFilter(QString key); /// filter function for @mergeZipFiles - ignores METAINF - bool metaInfFilter(QString key); + bool MULTIMC_LOGIC_EXPORT metaInfFilter(QString key); /** * Merge two zip files, using a filter function */ - bool mergeZipFiles(QuaZip *into, QFileInfo from, QSet &contained, std::function filter); + bool MULTIMC_LOGIC_EXPORT mergeZipFiles(QuaZip *into, QFileInfo from, QSet &contained, std::function filter); /** * take a source jar, add mods to it, resulting in target jar */ - bool createModdedJar(QString sourceJarPath, QString targetJarPath, const QList& mods); + bool MULTIMC_LOGIC_EXPORT createModdedJar(QString sourceJarPath, QString targetJarPath, const QList& mods); /** * Extract a whole archive. @@ -55,5 +57,5 @@ namespace MMCZip * left empty. * \return The list of the full paths of the files extracted, empty on failure. */ - QStringList extractDir(QString fileCompressed, QString dir = QString()); + QStringList MULTIMC_LOGIC_EXPORT extractDir(QString fileCompressed, QString dir = QString()); } \ No newline at end of file -- cgit v1.2.3