aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers/ExportToModList.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-25 14:11:41 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-25 14:11:41 +0300
commit84c63f4f017324b42c2470fb2e7a1ac5858fcaa0 (patch)
treed912f08129d3941ce021e1f32fc5499e2528ac4a /launcher/modplatform/helpers/ExportToModList.h
parentef0752972ae64002a02e66e430165f3e93c09c53 (diff)
downloadPrismLauncher-84c63f4f017324b42c2470fb2e7a1ac5858fcaa0.tar.gz
PrismLauncher-84c63f4f017324b42c2470fb2e7a1ac5858fcaa0.tar.bz2
PrismLauncher-84c63f4f017324b42c2470fb2e7a1ac5858fcaa0.zip
Added plantxt export
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/helpers/ExportToModList.h')
-rw-r--r--launcher/modplatform/helpers/ExportToModList.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/launcher/modplatform/helpers/ExportToModList.h b/launcher/modplatform/helpers/ExportToModList.h
new file mode 100644
index 00000000..9ff8d25a
--- /dev/null
+++ b/launcher/modplatform/helpers/ExportToModList.h
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-3.0-only
+/*
+ * Prism Launcher - Minecraft Launcher
+ * Copyright (c) 2023 Trial97 <alexandru.tripon97@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+#pragma once
+#include <qlist.h>
+#include <QString>
+#include "minecraft/mod/Mod.h"
+
+namespace ExportToModList {
+
+enum Formats { HTML, MARKDOWN, PLAINTXT, CUSTOM };
+enum OptionalData {
+ Authors = 1 << 0,
+ Url = 1 << 1,
+ Version = 1 << 2,
+};
+QString ExportToModList(QList<Mod*> mods, Formats format, OptionalData extraData);
+QString ExportToModList(QList<Mod*> mods, QString lineTemplate);
+} // namespace ExportToModList