#include <AddonSystemSettings.h>
§ GetActive()
bool ADDON::CAddonSystemSettings::GetActive |
( |
const TYPE & |
type, |
|
|
AddonPtr & |
addon |
|
) |
| |
§ GetInstance()
§ IsActive()
bool ADDON::CAddonSystemSettings::IsActive |
( |
const IAddon & |
addon | ) |
|
§ MigrateAddons()
std::vector< std::string > ADDON::CAddonSystemSettings::MigrateAddons |
( |
std::function< void(void)> |
onMigrate | ) |
|
Check compatibility of installed addons and attempt to migrate.
- Parameters
-
onMigrate | Called when a long running migration task takes place. |
- Returns
- list of addons that was modified.
§ OnSettingAction()
void ADDON::CAddonSystemSettings::OnSettingAction |
( |
std::shared_ptr< const CSetting > |
setting | ) |
|
|
overridevirtual |
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 ADDON::CAddonSystemSettings::OnSettingChanged |
( |
std::shared_ptr< const CSetting > |
setting | ) |
|
|
overridevirtual |
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.
§ SetActive()
bool ADDON::CAddonSystemSettings::SetActive |
( |
const TYPE & |
type, |
|
|
const std::string & |
addonID |
|
) |
| |
§ UnsetActive()
bool ADDON::CAddonSystemSettings::UnsetActive |
( |
const AddonPtr & |
addon | ) |
|
Attempt to unset addon as active. Returns true if addon is no longer active, false if it could not be unset (e.g. if the addon is the default)
The documentation for this class was generated from the following files: