* @brief Returns true when the current project sources are all configured. */
| 1337 | * @brief Returns true when the current project sources are all configured. |
| 1338 | */ |
| 1339 | bool IO::ConnectionManager::projectConfigurationOk() const |
| 1340 | { |
| 1341 | const auto& sources = DataModel::ProjectModel::instance().sources(); |
| 1342 | if (sources.empty()) |
| 1343 | return false; |
| 1344 | |
| 1345 | for (const auto& src : sources) { |
| 1346 | auto it = m_devices.find(src.sourceId); |
| 1347 | if (it == m_devices.end() || !it->second || !it->second->driver()) |
| 1348 | return false; |
| 1349 | |
| 1350 | if (!it->second->driver()->configurationOk()) |
| 1351 | return false; |
| 1352 | } |
| 1353 | |
| 1354 | return true; |
| 1355 | } |
| 1356 | |
| 1357 | /** |
| 1358 | * @brief Routes a completed frame from device @p deviceId to FrameBuilder. |
nothing calls this directly
no test coverage detected