19 const auto &
id = pluginManager.GetID(&
ident);
20 if (pluginManager.HasConfigGroup(type,
id, group))
22 if (
auto id2 = pluginManager.OldGetID(&
ident);
id != id2)
23 return pluginManager.HasConfigGroup(type, id2, group);
32 const auto &
id = pluginManager.GetID(&
ident);
33 if (pluginManager.GetConfigSubgroups(
34 type,
id, group, subgroups))
36 if (
auto id2 = pluginManager.OldGetID(&
ident);
id != id2)
37 return pluginManager.GetConfigSubgroups(type, id2, group, subgroups);
46 const auto &
id = pluginManager.GetID(&
ident);
47 if (pluginManager.HasConfigValue(type,
id, group,
key))
49 if (
auto id2 = pluginManager.OldGetID(&
ident);
id != id2)
50 return pluginManager.HasConfigValue(type, id2, group,
key);
60 const auto &
id = pluginManager.GetID(&
ident);
61 if (pluginManager.GetConfigValue(type,
id, group,
key, var, defval))
63 if (
auto id2 = pluginManager.OldGetID(&
ident);
id != id2)
64 return pluginManager.GetConfigValue(type, id2, group,
key, var, defval);
74 const auto &
id = pluginManager.GetID(&
ident);
75 return pluginManager.SetConfigValue(type,
id, group,
key, value);
83 const auto &
id = pluginManager.GetID(&
ident);
84 const auto &id2 = pluginManager.OldGetID(&
ident);
85 return pluginManager.RemoveConfigSubgroup(type,
id, group)
86 || (id2 !=
id && pluginManager.RemoveConfigSubgroup(type, id2, group));
94 const auto &
id = pluginManager.GetID(&
ident);
95 const auto &id2 = pluginManager.OldGetID(&
ident);
96 return pluginManager.RemoveConfig(type,
id, group,
key)
97 || (id2 !=
id && pluginManager.RemoveConfig(type, id2, group,
key));
std::vector< RegistryPath > RegistryPaths
static CommandHandlerObject & ident(AudacityProject &project)
EffectDefinitionInterface is a ComponentInterface that adds some basic read-only information about ef...
static PluginManager & Get()
bool RemoveConfigSubgroup(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group)
bool GetConfigSubgroups(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, RegistryPaths &subgroups)
bool HasConfigValue(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, const RegistryPath &key)
TypeListVisitor::VariantOfReferences_t< false, ConfigValueTypes > ConfigReference
Define a reference to a variable of one of the types in ConfigValueTypes.
bool GetConfigValue(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, const RegistryPath &key, ConfigReference var, ConfigConstReference defval)
bool RemoveConfig(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, const RegistryPath &key)
bool SetConfigValue(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, const RegistryPath &key, ConfigConstReference value)
TypeListVisitor::VariantOfReferences_t< true, ConfigValueTypes > ConfigConstReference
bool HasConfigGroup(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group)