| 71 | } |
| 72 | |
| 73 | void DockerPlugin::imagesListFinished(int code) |
| 74 | { |
| 75 | if (code != 0) |
| 76 | return; |
| 77 | |
| 78 | auto* process = qobject_cast<QProcess*>(sender()); |
| 79 | Q_ASSERT(process); |
| 80 | QTextStream stream(process); |
| 81 | while(!stream.atEnd()) { |
| 82 | const QString line = stream.readLine(); |
| 83 | const QStringList parts = line.split(QLatin1Char('\t')); |
| 84 | |
| 85 | const QString tag = parts[0] == QLatin1String("<none>") ? parts[1] : parts[0]; |
| 86 | ICore::self()->runtimeController()->addRuntimes(new DockerRuntime(tag)); |
| 87 | } |
| 88 | |
| 89 | process->deleteLater(); |
| 90 | Q_EMIT imagesListed(); |
| 91 | } |
| 92 | |
| 93 | void DockerPlugin::runtimeChanged(KDevelop::IRuntime* newRuntime) |
| 94 | { |
nothing calls this directly
no test coverage detected