summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/settings_common.h')
-rw-r--r--src/common/settings_common.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 2b5c72f41..664c807f1 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -43,6 +43,17 @@ enum class Category : u32 {
MaxEnum,
};
+enum class Specialization : u32 {
+ Default,
+ Time,
+ Hex,
+ List,
+ RuntimeList,
+ Scalar,
+ Countable,
+ Paired,
+};
+
bool IsConfiguringGlobal();
void SetConfiguringGlobal(bool is_global);
@@ -64,7 +75,7 @@ public:
class BasicSetting {
protected:
explicit BasicSetting(Linkage& linkage, const std::string& name, enum Category category_,
- bool save_, bool runtime_modifiable_);
+ bool save_, bool runtime_modifiable_, Specialization spec);
public:
virtual ~BasicSetting();
@@ -181,6 +192,11 @@ public:
[[nodiscard]] enum Category Category() const;
/**
+ * @returns Extra metadata for data representation in frontend implementations.
+ */
+ [[nodiscard]] enum Specialization Specialization() const;
+
+ /**
* Returns the label this setting was created with.
*
* @returns A reference to the label
@@ -219,6 +235,8 @@ private:
const bool save; ///< Suggests if the setting should be saved and read to a frontend config
const bool
runtime_modifiable; ///< Suggests if the setting can be modified while a guest is running
+ const enum Specialization
+ specialization; ///< Extra data to identify representation of a setting
};
} // namespace Settings