![]() |
Open Lighting Architecture 0.10.9
|
The interface for a plugin
Public Member Functions | |
| virtual bool | LoadPreferences ()=0 |
| Load the preferences for a plugin and set defaults. | |
| virtual std::string | PreferenceConfigLocation () const=0 |
| The location for preferences. | |
| virtual bool | IsEnabled () const=0 |
| Is the plugin enabled? | |
| virtual void | SetEnabledState (bool enable)=0 |
| Set the plugin's enabled state. | |
| virtual bool | Start ()=0 |
| Start the plugin. | |
| virtual bool | Stop ()=0 |
| Stop the plugin. | |
| virtual ola_plugin_id | Id () const=0 |
| Get the plugin ID of this plugin. | |
| virtual std::string | Name () const=0 |
| Get the plugin name. | |
| virtual std::string | Description () const=0 |
| virtual void | ConflictsWith (std::set< ola_plugin_id > *conflict_set) const=0 |
| virtual bool | operator< (const AbstractPlugin &other) const=0 |
|
pure virtual |
Return the description for this plugin.
|
pure virtual |
Get the plugin ID of this plugin.
|
pure virtual |
Is the plugin enabled?
|
pure virtual |
Get the plugin name.
|
pure virtual |
The location for preferences.
This can be anything really but should indicate to the user how the preferences were loaded.
|
pure virtual |
Set the plugin's enabled state.
| enable | The new enabled state |
|
pure virtual |
Start the plugin.
Calls StartHook() which can be overridden by the derived classes.
|
pure virtual |
Stop the plugin.
Calls StopHook() which can be overridden by the derived classes.