Open Lighting Architecture  Latest Git
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ola::plugin::usbdmx::EuroliteProFactory Class Reference

Detailed Description

Creates EurolitePro widgets.

Inheritance diagram for ola::plugin::usbdmx::EuroliteProFactory:
Inheritance graph
[legend]
Collaboration diagram for ola::plugin::usbdmx::EuroliteProFactory:
Collaboration graph
[legend]

Public Member Functions

 EuroliteProFactory (ola::usb::LibUsbAdaptor *adaptor, Preferences *preferences)
 
bool DeviceAdded (WidgetObserver *observer, libusb_device *usb_device, const struct libusb_device_descriptor &descriptor)
 Called when a new USB device is added. More...
 
- Public Member Functions inherited from ola::plugin::usbdmx::BaseWidgetFactory< class EurolitePro >
 BaseWidgetFactory (const std::string &name)
 
std::string Name () const
 The name of this factory. More...
 

Static Public Member Functions

static bool IsEuroliteMk2Enabled (Preferences *preferences)
 

Static Public Attributes

static const char ENABLE_EUROLITE_MK2_KEY []
 

Additional Inherited Members

- Protected Member Functions inherited from ola::plugin::usbdmx::BaseWidgetFactory< class EurolitePro >
bool AddWidget (WidgetObserver *observer, class EurolitePro *widget)
 Initialize a widget and notify the observer. More...
 

Member Function Documentation

◆ DeviceAdded()

bool ola::plugin::usbdmx::EuroliteProFactory::DeviceAdded ( WidgetObserver observer,
libusb_device *  usb_device,
const struct libusb_device_descriptor &  descriptor 
)
virtual

Called when a new USB device is added.

Parameters
observerThe WidgetObserver to notify if this results in a new widget.
usb_devicethe libusb_device that was added.
descriptorthe libusb_device_descriptor that corresponds to the usb_device.
Returns
True if this factory has claimed the usb_device, false otherwise.

Implements ola::plugin::usbdmx::WidgetFactory.

Member Data Documentation

◆ ENABLE_EUROLITE_MK2_KEY

const char ola::plugin::usbdmx::EuroliteProFactory::ENABLE_EUROLITE_MK2_KEY
static
Initial value:
=
"enable_eurolite_mk2"

The documentation for this class was generated from the following files: