diff options
author | hjk <hjk@qt.io> | 2019-04-04 08:26:44 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-04-05 05:32:43 +0000 |
commit | c3d0d2d97bfe4915a1b69f7bfa7f19b656816987 (patch) | |
tree | 4ed14c0dfa4b40f6a9e635ca09a9c06533966a0f /src/plugins/projectexplorer/runcontrol.h | |
parent | 118f713eb45387ead9a7bb076451ec33e7d5ca03 (diff) |
ProjectExplorer: Make it easier to use RunConfiguration ids
... in RunWorkerFactory. The semantics is the same as in the other
{RunConfiguration,BuildConfiguration,...}Factory::addSupportedFoo
cases: As long as none is specified, there's no constraint, if
there are any, it's a whitelist.
Change-Id: Ia05afd9afe6886e4bacc58ac786f2548f03e5ca8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runcontrol.h')
-rw-r--r-- | src/plugins/projectexplorer/runcontrol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index 927bc1dfab..8d24fabcf0 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -157,6 +157,9 @@ public: void addConstraint(const Constraint &constraint); void addSupportedRunMode(Core::Id runMode); + void setSupportedRunConfigurations(const QList<Core::Id> &ids); + void addSupportedRunConfiguration(Core::Id id); + WorkerCreator producer() const { return m_producer; } private: @@ -166,6 +169,7 @@ private: static void destroyRemainingRunWorkerFactories(); QList<Core::Id> m_supportedRunModes; + QList<Core::Id> m_supportedRunConfigurations; QList<Constraint> m_constraints; WorkerCreator m_producer; }; |