21 #ifndef PLUGINS_USBDMX_SYNCPLUGINIMPL_H_
22 #define PLUGINS_USBDMX_SYNCPLUGINIMPL_H_
32 #include "plugins/usbdmx/LibUsbAdaptor.h"
33 #include "plugins/usbdmx/PluginImplInterface.h"
34 #include "plugins/usbdmx/WidgetFactory.h"
63 unsigned int debug_level);
85 typedef std::vector<class WidgetFactory*> WidgetFactories;
86 typedef std::map<class Widget*, Device*> WidgetToDeviceMap;
90 const unsigned int m_debug_level;
92 WidgetFactories m_widget_factories;
94 libusb_context *m_context;
96 WidgetToDeviceMap m_devices;
97 std::set<std::pair<uint8_t, uint8_t> > m_registered_devices;
99 unsigned int ScanForDevices();
100 void ReScanForDevices();
101 bool CheckDevice(libusb_device *device);
103 bool StartAndRegisterDevice(
class Widget *widget,
Device *device);
110 #endif // PLUGINS_USBDMX_SYNCPLUGINIMPL_H_