| 182 | } |
| 183 | |
| 184 | std::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 | |
| 199 | QStringList GetUSBDevicesStringList() |
| 200 | { |
no test coverage detected