Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
OODebug::RunProcess Class Reference

A wrapper class for a QProcess pointer. More...

Public Member Functions

 ~RunProcess ()
 
QProcess * process () const
 
QProcess * replaceProcess ()
 Kills the current process and creates a new process. More...
 

Private Attributes

QProcess * managedProcess_ {}
 

Detailed Description

A wrapper class for a QProcess pointer.

This way we can use a static RunProcess and make sure the managed QProcess is killed in the end.

An example use case can be found in the JavaRunner class.

Constructor & Destructor Documentation

◆ ~RunProcess()

OODebug::RunProcess::~RunProcess ( )

Member Function Documentation

◆ process()

QProcess * OODebug::RunProcess::process ( ) const
inline

◆ replaceProcess()

QProcess * OODebug::RunProcess::replaceProcess ( )

Kills the current process and creates a new process.

Member Data Documentation

◆ managedProcess_

QProcess* OODebug::RunProcess::managedProcess_ {}
private