You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/GUIDialog/GUICalculateDialog/RunProcess.h

33 lines
610 B
C

#ifndef _RunProcess_H
#define _RunProcess_H
#include <QObject>
#include <QProcess>
namespace GUI
{
class RunProcess :public QObject
{
Q_OBJECT;
public:
RunProcess();
~RunProcess();
void start(QString sh);
void kill();
signals:
;
void sigFinish();
private slots:
;
void slotProcessOutput();
void slotProcessOutputError();
void slotProcessFinish(int exitCode, QProcess::ExitStatus exitStatus);
void slotMainwindowClose();
private:
QProcess* _process = nullptr;
};
}
#endif