| 49 | return (m_backendInterfaces.empty() ? nullptr : m_backendInterfaces.front().get()); |
| 50 | } |
| 51 | QStringList backendNames() const |
| 52 | { |
| 53 | QStringList rv; |
| 54 | for (const std::unique_ptr<BackendInterface> & bi : m_backendInterfaces) { |
| 55 | if (!bi) { |
| 56 | continue; |
| 57 | } |
| 58 | rv.append(bi->name()); |
| 59 | } |
| 60 | return rv; |
| 61 | } |
| 62 | QString defaultBackendName() const |
| 63 | { |
| 64 | return (m_backendInterfaces.empty() ? QString() : m_backendInterfaces.front()->name()); |