diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-04 01:20:48 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-04 01:20:48 +0200 |
commit | 1b884d0a9dc28d8bca38fe8756482d991d0ea850 (patch) | |
tree | fabe4350a3d64123ad0801fe7c285c2150f9562b /logic/settings/SettingsObject.h | |
parent | 8e9d5f56b592fd0dd0f54e747a835391a775120d (diff) | |
download | PrismLauncher-1b884d0a9dc28d8bca38fe8756482d991d0ea850.tar.gz PrismLauncher-1b884d0a9dc28d8bca38fe8756482d991d0ea850.tar.bz2 PrismLauncher-1b884d0a9dc28d8bca38fe8756482d991d0ea850.zip |
GH-907 improve Java testing and PermGen deprecation handling
Diffstat (limited to 'logic/settings/SettingsObject.h')
-rw-r--r-- | logic/settings/SettingsObject.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logic/settings/SettingsObject.h b/logic/settings/SettingsObject.h index ac8419e8..99782a01 100644 --- a/logic/settings/SettingsObject.h +++ b/logic/settings/SettingsObject.h @@ -51,6 +51,16 @@ public: std::shared_ptr<Setting> registerOverride(std::shared_ptr<Setting> original); /*! + * Registers a passthorugh setting for the given original setting in this settings object + * gate decides if the passthrough (true) or the original (false) is used for value + * + * This will fail if there is already a setting with the same ID as + * the one that is being registered. + * \return A valid Setting shared pointer if successful. + */ + std::shared_ptr<Setting> registerPassthrough(std::shared_ptr<Setting> original, std::shared_ptr<Setting> gate); + + /*! * Registers the given setting with this SettingsObject and connects the necessary signals. * * This will fail if there is already a setting with the same ID as |