* @brief Sets the plugin index and refreshes available interfaces. */
| 580 | * @brief Sets the plugin index and refreshes available interfaces. |
| 581 | */ |
| 582 | void IO::Drivers::CANBus::setPluginIndex(const quint8 index) |
| 583 | { |
| 584 | if (index < m_pluginList.count() && m_pluginIndex != index) { |
| 585 | m_pluginIndex = index; |
| 586 | m_settings.setValue("CanBusDriver/pluginIndex", index); |
| 587 | refreshInterfaces(); |
| 588 | Q_EMIT pluginIndexChanged(); |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * @brief Sets the interface index. |
no test coverage detected