Quark  0.1
ProcessUtils Class Reference

A collection of process-related utility functions. More...

#include <ProcessUtils.h++>

Public Types

enum  Priority {
  PrioLowest = 0, PrioLow, PrioNormal, PrioHigh,
  PrioHighest
}
 Process priority levels. More...
 

Static Public Member Functions

static void setProcessPriority (Priority priority, QProcess *process=NULL)
 Sets the priority of a process. More...
 
static uint getProcessID (QProcess *process)
 Returns the process ID of the given process. More...
 

Detailed Description

A collection of process-related utility functions.

Author
Mark Lindner

Member Enumeration Documentation

◆ Priority

enum Priority

Process priority levels.

Enumerator
PrioLowest 

Lowest priority.

PrioLow 

Low priority.

PrioNormal 

Normal (default) priority.

PrioHigh 

High priority.

PrioHighest 

Highest priority.

Member Function Documentation

◆ getProcessID()

static uint getProcessID ( QProcess *  process)
static

Returns the process ID of the given process.

◆ setProcessPriority()

static void setProcessPriority ( Priority  priority,
QProcess *  process = NULL 
)
static

Sets the priority of a process.

Parameters
priorityThe new priority.
processThe process to change the priority of. If NULL, changes the priority of the calling process.

The documentation for this class was generated from the following file: