MCPcopy Create free account
hub / github.com/KDE/kdevelop / DockerPlugin

Method DockerPlugin

plugins/docker/dockerplugin.cpp:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // unnamed namespace
50
51DockerPlugin::DockerPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList& /*args*/)
52 : KDevelop::IPlugin(QStringLiteral("kdevdocker"), parent, metaData)
53 , m_settings(new DockerPreferencesSettings)
54{
55 runtimeChanged(ICore::self()->runtimeController()->currentRuntime());
56
57 setXMLFile( QStringLiteral("kdevdockerplugin.rc") );
58 connect(ICore::self()->runtimeController(), &IRuntimeController::currentRuntimeChanged, this, &DockerPlugin::runtimeChanged);
59
60 auto* process = new QProcess(this);
61 connect(process, QOverload<int,QProcess::ExitStatus>::of(&QProcess::finished),
62 this, &DockerPlugin::imagesListFinished);
63 process->start(QStringLiteral("docker"), {QStringLiteral("images"), QStringLiteral("--filter"), QStringLiteral("dangling=false"), QStringLiteral("--format"), QStringLiteral("{{.Repository}}:{{.Tag}}\t{{.ID}}")}, QIODevice::ReadOnly);
64
65 DockerRuntime::s_settings = m_settings.data();
66}
67
68DockerPlugin::~DockerPlugin()
69{

Callers

nothing calls this directly

Calls 4

currentRuntimeMethod · 0.80
runtimeControllerMethod · 0.80
startMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected