$addArgument(<process-name:string>) |
With this command you give the process name (or more arguments) for communication. See the next example. |
$startProcess() |
Tries to run the process. e.g. |
%process=$new(process);
%process->$addArg("cmd.exe");
%process->$start();
|
|
<string> $readStdout() |
Reads the data that the process has written to standard output. |
<string> $readStderr() |
Reads the data that the process has written to standard error. e.g. |
class (test,object) { slotReadStdout() { %stdo = %Process->$readStdout() #%Aoutput->$append(%stdo); %Aoutput->$settext(%stdo); } slotReadStderr() { %stderr= %Process->$readStderr() #%Aoutput->$append(%stderr); %Aoutput->$settext(%stderr); } } %tt=$new(test) %A=$new(widget) %A->$setGeometry(100,100,400,300) %layoutA=$new(layout,%A) %Ainput=$new(lineedit,%A) #%Aoutput=$new(textedit,%A) |
|
$writeToStdin(<command:string>) |
With this command you send a command to the process: |
$closekill() |
This tries to terminate the process the nice way. If the process is still running after 5 seconds, it terminates the process the hard way. (I think that this is the better way.) e.g. %Process->close_kill();
|
$kill() |
Kill the process the hard way (Bad Idea). |
$tryTerminate() |
Tries to terminate the process (It could end well, but...). |
$closeStdin() |
Close the standard input. |
<boolean> $isRunning() |
Return 1 if the process is running, else return 0. |
<boolean> $normalExit() |
Returns true if the process has exited normally; otherwise returns false. |
$readyReadStdoutEvent() |
This function is invoked by the process when there is new data. The default implementation emits the $readyReadStdout() signal. |
$readyReadStderrEvent() |
This function is invoked by the process when there are new error messages. The default implementation emits the $readyReadStderr() signal. |