ExecCommand Class Reference
#include <execcommand.h>
Inherits TQObject.
Signals | |
| void | finished (const TQString &output, const TQString &errorOutput) |
Public Member Functions | |
| ExecCommand (const TQString &executable, const TQStringList &args, const TQString &workingDir=TQString(), const TQStringList &env=TQStringList(), TQObject *parent=0, const char *name=0) | |
Detailed Description
This class invokes a binary with the arguments passed in the constructor and emits the signal finished() with the output.
It also displays a progress dialog with the possibility to cancel the command.
If there was an error or the user pressed cancel, finished () will emit a TQString(), otherwise TQStrings containing the stdout/stderr.
The object will delete itself after the finished signal has been emitted. Additional environment can be set in the TQStringList env via TQStrings with the format "foo=blah"
Definition at line 45 of file execcommand.h.
Constructor & Destructor Documentation
◆ ExecCommand()
| ExecCommand::ExecCommand | ( | const TQString & | executable, |
| const TQStringList & | args, | ||
| const TQString & | workingDir = TQString(), |
||
| const TQStringList & | env = TQStringList(), |
||
| TQObject * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
Definition at line 27 of file execcommand.cpp.
◆ ~ExecCommand()
| ExecCommand::~ExecCommand | ( | ) |
Definition at line 95 of file execcommand.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference