MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetUSBDevices

Function GetUSBDevices

plugins/usb/usb-helpers.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184std::vector<USBDeviceInfo> GetUSBDevices()
185{
186 // Hotplug events do not seem to be firing consistently during testing
187 // on Linux so for now only rely on polling based functionality instead
188 return getPollingBasedDeviceList();
189
190 /*
191 if (hotplugsAreSupported) {
192 return getHotplugBasedDeviceList();
193 } else {
194 return getPollingBasedDeviceList();
195 }
196 */
197}
198
199QStringList GetUSBDevicesStringList()
200{

Callers 3

GetUSBDevicesStringListFunction · 0.85
CheckConditionMethod · 0.85
MacroConditionUSBEditMethod · 0.85

Calls 1

Tested by

no test coverage detected