43#ifndef __AUDACITY_PLUGINPROVIDER_H__
44#define __AUDACITY_PLUGINPROVIDER_H__
137 virtual bool SupportsCustomModulePaths()
const;
186 virtual std::unique_ptr<Validator> MakeValidator()
const;
192 virtual std::unique_ptr<ComponentInterface>
200#define DECLARE_PROVIDER_ENTRY(name) \
201static std::unique_ptr<PluginProvider> name()
214#define DECLARE_BUILTIN_PROVIDER_BASE(name) \
218 name() {Register();} \
219 ~name() {Unregister();} \
223static name name ## _instance;
229#define DECLARE_BUILTIN_PROVIDER(name) \
230DECLARE_BUILTIN_PROVIDER_BASE(name) \
231void name::Register() \
233 RegisterProviderFactory(AudacityModule); \
235void name::Unregister() \
237 UnregisterProviderFactory(AudacityModule); \
std::vector< PluginPath > PluginPaths
wxString PluginPath
type alias for identifying a Plugin supplied by a module, each module defining its own interpretation...
ComponentInterface provides name / vendor / version functions to identify plugins....
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
virtual void Validate(ComponentInterface &pluginInterface)=0
virtual ~PluginProvider()
virtual EffectFamilySymbol GetOptionalFamilySymbol()=0
A symbol identifying the family of plug-ins provided by this.
virtual unsigned DiscoverPluginsAtPath(const PluginPath &path, TranslatableString &errMsg, const RegistrationCallback &callback)=0
virtual void Terminate()=0
Called just prior to deletion to allow releasing any resources.
virtual PluginPaths FindModulePaths(PluginManagerInterface &pluginManager)=0
virtual std::unique_ptr< ComponentInterface > LoadPlugin(const PluginPath &path)=0
Load the plug-in at a path reported by DiscoverPluginsAtPath.
virtual void AutoRegisterPlugins(PluginManagerInterface &pluginManager)=0
Called so that a provider of a static set of plug-ins can register them.
virtual const FileExtensions & GetFileExtensions()=0
File types associated with this protocol.
std::function< const PluginID &(PluginProvider *, ComponentInterface *) > RegistrationCallback
Further expand a path reported by FindModulePaths.
virtual bool Initialize()=0
Called immediately after creation. Let provider initialize.
virtual bool CheckPluginExist(const PluginPath &path) const =0
Performs plugin/module existence check, still plugin may fail to load. Implementation should avoid lo...
virtual FilePath InstallPath()=0
Where plug-in files should be copied to install them.
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.