| 39 | #endif |
| 40 | } |
| 41 | BackendInterface * backend(const QString & name = {}) |
| 42 | { |
| 43 | if (!name.isEmpty()) { |
| 44 | for (const std::unique_ptr<BackendInterface> & b : m_backendInterfaces) { |
| 45 | if (b && b->name() == name) |
| 46 | return b.get(); |
| 47 | } |
| 48 | } |
| 49 | return (m_backendInterfaces.empty() ? nullptr : m_backendInterfaces.front().get()); |
| 50 | } |
| 51 | QStringList backendNames() const |
| 52 | { |
| 53 | QStringList rv; |