trikRuntime
trikHal::stub::StubSystemConsole Class Reference

Empty implementation of system console. Only logs operations, returns empty string as process output. More...

#include <stubSystemConsole.h>

Inheritance diagram for trikHal::stub::StubSystemConsole:
Collaboration diagram for trikHal::stub::StubSystemConsole:

Public Member Functions

int system (const QString &command) override
 Executes given command on a system console. Returns return code of a command. More...
 
bool startProcess (const QString &processName, const QStringList &arguments) override
 Asynchronously starts given process with given arguments. More...
 
bool startProcessSynchronously (const QString &processName, const QStringList &arguments, QString *output=nullptr) override
 Synchronously starts given process with given arguments. More...
 
- Public Member Functions inherited from trikHal::SystemConsoleInterface
virtual ~SystemConsoleInterface ()=default
 
 SystemConsoleInterface ()=default
 

Detailed Description

Empty implementation of system console. Only logs operations, returns empty string as process output.

Member Function Documentation

bool StubSystemConsole::startProcess ( const QString &  processName,
const QStringList &  arguments 
)
overridevirtual

Asynchronously starts given process with given arguments.

Returns
true, if process was started successfully.

Implements trikHal::SystemConsoleInterface.

bool StubSystemConsole::startProcessSynchronously ( const QString &  processName,
const QStringList &  arguments,
QString *  output = nullptr 
)
overridevirtual

Synchronously starts given process with given arguments.

Returns
true, if process was started successfully.

Implements trikHal::SystemConsoleInterface.

int StubSystemConsole::system ( const QString &  command)
overridevirtual

Executes given command on a system console. Returns return code of a command.

Implements trikHal::SystemConsoleInterface.


The documentation for this class was generated from the following files: