Scripting Interface |
The Process class is used to launch an external process. Processes can be instantiated in the scripting environment. More...
Public Slots | |
int | launch () |
Launch process. More... | |
int | launchAndDetach () |
Launch process and detach it from application. More... | |
String | commandLine () |
Fetch command line to be executed in this process. More... | |
int | errorCode () |
Fetch error code. More... | |
String & | errorMessage () |
Fetch error message. More... | |
void | terminate () |
Terminate process. More... | |
bool | isAlive () |
Verify if process is still alive. More... | |
int | pid () |
Fetch process PID. More... | |
Public Member Functions | |
Process (int pid) | |
Create a new Process. A process created with a pid cannot be launched as it already should have been. terminate() and isAlive() functions can still be called with such a process. More... | |
Process (String name,...) | |
Create a new Process. More... | |
Process (String name, StringList list) | |
Create a new Process. More... | |
Process (String commandLine) | |
Create a new Process. More... | |
The Process class is used to launch an external process. Processes can be instantiated in the scripting environment.
You can use it in both Script Editor and scriptModule.
Process::Process | ( | int | pid | ) |
Create a new Process. A process created with a pid cannot be launched as it already should have been. terminate() and isAlive() functions can still be called with such a process.
int | PID of already existing process. |
Process::Process | ( | String | name, |
... | |||
) |
Create a new Process.
name | Path or name of process to execute |
... | List of arguments |
Process::Process | ( | String | name, |
StringList | list | ||
) |
Create a new Process.
name | Path or name of process to execute |
list | List of arguments |
Process::Process | ( | String | commandLine | ) |
Create a new Process.
commandLine | Entire command line to launch |
|
slot |
Fetch command line to be executed in this process.
|
slot |
Fetch error code.
|
slot |
Fetch error message.
|
slot |
Verify if process is still alive.
|
slot |
Launch process.
|
slot |
Launch process and detach it from application.
|
slot |
Fetch process PID.
|
slot |
Terminate process.