Class handling application support for settings.
More...
#include <ApplicationSettingsHandling.h>
Class handling application support for settings.
◆ Load()
bool CApplicationSettingsHandling::Load |
( |
const TiXmlNode * | settings | ) |
|
|
overrideprotectedvirtual |
Load settings from the given XML node.
- Parameters
-
settings | XML node containing setting values |
- Returns
- True if loading the settings was successful, false otherwise.
Reimplemented from ISubSettings.
◆ OnSettingAction()
void CApplicationSettingsHandling::OnSettingAction |
( |
const std::shared_ptr< const CSetting > & | setting | ) |
|
|
overrideprotectedvirtual |
The given setting has been activated.
This callback is triggered whenever the given setting has been activated. This callback is only fired for CSettingAction settings.
- Parameters
-
setting | The setting which has been activated. |
Reimplemented from ISettingCallback.
◆ OnSettingChanged()
void CApplicationSettingsHandling::OnSettingChanged |
( |
const std::shared_ptr< const CSetting > & | setting | ) |
|
|
overrideprotectedvirtual |
The value of the given setting has changed.
This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.
- Parameters
-
setting | The setting whose value has been changed |
Reimplemented from ISettingCallback.
◆ OnSettingUpdate()
bool CApplicationSettingsHandling::OnSettingUpdate |
( |
const std::shared_ptr< CSetting > & | setting, |
|
|
const char * | oldSettingId, |
|
|
const TiXmlNode * | oldSettingNode ) |
|
overrideprotectedvirtual |
The given setting needs to be updated.
This callback is triggered when a setting needs to be updated because its value is outdated. This only happens when initially loading the value of a setting and will not be triggered afterwards.
- Parameters
-
setting | The setting which needs to be updated. |
oldSettingId | The id of the previous setting. |
oldSettingNode | The old setting node |
- Returns
- True if the setting has been successfully updated otherwise false
Reimplemented from ISettingCallback.
◆ RegisterSettings()
void CApplicationSettingsHandling::RegisterSettings |
( |
| ) |
|
|
protected |
◆ Save()
bool CApplicationSettingsHandling::Save |
( |
TiXmlNode * | settings | ) |
const |
|
overrideprotectedvirtual |
Save settings to the given XML node.
- Parameters
-
settings | XML node in which the settings will be saved |
- Returns
- True if saving the settings was successful, false otherwise.
Reimplemented from ISubSettings.
◆ UnregisterSettings()
void CApplicationSettingsHandling::UnregisterSettings |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: