docker: Add dockercli setting

Change-Id: I46fada555d697007042d823ef1cad0658be98e22
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-07-04 11:09:11 +02:00
parent 95c1f37a31
commit 8a7a4fce6c
9 changed files with 86 additions and 130 deletions

View File

@@ -25,6 +25,8 @@
#pragma once
#include "dockersettings.h"
#include <projectexplorer/devicesupport/idevice.h>
#include <projectexplorer/devicesupport/idevicefactory.h>
#include <coreplugin/documentmanager.h>
@@ -56,10 +58,10 @@ public:
using Ptr = QSharedPointer<DockerDevice>;
using ConstPtr = QSharedPointer<const DockerDevice>;
explicit DockerDevice(const DockerDeviceData &data);
explicit DockerDevice(QSharedPointer<DockerSettings> settings, const DockerDeviceData &data);
~DockerDevice();
static Ptr create(const DockerDeviceData &data) { return Ptr(new DockerDevice(data)); }
static Ptr create(QSharedPointer<DockerSettings> settings, const DockerDeviceData &data) { return Ptr(new DockerDevice(settings, data)); }
ProjectExplorer::IDeviceWidget *createWidget() override;
QList<ProjectExplorer::Task> validate() const override;
@@ -133,7 +135,7 @@ private:
class DockerDeviceFactory final : public ProjectExplorer::IDeviceFactory
{
public:
DockerDeviceFactory();
DockerDeviceFactory(QSharedPointer<DockerSettings> settings);
};
} // Internal