A subclass of QProcess with additional features. More...
Public Member Functions | |
QtlProcess (QObject *parent=0) | |
Constructor. More... | |
Qtl::ProcessPriority | priority () const |
Get the process priority. More... | |
void | setPriority (Qtl::ProcessPriority priority) |
Set the process priority. More... | |
Protected Member Functions | |
virtual void | setupChildProcess () |
Reimplemented from QProcess. More... | |
Private Attributes | |
Qtl::ProcessPriority | _priority |
Priority of the created process. More... | |
A subclass of QProcess with additional features.
QtlProcess::QtlProcess | ( | QObject * | parent = 0 | ) |
Constructor.
[in] | parent | Optional parent object. |
|
inline |
Get the process priority.
void QtlProcess::setPriority | ( | Qtl::ProcessPriority | priority | ) |
Set the process priority.
Must be called before start(), ignored otherwise. Special privileges may be required to set Qtl::HighPriority and Qtl::VeryHighPriority.
[in] | priority | Requested priority. |
|
protectedvirtual |
Reimplemented from QProcess.
This function is called in the child process context just before the program is executed on Unix or OS X (i.e., after fork(), but before execve()). Reimplement this function to do last minute initialization of the child process.
|
private |
Priority of the created process.