MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / deviceList

Method deviceList

app/src/IO/Drivers/USB.cpp:357–363  ·  view source on GitHub ↗

* @brief Returns the device list with a "Select Device" placeholder at index 0. */

Source from the content-addressed store, hash-verified

355 * @brief Returns the device list with a "Select Device" placeholder at index 0.
356 */
357QStringList IO::Drivers::USB::deviceList() const
358{
359 QStringList list;
360 list.append(tr("Select Device"));
361 list.append(m_deviceLabels);
362 return list;
363}
364
365/**
366 * @brief Returns the index of the currently selected USB device.

Callers 4

setDeviceIndexMethod · 0.45
getDeviceListMethod · 0.45
setDeviceIndexMethod · 0.45
getDeviceListMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected