21 #ifndef INCLUDE_OLAD_PLUGIN_H_
22 #define INCLUDE_OLAD_PLUGIN_H_
25 #include <ola/plugin_id.h>
75 virtual bool Start() = 0;
83 virtual bool Stop() = 0;
89 virtual ola_plugin_id
Id()
const = 0;
95 virtual std::string
Name()
const = 0;
103 virtual void ConflictsWith(std::set<ola_plugin_id> *conflict_set)
const = 0;
111 AbstractPlugin*, bool> {
113 return x->
Id() < y->
Id();
122 m_plugin_adaptor(plugin_adaptor),
132 virtual bool Start();
135 virtual bool DefaultMode()
const {
return true; }
136 virtual ola_plugin_id
Id()
const = 0;
146 virtual void ConflictsWith(std::set<ola_plugin_id>*)
const {}
149 return Id() < other.
Id();
153 virtual bool StartHook() {
return 0; }
154 virtual bool StopHook() {
return 0; }
163 static const char ENABLED_KEY[];
175 #endif // INCLUDE_OLAD_PLUGIN_H_