Open Lighting Architecture
Latest Git
|
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. More... | |
virtual bool | IsEnabled () const =0 |
Is the plugin enabled? More... | |
virtual void | SetEnabledState (bool enable)=0 |
Set the plugin's enabled state. More... | |
virtual bool | Start ()=0 |
Start the plugin. More... | |
virtual bool | Stop ()=0 |
Stop the plugin. More... | |
virtual ola_plugin_id | Id () const =0 |
Get the plugin ID of this plugin. More... | |
virtual std::string | Name () const =0 |
Get the plugin name. More... | |
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.
Implemented in ola::plugin::usbdmx::UsbDmxPlugin, ola::plugin::ftdidmx::FtdiDmxPlugin, ola::plugin::spidmx::SPIDMXPlugin, ola::plugin::dmx4linux::Dmx4LinuxPlugin, ola::plugin::uartdmx::UartDmxPlugin, ola::plugin::gpio::GPIOPlugin, ola::plugin::stageprofi::StageProfiPlugin, ola::plugin::milinst::MilInstPlugin, ola::plugin::artnet::ArtNetPlugin, ola::plugin::renard::RenardPlugin, ola::plugin::e131::E131Plugin, ola::plugin::osc::OSCPlugin, ola::plugin::shownet::ShowNetPlugin, ola::plugin::dummy::DummyPlugin, ola::plugin::espnet::EspNetPlugin, ola::plugin::karate::KaratePlugin, ola::plugin::opendmx::OpenDmxPlugin, ola::plugin::openpixelcontrol::OPCPlugin, ola::plugin::nanoleaf::NanoleafPlugin, ola::plugin::usbpro::UsbSerialPlugin, ola::plugin::kinet::KiNetPlugin, ola::plugin::pathport::PathportPlugin, ola::plugin::sandnet::SandNetPlugin, and ola::plugin::spi::SPIPlugin.
|
pure virtual |
Get the plugin ID of this plugin.
Implemented in ola::Plugin, ola::plugin::usbdmx::UsbDmxPlugin, ola::plugin::dmx4linux::Dmx4LinuxPlugin, ola::plugin::gpio::GPIOPlugin, ola::plugin::stageprofi::StageProfiPlugin, ola::plugin::ftdidmx::FtdiDmxPlugin, ola::plugin::milinst::MilInstPlugin, ola::plugin::osc::OSCPlugin, ola::plugin::spidmx::SPIDMXPlugin, ola::plugin::uartdmx::UartDmxPlugin, ola::plugin::artnet::ArtNetPlugin, ola::plugin::dummy::DummyPlugin, ola::plugin::espnet::EspNetPlugin, ola::plugin::karate::KaratePlugin, ola::plugin::opendmx::OpenDmxPlugin, ola::plugin::renard::RenardPlugin, ola::plugin::e131::E131Plugin, ola::plugin::shownet::ShowNetPlugin, ola::plugin::usbpro::UsbSerialPlugin, ola::plugin::openpixelcontrol::OPCPlugin, ola::plugin::pathport::PathportPlugin, ola::plugin::sandnet::SandNetPlugin, ola::plugin::nanoleaf::NanoleafPlugin, ola::plugin::spi::SPIPlugin, and ola::plugin::kinet::KiNetPlugin.
|
pure virtual |
|
pure virtual |
Get the plugin name.
Implemented in ola::plugin::usbdmx::UsbDmxPlugin, ola::plugin::dmx4linux::Dmx4LinuxPlugin, ola::plugin::ftdidmx::FtdiDmxPlugin, ola::plugin::gpio::GPIOPlugin, ola::plugin::spidmx::SPIDMXPlugin, ola::plugin::uartdmx::UartDmxPlugin, ola::plugin::stageprofi::StageProfiPlugin, ola::plugin::milinst::MilInstPlugin, ola::plugin::artnet::ArtNetPlugin, ola::plugin::osc::OSCPlugin, ola::plugin::renard::RenardPlugin, ola::plugin::dummy::DummyPlugin, ola::plugin::e131::E131Plugin, ola::plugin::espnet::EspNetPlugin, ola::plugin::karate::KaratePlugin, ola::plugin::opendmx::OpenDmxPlugin, ola::plugin::shownet::ShowNetPlugin, ola::plugin::openpixelcontrol::OPCPlugin, ola::plugin::usbpro::UsbSerialPlugin, ola::plugin::nanoleaf::NanoleafPlugin, ola::plugin::pathport::PathportPlugin, ola::plugin::sandnet::SandNetPlugin, ola::plugin::kinet::KiNetPlugin, and ola::plugin::spi::SPIPlugin.
|
pure virtual |
The location for preferences.
This can be anything really but should indicate to the user how the preferences were loaded.
Implemented in ola::Plugin.
|
pure virtual |
Set the plugin's enabled state.
enable | The new enabled state |
Implemented in ola::Plugin.
|
pure virtual |
Start the plugin.
Calls StartHook() which can be overridden by the derived classes.
Implemented in ola::Plugin.
|
pure virtual |
Stop the plugin.
Calls StopHook() which can be overridden by the derived classes.
Implemented in ola::Plugin.