2019-08-10 18:07:43 +01:00
|
|
|
#ifndef MUX_FORM_H_
|
|
|
|
#define MUX_FORM_H_
|
|
|
|
|
2020-01-11 23:46:04 +01:00
|
|
|
#include <QDialog>
|
|
|
|
class QProcess;
|
|
|
|
class Ui_muxForm;
|
2019-12-10 22:42:23 +00:00
|
|
|
|
2020-01-14 21:56:44 +01:00
|
|
|
class MuxForm : public QDialog // QWidget
|
2019-08-10 18:07:43 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-01-14 21:56:44 +01:00
|
|
|
public:
|
|
|
|
explicit MuxForm(QWidget* parent);
|
|
|
|
void prepare(const QString& label);
|
|
|
|
void setProgress(int value);
|
|
|
|
void addStdOutLine(const QString& line);
|
|
|
|
void addStdErrLine(const QString& line);
|
|
|
|
void muxFinished(int exitCode, const QString& prefix);
|
|
|
|
void setProcess(QProcess* proc);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent* event) override;
|
2020-03-01 00:35:31 +01:00
|
|
|
void changeEvent(QEvent* event) override;
|
2020-01-14 21:56:44 +01:00
|
|
|
private slots:
|
|
|
|
void onProgressChanged();
|
|
|
|
void onAbort();
|
|
|
|
|
|
|
|
private:
|
|
|
|
int errCnt;
|
|
|
|
Ui_muxForm* ui;
|
|
|
|
QProcess* muxProcess;
|
2019-08-10 18:07:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|