Audacity 3.2.0
Registrar.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Registrar.h
6
7 James Crook
8
9*******************************************************************/
20#ifndef __AUDACITY_REGISTRAR__
21#define __AUDACITY_REGISTRAR__
22
23
24
25#include <memory>
26
27class AudacityCommand;
28class LoadableModule;
30class Effect;
31
32class REGISTRIES_API Registrar
33{
34public:
36 bWantsModules = false;
37 bWantsCommands= false;
38 bWantsCommandTypes= false;
39 bWantsEffects= false;
40 }
45 virtual void AddCommandType(std::unique_ptr<ComponentInterface> && WXUNUSED(comDef) ){;};
46 virtual void AddCommand(std::unique_ptr<AudacityCommand> && WXUNUSED(command) ){;};
47 virtual void AddModule(std::unique_ptr<LoadableModule> && WXUNUSED(module) ){;};
48 virtual void AddEffect(std::unique_ptr<Effect> && WXUNUSED(effect) ){;};
49};
50
51#endif
Base class for command in Audacity.
ComponentInterface provides name / vendor / version functions to identify plugins....
Base class for many of the effects in Audacity.
Definition: Effect.h:26
Base class for registration callback. Audacity will call providers RegisterNameOfThing() functions wi...
Definition: Registrar.h:33
virtual void AddCommandType(std::unique_ptr< ComponentInterface > &&WXUNUSED(comDef))
Definition: Registrar.h:45
bool bWantsCommands
Definition: Registrar.h:42
bool bWantsModules
Definition: Registrar.h:41
Registrar()
Definition: Registrar.h:35
virtual void AddModule(std::unique_ptr< LoadableModule > &&WXUNUSED(module))
Definition: Registrar.h:47
bool bWantsEffects
Definition: Registrar.h:44
bool bWantsCommandTypes
Definition: Registrar.h:43
virtual void AddCommand(std::unique_ptr< AudacityCommand > &&WXUNUSED(command))
Definition: Registrar.h:46
virtual void AddEffect(std::unique_ptr< Effect > &&WXUNUSED(effect))
Definition: Registrar.h:48