![]() |
Open Lighting Architecture 0.10.9
|
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. | |
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. | |
Protected Member Functions | |
| bool | AddWidget (WidgetObserver *observer, WidgetType *widget) |
| Initialize a widget and notify the observer. | |
|
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.