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);
83 typedef std::vector<class WidgetFactory*> WidgetFactories;
84 typedef std::map<class Widget*, Device*> WidgetToDeviceMap;
88 const unsigned int m_debug_level;
90 WidgetFactories m_widget_factories;
92 libusb_context *m_context;
94 WidgetToDeviceMap m_devices;
95 std::set<std::pair<uint8_t, uint8_t> > m_registered_devices;
97 unsigned int ScanForDevices();
98 void ReScanForDevices();
99 bool CheckDevice(libusb_device *device);
101 bool StartAndRegisterDevice(
class Widget *widget,
Device *device);
108 #endif // PLUGINS_USBDMX_SYNCPLUGINIMPL_H_