RemoteLinux: Use deploy config id more directly

Closer to the standard pattern.

Change-Id: Ia040de816f20727d772c1d298119a92c184fe28c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-06-02 17:40:32 +02:00
parent 0978d16093
commit c6d9ae043b
4 changed files with 4 additions and 13 deletions

View File

@@ -30,6 +30,8 @@ namespace Constants {
const char GenericLinuxOsType[] = "GenericLinuxOsType";
const char DeployToGenericLinux[] = "DeployToGenericLinux";
const char CheckForFreeDiskSpaceId[] = "RemoteLinux.CheckForFreeDiskSpaceStep";
const char DirectUploadStepId[] = "RemoteLinux.DirectUploadStep";
const char MakeInstallStepId[] = "RemoteLinux.MakeInstall";

View File

@@ -43,19 +43,11 @@
using namespace ProjectExplorer;
namespace RemoteLinux {
using namespace Internal;
Utils::Id genericDeployConfigurationId()
{
return "DeployToGenericLinux";
}
namespace Internal {
RemoteLinuxDeployConfigurationFactory::RemoteLinuxDeployConfigurationFactory()
{
setConfigBaseId(genericDeployConfigurationId());
setConfigBaseId(RemoteLinux::Constants::DeployToGenericLinux);
addSupportedTargetDeviceType(RemoteLinux::Constants::GenericLinuxOsType);
setDefaultDisplayName(QCoreApplication::translate("RemoteLinux",
"Deploy to Remote Linux Host"));

View File

@@ -28,9 +28,6 @@
#include <projectexplorer/deployconfiguration.h>
namespace RemoteLinux {
Utils::Id genericDeployConfigurationId();
namespace Internal {
class RemoteLinuxDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory

View File

@@ -62,7 +62,7 @@ public:
{
registerStep<Step>(Step::stepId());
setDisplayName(Step::displayName());
setSupportedConfiguration(genericDeployConfigurationId());
setSupportedConfiguration(RemoteLinux::Constants::DeployToGenericLinux);
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
}
};