forked from qt-creator/qt-creator
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:
@@ -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";
|
||||
|
@@ -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"));
|
||||
|
@@ -28,9 +28,6 @@
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
|
||||
namespace RemoteLinux {
|
||||
|
||||
Utils::Id genericDeployConfigurationId();
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class RemoteLinuxDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
|
||||
|
@@ -62,7 +62,7 @@ public:
|
||||
{
|
||||
registerStep<Step>(Step::stepId());
|
||||
setDisplayName(Step::displayName());
|
||||
setSupportedConfiguration(genericDeployConfigurationId());
|
||||
setSupportedConfiguration(RemoteLinux::Constants::DeployToGenericLinux);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user