nxcl  @VERSION@
Public Member Functions | List of all members
nxcl::notQProcess Class Reference

#include <notQt.h>

Public Member Functions

void writeIn (string &input)
 
int start (const string &program, const list< string > &args)
 
void terminate (void)
 
void probeProcess (void)
 
pid_t getPid (void)
 
int getError (void)
 
void setError (int e)
 
int getParentFD ()
 
void setCallbacks (notQProcessCallbacks *cb)
 
string readAllStandardOutput (void)
 
string readAllStandardError (void)
 
bool waitForStarted (void)
 

Detailed Description

notQProcess is a simple replacement for the Qt class QProcess.

Definition at line 86 of file notQt.h.

Member Function Documentation

◆ getPid()

pid_t nxcl::notQProcess::getPid ( void  )
inline

Accessors

Definition at line 118 of file notQt.h.

◆ probeProcess()

void nxcl::notQProcess::probeProcess ( void  )

poll to see if there is data on stderr or stdout and to see if the process has exited.

This must be called on a scheduled basis. It checks for any stdout/stderr data and also checks whether the process is still running.

◆ readAllStandardOutput()

string nxcl::notQProcess::readAllStandardOutput ( void  )

Slots

◆ setCallbacks()

void nxcl::notQProcess::setCallbacks ( notQProcessCallbacks cb)
inline

Setter for the callbacks.

Definition at line 137 of file notQt.h.

◆ start()

int nxcl::notQProcess::start ( const string &  program,
const list< string > &  args 
)

fork and exec the process.

◆ terminate()

void nxcl::notQProcess::terminate ( void  )

Send a TERM signal to the process.

◆ waitForStarted()

bool nxcl::notQProcess::waitForStarted ( void  )

Wait for the process to get itself going. Do this by looking at pid. If no pid after a while, return false.

◆ writeIn()

void nxcl::notQProcess::writeIn ( string &  input)

Write

  • input to the stdin of the process.

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