aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskellrunconfiguration.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-05-29 10:06:01 +0200
committerEike Ziller <eike.ziller@qt.io>2019-05-29 09:19:17 +0000
commit4291fcd8b3cc4e5bcfe04f7e54ea02f6231737cc (patch)
tree2f8a0a3ecfc5d77120e5e7ded8dc3a23545c8cfd /plugins/haskell/haskellrunconfiguration.h
parentdd695dcd2cfbc441cb98e01b616af7e1e92aa979 (diff)
Adapt to upstream changes
In FileName, and project management Change-Id: I8c549c56e2de6dd1fc3f9451e3964bad31327651 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'plugins/haskell/haskellrunconfiguration.h')
-rw-r--r--plugins/haskell/haskellrunconfiguration.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.h b/plugins/haskell/haskellrunconfiguration.h
index 578fc72..62bbd3d 100644
--- a/plugins/haskell/haskellrunconfiguration.h
+++ b/plugins/haskell/haskellrunconfiguration.h
@@ -26,34 +26,40 @@
#pragma once
#include <projectexplorer/runconfigurationaspects.h>
+#include <projectexplorer/runcontrol.h>
namespace Haskell {
namespace Internal {
-class HaskellRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory
+class HaskellRunConfiguration : public ProjectExplorer::RunConfiguration
{
+ Q_OBJECT
+
public:
- HaskellRunConfigurationFactory();
+ HaskellRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
+
+private:
+ void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &info) final;
+ ProjectExplorer::Runnable runnable() const final;
};
-class HaskellExecutableAspect : public ProjectExplorer::BaseStringAspect
+class HaskellRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory
{
- Q_OBJECT
-
public:
- HaskellExecutableAspect();
+ HaskellRunConfigurationFactory();
+
+private:
+ ProjectExplorer::SimpleRunWorkerFactory<ProjectExplorer::SimpleTargetRunner,
+ HaskellRunConfiguration>
+ runWorkerFactory;
};
-class HaskellRunConfiguration : public ProjectExplorer::RunConfiguration
+class HaskellExecutableAspect : public ProjectExplorer::BaseStringAspect
{
Q_OBJECT
public:
- HaskellRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
-
-private:
- void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &info) final;
- ProjectExplorer::Runnable runnable() const final;
+ HaskellExecutableAspect();
};
} // namespace Internal