diff options
author | hjk <hjk@qt.io> | 2019-06-12 15:25:51 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-06-13 07:28:45 +0000 |
commit | 465d4cc845364ce6457af83ae1298f2daabc4664 (patch) | |
tree | f856f01e874ea6f172883611a2c68a1da5c05c7f /src/libs/utils/consoleprocess.h | |
parent | 1455ab6c07601a3f88cb1cf5d0cbc56223c50f42 (diff) |
Utils: Use CommandLine in ConsoleProcess
Change-Id: I380b91513fa342819cba898196c91443622d0ae2
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/libs/utils/consoleprocess.h')
-rw-r--r-- | src/libs/utils/consoleprocess.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libs/utils/consoleprocess.h b/src/libs/utils/consoleprocess.h index 28be67f0bf2..1ae0bb44968 100644 --- a/src/libs/utils/consoleprocess.h +++ b/src/libs/utils/consoleprocess.h @@ -35,8 +35,9 @@ class QSettings; QT_END_NAMESPACE namespace Utils { + class Environment; -struct ConsoleProcessPrivate; +class CommandLine; class QTCREATOR_UTILS_EXPORT TerminalCommand { @@ -61,6 +62,8 @@ public: ConsoleProcess(QObject *parent = nullptr); ~ConsoleProcess() override; + void setCommand(const Utils::CommandLine &command); + void setWorkingDirectory(const QString &dir); QString workingDirectory() const; @@ -70,7 +73,8 @@ public: QProcess::ProcessError error() const; QString errorString() const; - bool start(const QString &program, const QString &args); + bool start(); + public slots: void stop(); @@ -156,7 +160,7 @@ private: void cleanupInferior(); #endif - ConsoleProcessPrivate *d; + struct ConsoleProcessPrivate *d; }; } //namespace Utils |