diff --git a/common/include/command.h b/common/include/command.h index 564d459..33b155f 100644 --- a/common/include/command.h +++ b/common/include/command.h @@ -32,8 +32,11 @@ public: int start_timeout = 100000, int finish_timeout = 100000); + void resetCommandResult() { m_commandResult.clear(); } QString getCommandResult(bool reset = false); - QString command() const { return m_command; } + QString const &command() const { return m_command; } + QString const &commandResult() const { return m_commandResult; } + QStringList const &args() const { return m_args; } bool exec(); int exitCode() const { return m_exitCode; }