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

Method availableBuses

app/src/IO/ConnectionManager.cpp:266–282  ·  view source on GitHub ↗

* @brief Returns all available bus type names for the UI combo box. */

Source from the content-addressed store, hash-verified

264 * @brief Returns all available bus type names for the UI combo box.
265 */
266QStringList IO::ConnectionManager::availableBuses() const
267{
268 QStringList list;
269 list.append(tr("UART/COM"));
270 list.append(tr("Network Socket"));
271 list.append(tr("Bluetooth LE"));
272#ifdef BUILD_COMMERCIAL
273 list.append(tr("Audio"));
274 list.append(tr("Modbus"));
275 list.append(tr("CAN Bus"));
276 list.append(tr("USB Device"));
277 list.append(tr("HID Device"));
278 list.append(tr("Process"));
279 list.append(tr("MQTT Subscriber"));
280#endif
281 return list;
282}
283
284/**
285 * @brief Returns the active driver for the given device ID.

Callers 2

getStatusMethod · 0.80
getAvailableBusesMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected