Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
XProcess Class Reference

#include <xprocess.h>

Inheritance diagram for XProcess:

Public Slots

void on_process_error (QProcess::ProcessError error)
 
void on_process_finished (int code, QProcess::ExitStatus status)
 
void on_process_output ()
 
void on_process_state_change (QProcess::ProcessState state)
 
void start (QString command_line, QStringList user_env)
 
void stop ()
 

Signals

void running (bool)
 

Public Member Functions

int get_pid ()
 
 XProcess (MainObject *mainObject, QString log_type_ki, QObject *parent=0)
 

Public Attributes

QString log_name
 
MainObjectmainObject
 
QProcess * process
 

Detailed Description

Definition at line 20 of file xprocess.h.

Constructor & Destructor Documentation

XProcess::XProcess ( MainObject mainObject,
QString  log_type_ki,
QObject parent = 0 
)
explicit

Definition at line 15 of file xprocess.cpp.

Member Function Documentation

int XProcess::get_pid ( )

Definition at line 131 of file xprocess.cpp.

void XProcess::on_process_error ( QProcess::ProcessError  error)
slot

Definition at line 100 of file xprocess.cpp.

Referenced by XProcess().

void XProcess::on_process_finished ( int  code,
QProcess::ExitStatus  status 
)
slot

Definition at line 92 of file xprocess.cpp.

Referenced by XProcess().

void XProcess::on_process_output ( )
slot

Definition at line 83 of file xprocess.cpp.

Referenced by XProcess().

void XProcess::on_process_state_change ( QProcess::ProcessState  state)
slot

Definition at line 68 of file xprocess.cpp.

Referenced by XProcess().

void XProcess::running ( bool  )
signal

Referenced by on_process_state_change().

void XProcess::start ( QString  command_line,
QStringList  user_env 
)
slot

Definition at line 41 of file xprocess.cpp.

Referenced by MainObject::start_fgfs(), and MainObject::start_terrasync().

void XProcess::stop ( )
slot

Definition at line 60 of file xprocess.cpp.

Referenced by MainObject::stop_all().

Member Data Documentation

QString XProcess::log_name

Definition at line 28 of file xprocess.h.

Referenced by on_process_error(), on_process_finished(), on_process_output(), start(), and XProcess().

MainObject* XProcess::mainObject

Definition at line 26 of file xprocess.h.

Referenced by on_process_error(), on_process_finished(), on_process_output(), start(), and XProcess().

QProcess* XProcess::process

Definition at line 27 of file xprocess.h.

Referenced by get_pid(), on_process_output(), start(), stop(), and XProcess().


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