21 #ifndef PLUGINS_USBDMX_SYNCPLUGINIMPL_H_ 22 #define PLUGINS_USBDMX_SYNCPLUGINIMPL_H_ 31 #include "libs/usb/LibUsbAdaptor.h" 33 #include "olad/Preferences.h" 34 #include "plugins/usbdmx/PluginImplInterface.h" 35 #include "plugins/usbdmx/Widget.h" 36 #include "plugins/usbdmx/WidgetFactory.h" 66 unsigned int debug_level,
97 typedef std::vector<class WidgetFactory*> WidgetFactories;
98 typedef std::map<class WidgetInterface*, Device*> WidgetToDeviceMap;
102 const unsigned int m_debug_level;
105 WidgetFactories m_widget_factories;
107 libusb_context *m_context;
109 WidgetToDeviceMap m_devices;
110 std::set<std::pair<uint8_t, uint8_t> > m_registered_devices;
112 unsigned int ScanForDevices();
113 void ReScanForDevices();
114 bool CheckDevice(libusb_device *device);
123 #endif // PLUGINS_USBDMX_SYNCPLUGINIMPL_H_ The interface for the Nodle Widgets.
Definition: DMXCProjectsNodleU1.h:43
The EurolitePro Widget.
Definition: EurolitePro.h:42
The legacy implementation.
Definition: SyncPluginImpl.h:53
bool Start()
Start the implementation.
Definition: SyncPluginImpl.cpp:92
The interface for the Fadecandy Widgets.
Definition: ScanlimeFadecandy.h:49
#define OLA_UNUSED
Mark unused arguments & types.
Definition: Macro.h:62
Definition: PluginAdaptor.h:41
The interface for the Sunlite Widgets.
Definition: Sunlite.h:40
The interface for an implementation of the USB DMX plugin.
Definition: PluginImplInterface.h:40
bool NewWidget(class AnymauDMX *widget)
Called when a new AnymauDMX is added.
Definition: SyncPluginImpl.cpp:133
The base class for AVLdiy Widgets.
Definition: AVLdiyD512.h:41
The interface for the Velleman Widgets.
Definition: VellemanK8062.h:41
Definition: Preferences.h:147
The ShowJockey-DMX-U1 Widget.
Definition: ShowJockeyDMXU1.h:54
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A LibUsbAdaptor for use with Synchronous widgets.
Definition: LibUsbAdaptor.h:540
The base class for DMXCreator512Basic Widgets.
Definition: DMXCreator512Basic.h:41
SyncPluginImpl(PluginAdaptor *plugin_adaptor, Plugin *plugin, unsigned int debug_level, Preferences *preferences)
Create a new SyncPluginImpl.
Definition: SyncPluginImpl.cpp:66
bool Stop()
Stop the implementation.
Definition: SyncPluginImpl.cpp:117
The base class for Anyma Widgets.
Definition: AnymauDMX.h:41