ProjectExplorer: Introduce Runnable and Connection concepts.

A 'Runnable' contains (possibly target-specific) data to describe
something that could be run (e.g. a remote executable with
arguments, working directory and environment). A 'Connection'
contains (possibly target-specific) data to describe a connection
to target that will be used to run a Runnable.

Runnable and Connection objects are used in the target
RunControlFactories and are opaque to the project explorer.

Change-Id: I2293dffa71148646cfb52c9b582ccd2675b145a8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-01-18 17:11:31 +01:00
parent dc8a12780f
commit 077079cf2a
2 changed files with 82 additions and 0 deletions

View File

@@ -541,6 +541,16 @@ Core::Id RunControl::runMode() const
return m_runMode;
}
void RunControl::setRunnable(const Runnable &runnable)
{
m_runnable = runnable;
}
void RunControl::setConnection(const Connection &connection)
{
m_connection = connection;
}
QString RunControl::displayName() const
{
return m_displayName;