Open Lighting Architecture
0.9.6
|
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.
Implemented in ola::plugin::ftdidmx::FtdiDmxPlugin, ola::plugin::usbdmx::UsbDmxPlugin, 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::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::e131::E131Plugin, 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::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::shownet::ShowNetPlugin, ola::plugin::usbpro::UsbSerialPlugin, ola::plugin::openpixelcontrol::OPCPlugin, ola::plugin::pathport::PathportPlugin, ola::plugin::sandnet::SandNetPlugin, ola::plugin::e131::E131Plugin, 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::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::espnet::EspNetPlugin, ola::plugin::karate::KaratePlugin, ola::plugin::opendmx::OpenDmxPlugin, ola::plugin::shownet::ShowNetPlugin, ola::plugin::openpixelcontrol::OPCPlugin, ola::plugin::usbpro::UsbSerialPlugin, ola::plugin::e131::E131Plugin, 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 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 start_hook() which can be over-ridden by the derrived classes.
Implemented in ola::Plugin.
|
pure virtual |
Stop the plugin.
Calls stop_hook() which can be over-ridden by the derrived classes.
Implemented in ola::Plugin.