21 #ifndef INCLUDE_OLAD_PLUGIN_H_
22 #define INCLUDE_OLAD_PLUGIN_H_
25 #include <ola/plugin_id.h>
64 virtual bool Start() = 0;
70 virtual bool Stop() = 0;
76 virtual ola_plugin_id
Id()
const = 0;
82 virtual std::string
Name()
const = 0;
90 virtual void ConflictsWith(std::set<ola_plugin_id> *conflict_set) = 0;
98 AbstractPlugin*, bool> {
100 return x->
Id() < y->
Id();
109 m_plugin_adaptor(plugin_adaptor),
118 virtual bool Start();
121 virtual bool DefaultMode()
const {
return true; }
122 virtual ola_plugin_id
Id()
const = 0;
132 virtual void ConflictsWith(std::set<ola_plugin_id>*) {}
135 return Id() < other.
Id();
139 virtual bool StartHook() {
return 0; }
140 virtual bool StopHook() {
return 0; }
149 static const char ENABLED_KEY[];
161 #endif // INCLUDE_OLAD_PLUGIN_H_