trikRuntime
trikHal::SystemConsoleInterface Class Referenceabstract

Represents console of an OS. More...

#include <systemConsoleInterface.h>

Inheritance diagram for trikHal::SystemConsoleInterface:

Public Member Functions

virtual ~SystemConsoleInterface ()=default
 
 SystemConsoleInterface ()=default
 
virtual int system (const QString &command)=0
 Executes given command on a system console. Returns return code of a command. More...
 
virtual bool startProcess (const QString &processName, const QStringList &arguments)=0
 Asynchronously starts given process with given arguments. More...
 
virtual bool startProcessSynchronously (const QString &processName, const QStringList &arguments, QString *output=nullptr)=0
 Synchronously starts given process with given arguments. More...
 

Detailed Description

Represents console of an OS.

Constructor & Destructor Documentation

virtual trikHal::SystemConsoleInterface::~SystemConsoleInterface ( )
virtualdefault
trikHal::SystemConsoleInterface::SystemConsoleInterface ( )
default

Member Function Documentation

virtual bool trikHal::SystemConsoleInterface::startProcess ( const QString &  processName,
const QStringList &  arguments 
)
pure virtual

Asynchronously starts given process with given arguments.

Returns
true, if process was started successfully.

Implemented in trikHal::stub::StubSystemConsole, and trikHal::trik::TrikSystemConsole.

virtual bool trikHal::SystemConsoleInterface::startProcessSynchronously ( const QString &  processName,
const QStringList &  arguments,
QString *  output = nullptr 
)
pure virtual

Synchronously starts given process with given arguments.

Returns
true, if process was started successfully.

Implemented in trikHal::stub::StubSystemConsole, and trikHal::trik::TrikSystemConsole.

virtual int trikHal::SystemConsoleInterface::system ( const QString &  command)
pure virtual

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

Implemented in trikHal::stub::StubSystemConsole, and trikHal::trik::TrikSystemConsole.


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