Class that executes system commands and reads files. More...
#include <SystemCommandExecutor.hpp>
Public Member Functions | |
QString | executeCommand (const QString &command) const override |
Executes a system command. | |
QString | readFile (const QString &filePath) const override |
Reads a file and returns its contents. | |
![]() | |
virtual | ~ISystemCommandExecutor ()=default |
Class that executes system commands and reads files.
Definition at line 28 of file SystemCommandExecutor.hpp.
|
overridevirtual |
Executes a system command.
command | The command to execute as a QString. |
Implements ISystemCommandExecutor.
Definition at line 25 of file SystemCommandExecutor.cpp.
|
overridevirtual |
Reads a file and returns its contents.
filePath | The path to the file to read as a QString. |
Implements ISystemCommandExecutor.
Definition at line 39 of file SystemCommandExecutor.cpp.