Open Lighting Architecture
0.10.4
|
A partial implementation of WidgetFactory.
This handles the mapping of libusb_devices to widgets and notifying the observer when widgets are added or removed.
Public Member Functions | |
BaseWidgetFactory (const std::string &name) | |
std::string | Name () const |
The name of this factory. More... | |
Public Member Functions inherited from ola::plugin::usbdmx::WidgetFactory | |
virtual bool | DeviceAdded (WidgetObserver *observer, libusb_device *usb_device, const struct libusb_device_descriptor &descriptor)=0 |
Called when a new USB device is added. More... | |
Protected Member Functions | |
bool | AddWidget (WidgetObserver *observer, WidgetType *widget) |
Initialize a widget and notify the observer. More... | |
|
protected |
Initialize a widget and notify the observer.
observer | The WidgetObserver to notify of the new widget. |
widget | the new Widget, ownership is transferred. |
|
inlinevirtual |
The name of this factory.
Implements ola::plugin::usbdmx::WidgetFactory.