aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/runcontrol.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-03-13 15:34:44 +0100
committerhjk <hjk@qt.io>2019-03-20 09:16:08 +0000
commit68a10d71e75b9184eb731afb5000fa01809bab37 (patch)
tree03817136fcfdf8ed07a9815a69efb4a0ab73b0ae /src/plugins/projectexplorer/runcontrol.h
parent358bb49f62052693bad159a1864755cd7947d30a (diff)
ProjectExplorer: Replace RunControl::producer
... by two more specialized canRun() / createMainWorker() functions resulting in somewhat leaner code on the user side and paving the way for introducing a RunWorkerFactory class intended to follow the now-canonical way of having factories as members in the plugin pimpl. Change-Id: Id6fc2043a340203f14ab0b896a8dfa1e298f58a6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runcontrol.h')
-rw-r--r--src/plugins/projectexplorer/runcontrol.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h
index 657c7acd75..f4b5ae5c82 100644
--- a/src/plugins/projectexplorer/runcontrol.h
+++ b/src/plugins/projectexplorer/runcontrol.h
@@ -274,7 +274,8 @@ public:
factory->addConstraint(constraint);
}
- static WorkerCreator producer(RunConfiguration *runConfiguration, Core::Id runMode);
+ bool createMainWorker();
+ static bool canRun(RunConfiguration *runConfig, Core::Id runMode);
signals:
void appendMessage(const QString &msg, Utils::OutputFormat format);