The Process2 JavaScript class. Used to launch an external process. More...
Public Slots | |
int | launch () |
Launch process. More... | |
int | launchAndDetach () |
Launch process and detach it from application. More... | |
String | commandLine () const |
Fetch command line to be executed in this process. More... | |
int | errorCode () const |
Fetch error code. More... | |
const String & | errorMessage () const |
Fetch error message. More... | |
void | terminate () |
Terminates the process. More... | |
bool | isAlive () |
Verify if process is still alive. More... | |
int | pid () const |
Fetch process PID. More... | |
void | addEnvVariable (String name, String value) |
void | resetEnvVariableList () |
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 Process2 JavaScript class. Used to launch an external process.
Processes can be instantiated in the scripting environment.
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.
pid | : 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 |
|
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 |
|
slot |
Terminates the process.