diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-01-28 12:37:22 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-01-31 21:40:59 +0100 |
commit | a8089b76c0e7961e31b96cdd203e3c345183645b (patch) | |
tree | 973a74a6d2cfe0222e1dddcdbf6c706e7794d0e0 /launcher/MMCZip.h | |
parent | 71516e6c728a6b7429c04f297f6b0f3710bfa3c3 (diff) | |
download | PrismLauncher-a8089b76c0e7961e31b96cdd203e3c345183645b.tar.gz PrismLauncher-a8089b76c0e7961e31b96cdd203e3c345183645b.tar.bz2 PrismLauncher-a8089b76c0e7961e31b96cdd203e3c345183645b.zip |
fix: bring back instance exports
Diffstat (limited to 'launcher/MMCZip.h')
-rw-r--r-- | launcher/MMCZip.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/launcher/MMCZip.h b/launcher/MMCZip.h index c8e830ab..29ae2a63 100644 --- a/launcher/MMCZip.h +++ b/launcher/MMCZip.h @@ -90,4 +90,22 @@ namespace MMCZip */ bool extractFile(QString fileCompressed, QString file, QString dir); + /** + * Populate a QFileInfoList with a directory tree recursively, while allowing to excludeFilter what shouldn't be included. + * \param rootDir directory to start off + * \param subDir subdirectory, should be nullptr for first invocation + * \param files resulting list of QFileInfo + * \param excludeFilter function to excludeFilter which files shouldn't be included (returning true means to excude) + * \return true for success or false for failure + */ + bool collectFileListRecursively(const QString &rootDir, const QString &subDir, QFileInfoList *files, FilterFunction excludeFilter); + + /** + * Compress directory, by providing a list of files to compress + * \param fileCompressed target archive file + * \param dir directory that will be compressed (to compress with relative paths) + * \param files list of files to compress + * \return true for success or false for failure + */ + bool compressDirFiles(QString fileCompressed, QString dir, QFileInfoList files); } |