Looks up a streaming plugin by display name. Returns nullptr when no streaming plugin matches — caller surfaces the error.
| 59 | // Looks up a streaming plugin by display name. Returns nullptr when no |
| 60 | // streaming plugin matches — caller surfaces the error. |
| 61 | const LoadedDataSource* resolveStreamSource(const ExtensionCatalogService& extensions, const QString& plugin_id) { |
| 62 | for (const auto* ds : extensions.streamSources()) { |
| 63 | if (QString::fromStdString(ds->name) == plugin_id) { |
| 64 | return ds; |
| 65 | } |
| 66 | } |
| 67 | return nullptr; |
| 68 | } |
| 69 | |
| 70 | } // namespace |
| 71 |
no test coverage detected