MeVisLab Scripting Reference
|
Inherits QProcess, and QObject.
Inherited by MLABOutputDiscardingProcess, and MLABOutputRecordingProcess.
Public Slots | |
Script access | |
| |
void | addArgument (const QString &arg) |
void | addArguments (const QStringList &args) |
void | clearArguments () |
void | setArgs (const QString &cmd, const QString &args) |
void | setWorkDir (const QString &wd) |
void | setStdOutHandler (MLABModule *mod, const QString &script) |
void | setStdErrHandler (MLABModule *mod, const QString &script) |
void | setExitedHandler (MLABModule *mod, const QString &script) |
void | setLaunchFinishedHandler (MLABModule *mod, const QString &script) |
bool | run (const QString &stdinput) |
bool | run () |
void | waitForLaunch () |
void | waitForExit () |
bool | normalExit () |
bool | isRunning () |
bool | launchFinished () |
void | setUserInfo (const QString &info) |
QString | userInfo () |
QString | readStdOut () |
QString | readStdErr () |
QString | readLineStdOut () |
QString | readLineStdErr () |
int | exitStatus () |
void | kill () |
qint64 | processId () |
MLABProcess object available via MLAB.
The MLABProcess object can be used to have full control of started processes. For simpler functions, see MLAB API.
Note that the process object behaves differently on different platforms!
|
slot |
Adds an argument, first argument added is the called program.
|
slot |
Adds an argument list, first argument is the called program.
|
slot |
Clears the arguments.
|
inlineslot |
Returns the exit status of the process.
|
slot |
Returns whether the process is currently running.
|
inlineslot |
Kills the running process (more than just deleting the MLABProcess, it really kills the running process!).
|
inlineslot |
Returns whether the launch is finished (it's safe to delete the process afterwards).
|
slot |
Returns whether the process exited normally, i.e. didn't crash.
|
inlineslot |
Return process ID of process.
|
slot |
Returns one line of error output.
|
slot |
Returns one line of std output.
|
slot |
Returns the whole output currently available, does not return the same output a second time!
|
slot |
Returns the whole output currently available, does not return the same output a second time!
|
slot |
Runs the process.
|
slot |
Runs the process with given std in.
|
slot |
Sets the command and the arguments, arguments are split by spaces, so this format does NOT support argument entries which contain spaces, you have to use the addArguments() method instead.
|
slot |
Sets a handler that is called when the process exited.
|
slot |
Sets a handler that is called when the process launch (and stdin args passing) is complete.
|
slot |
Sets a handler that is called when new output is available.
|
slot |
Sets a handler that is called when new output is available.
|
inlineslot |
Sets user information for this process.
|
slot |
Sets the work directory.
|
inlineslot |
Returns user information for this process.
|
slot |
Waits until the running process exits.
|
slot |
Waits until the process is completely launched (before it is not safe to delete the process!).