21#ifndef PLUGINS_USBDMX_SUNLITEFACTORY_H_
22#define PLUGINS_USBDMX_SUNLITEFACTORY_H_
24#include "libs/usb/LibUsbAdaptor.h"
26#include "plugins/usbdmx/Sunlite.h"
27#include "plugins/usbdmx/WidgetFactory.h"
36class SunliteFactory :
public BaseWidgetFactory<Sunlite> {
39 : BaseWidgetFactory<Sunlite>(
"SunliteFactory"),
44 libusb_device *usb_device,
45 const struct libusb_device_descriptor &descriptor);
51 static const uint16_t EMPTY_PRODUCT_ID;
53 static const uint16_t FULL_PRODUCT_ID;
54 static const uint16_t VENDOR_ID;
56 SunliteFactory(
const SunliteFactory &) =
delete;
57 const SunliteFactory &operator=(
const SunliteFactory &) =
delete;
bool DeviceAdded(WidgetObserver *observer, libusb_device *usb_device, const struct libusb_device_descriptor &descriptor)
Called when a new USB device is added.
Definition SunliteFactory.cpp:37
Wraps calls to libusb so we can test the code.
Definition LibUsbAdaptor.h:36
The plugin for hardware using libusb.
Code for supported devices and protocols.
The namespace containing all OLA symbols.
Definition Credentials.cpp:44