summaryrefslogtreecommitdiff
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/settings_common.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 664c807f1..ad005ca4e 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -75,7 +75,8 @@ public:
75class BasicSetting { 75class BasicSetting {
76protected: 76protected:
77 explicit BasicSetting(Linkage& linkage, const std::string& name, enum Category category_, 77 explicit BasicSetting(Linkage& linkage, const std::string& name, enum Category category_,
78 bool save_, bool runtime_modifiable_, Specialization spec); 78 bool save_, bool runtime_modifiable_, Specialization spec,
79 BasicSetting* other_setting);
79 80
80public: 81public:
81 virtual ~BasicSetting(); 82 virtual ~BasicSetting();
@@ -197,6 +198,11 @@ public:
197 [[nodiscard]] enum Specialization Specialization() const; 198 [[nodiscard]] enum Specialization Specialization() const;
198 199
199 /** 200 /**
201 * @returns Another BasicSetting if one is paired, or nullptr otherwise.
202 */
203 [[nodiscard]] BasicSetting* PairedSetting() const;
204
205 /**
200 * Returns the label this setting was created with. 206 * Returns the label this setting was created with.
201 * 207 *
202 * @returns A reference to the label 208 * @returns A reference to the label
@@ -236,7 +242,8 @@ private:
236 const bool 242 const bool
237 runtime_modifiable; ///< Suggests if the setting can be modified while a guest is running 243 runtime_modifiable; ///< Suggests if the setting can be modified while a guest is running
238 const enum Specialization 244 const enum Specialization
239 specialization; ///< Extra data to identify representation of a setting 245 specialization; ///< Extra data to identify representation of a setting
246 BasicSetting* const other_setting; ///< A paired setting
240}; 247};
241 248
242} // namespace Settings 249} // namespace Settings