21 #ifndef PLUGINS_USBDMX_EUROLITEPROFACTORY_H_ 22 #define PLUGINS_USBDMX_EUROLITEPROFACTORY_H_ 24 #include "libs/usb/LibUsbAdaptor.h" 26 #include "olad/Preferences.h" 27 #include "plugins/usbdmx/EurolitePro.h" 28 #include "plugins/usbdmx/WidgetFactory.h" 43 libusb_device *usb_device,
44 const struct libusb_device_descriptor &descriptor);
46 static bool IsEuroliteMk2Enabled(
Preferences *preferences);
48 static const char ENABLE_EUROLITE_MK2_KEY[];
52 bool m_enable_eurolite_mk2;
54 static const uint16_t PRODUCT_ID;
55 static const uint16_t VENDOR_ID;
56 static const char EXPECTED_MANUFACTURER[];
57 static const char EXPECTED_PRODUCT[];
59 static const uint16_t PRODUCT_ID_MK2;
60 static const uint16_t VENDOR_ID_MK2;
61 static const char EXPECTED_MANUFACTURER_MK2[];
62 static const char EXPECTED_PRODUCT_MK2[];
69 #endif // PLUGINS_USBDMX_EUROLITEPROFACTORY_H_ bool DeviceAdded(WidgetObserver *observer, libusb_device *usb_device, const struct libusb_device_descriptor &descriptor)
Called when a new USB device is added.
Definition: EuroliteProFactory.cpp:66
Creates EurolitePro widgets.
Definition: EuroliteProFactory.h:37
Definition: Preferences.h:147
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Wraps calls to libusb so we can test the code.
Definition: LibUsbAdaptor.h:36