diff options
author | hjk <hjk@qt.io> | 2019-05-28 18:59:45 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-29 14:36:46 +0000 |
commit | 4098be05b23dd20aaf752fb9aec79fe8d90a4220 (patch) | |
tree | b593688a2f5808fb42221dcf4127faeba0d8c6c6 /src/plugins/projectexplorer/runcontrol.h | |
parent | f50859e856b911ba0667fc9aaa5df4c8882f8679 (diff) |
Utils: Extract a CommandLine structure from a QtcProcess
We regularly pass around strings or filenames or pairs of strings
or filenames and stringlist etc the in the end will be used
as a kind of "command line", with quite a bit of ad-hoc user
code and QtcProcess::addArg etc to set them up and manipulate them.
Let's have a class for that concept.
Change-Id: I288ab939d853b32c717135a65242c584c2beab50
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runcontrol.h')
-rw-r--r-- | src/plugins/projectexplorer/runcontrol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index 8d24fabcf0..040520991d 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -35,6 +35,7 @@ #include <utils/port.h> #include <utils/processhandle.h> #include <utils/qtcassert.h> +#include <utils/qtcprocess.h> #include <utils/icon.h> #include <QHash> @@ -72,6 +73,8 @@ class PROJECTEXPLORER_EXPORT Runnable public: Runnable() = default; + Utils::CommandLine commandLine() const; + QString executable; QString commandLineArguments; QString workingDirectory; |