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 GenericLinuxOsType[] = "GenericLinuxOsType";
|
||||||
|
|
||||||
|
const char DeployToGenericLinux[] = "DeployToGenericLinux";
|
||||||
|
|
||||||
const char CheckForFreeDiskSpaceId[] = "RemoteLinux.CheckForFreeDiskSpaceStep";
|
const char CheckForFreeDiskSpaceId[] = "RemoteLinux.CheckForFreeDiskSpaceStep";
|
||||||
const char DirectUploadStepId[] = "RemoteLinux.DirectUploadStep";
|
const char DirectUploadStepId[] = "RemoteLinux.DirectUploadStep";
|
||||||
const char MakeInstallStepId[] = "RemoteLinux.MakeInstall";
|
const char MakeInstallStepId[] = "RemoteLinux.MakeInstall";
|
||||||
|
@@ -43,19 +43,11 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
|
|
||||||
using namespace Internal;
|
|
||||||
|
|
||||||
Utils::Id genericDeployConfigurationId()
|
|
||||||
{
|
|
||||||
return "DeployToGenericLinux";
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
RemoteLinuxDeployConfigurationFactory::RemoteLinuxDeployConfigurationFactory()
|
RemoteLinuxDeployConfigurationFactory::RemoteLinuxDeployConfigurationFactory()
|
||||||
{
|
{
|
||||||
setConfigBaseId(genericDeployConfigurationId());
|
setConfigBaseId(RemoteLinux::Constants::DeployToGenericLinux);
|
||||||
addSupportedTargetDeviceType(RemoteLinux::Constants::GenericLinuxOsType);
|
addSupportedTargetDeviceType(RemoteLinux::Constants::GenericLinuxOsType);
|
||||||
setDefaultDisplayName(QCoreApplication::translate("RemoteLinux",
|
setDefaultDisplayName(QCoreApplication::translate("RemoteLinux",
|
||||||
"Deploy to Remote Linux Host"));
|
"Deploy to Remote Linux Host"));
|
||||||
|
@@ -28,9 +28,6 @@
|
|||||||
#include <projectexplorer/deployconfiguration.h>
|
#include <projectexplorer/deployconfiguration.h>
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
|
|
||||||
Utils::Id genericDeployConfigurationId();
|
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class RemoteLinuxDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
|
class RemoteLinuxDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
|
||||||
|
@@ -62,7 +62,7 @@ public:
|
|||||||
{
|
{
|
||||||
registerStep<Step>(Step::stepId());
|
registerStep<Step>(Step::stepId());
|
||||||
setDisplayName(Step::displayName());
|
setDisplayName(Step::displayName());
|
||||||
setSupportedConfiguration(genericDeployConfigurationId());
|
setSupportedConfiguration(RemoteLinux::Constants::DeployToGenericLinux);
|
||||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
|
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user