aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceCopyPrefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/InstanceCopyPrefs.h')
-rw-r--r--launcher/InstanceCopyPrefs.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/launcher/InstanceCopyPrefs.h b/launcher/InstanceCopyPrefs.h
index 432d67c4..3855965d 100644
--- a/launcher/InstanceCopyPrefs.h
+++ b/launcher/InstanceCopyPrefs.h
@@ -2,12 +2,32 @@
// Created by marcelohdez on 10/22/22.
//
-#ifndef LAUNCHER_INSTANCECOPYPREFS_H
-#define LAUNCHER_INSTANCECOPYPREFS_H
+#pragma once
#include <QStringList>
struct InstanceCopyPrefs {
+ public:
+ [[nodiscard]] bool allTrue() const;
+ [[nodiscard]] QString getSelectedFiltersAsRegex() const;
+ // Getters
+ [[nodiscard]] bool isCopySavesEnabled() const;
+ [[nodiscard]] bool isKeepPlaytimeEnabled() const;
+ [[nodiscard]] bool isCopyGameOptionsEnabled() const;
+ [[nodiscard]] bool isCopyResourcePacksEnabled() const;
+ [[nodiscard]] bool isCopyShaderPacksEnabled() const;
+ [[nodiscard]] bool isCopyServersEnabled() const;
+ [[nodiscard]] bool isCopyModsEnabled() const;
+ // Setters
+ void enableCopySaves(bool b);
+ void enableKeepPlaytime(bool b);
+ void enableCopyGameOptions(bool b);
+ void enableCopyResourcePacks(bool b);
+ void enableCopyShaderPacks(bool b);
+ void enableCopyServers(bool b);
+ void enableCopyMods(bool b);
+
+ protected: // data
bool copySaves = true;
bool keepPlaytime = true;
bool copyGameOptions = true;
@@ -15,9 +35,4 @@ struct InstanceCopyPrefs {
bool copyShaderPacks = true;
bool copyServers = true;
bool copyMods = true;
-
- [[nodiscard]] bool allTrue() const;
- [[nodiscard]] QString getSelectedFiltersAsRegex() const;
};
-
-#endif // LAUNCHER_INSTANCECOPYPREFS_H