Result of a process execution. More...
Public Member Functions | |
QtlBoundProcessResult (const QString &program=QString(), const QStringList &arguments=QStringList()) | |
Constructor. More... | |
QtlBoundProcessResult (const QtlBoundProcessResult &other) | |
Copy constructor. More... | |
void | appendStandardError (const QByteArray &data) |
Append more data to standard error. More... | |
void | appendStandardOutput (const QByteArray &data) |
Append more data to standard output. More... | |
QStringList | arguments () const |
Get the command line arguments. More... | |
QString | errorMessage () const |
Get an error message after process termination if the process did not execute properly. More... | |
int | exitCode () const |
Get the process exit code after process termination. More... | |
bool | hasError () const |
Check if the process terminated with an error. More... | |
const QtlBoundProcessResult & | operator= (const QtlBoundProcessResult &other) |
Assignment operator. More... | |
QString | program () const |
Get the executable file path. More... | |
void | setErrorMessage (const QString &errorMessage) |
Set the error message. More... | |
void | setExitCode (int exitCode) |
Set the exit code. More... | |
QString | standardError () const |
Get the content of the standard error after process termination. More... | |
int | standardErrorSize () const |
Get the size of the standard error after process termination. More... | |
QString | standardOutput () const |
Get the content of the standard output after process termination. More... | |
int | standardOutputSize () const |
Get the size of the standard output after process termination. More... | |
Private Attributes | |
QStringList | _arguments |
Command line arguments. More... | |
QString | _errorMessage |
Error message. More... | |
int | _exitCode |
Process exit code. More... | |
QString | _program |
Executable file path. More... | |
QString | _stdError |
Content of standard output. More... | |
QString | _stdOutput |
Content of standard output. More... | |
Result of a process execution.
QtlBoundProcessResult::QtlBoundProcessResult | ( | const QString & | program = QString() , |
const QStringList & | arguments = QStringList() |
||
) |
Constructor.
[in] | program | Executable file path. |
[in] | arguments | Command line arguments. |
QtlBoundProcessResult::QtlBoundProcessResult | ( | const QtlBoundProcessResult & | other | ) |
Copy constructor.
[in] | other | Other instance to copy. |
const QtlBoundProcessResult & QtlBoundProcessResult::operator= | ( | const QtlBoundProcessResult & | other | ) |
Assignment operator.
[in] | other | Other instance to copy. |
|
inline |
Get the executable file path.
|
inline |
Get the command line arguments.
|
inline |
Get the content of the standard output after process termination.
|
inline |
Get the size of the standard output after process termination.
|
inline |
Get the content of the standard error after process termination.
|
inline |
Get the size of the standard error after process termination.
|
inline |
Check if the process terminated with an error.
|
inline |
Get an error message after process termination if the process did not execute properly.
|
inline |
Get the process exit code after process termination.
|
inline |
Append more data to standard output.
[in] | data | Data to append. |
|
inline |
Append more data to standard error.
[in] | data | Data to append. |
|
inline |
Set the error message.
[in] | errorMessage | Error message. |
|
inline |
Set the exit code.
exitCode | Exit code. |
|
private |
Executable file path.
|
private |
Command line arguments.
|
private |
Content of standard output.
|
private |
Content of standard output.
|
private |
Error message.
|
private |
Process exit code.