Q_OBJECT
public:
- ExecWrapper(QObject *parent = nullptr);
+ ExecWrapper(QObject* parent = nullptr);
public slots:
- void start(const BufferInfo &info, const QString &command);
+ void start(const BufferInfo& info, const QString& command);
signals:
- void error(const QString &errorMsg);
- void output(const QString &out);
+ void error(const QString& errorMsg);
+ void output(const QString& out);
private slots:
void processReadStdout();
void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
void processError(QProcess::ProcessError);
- void postStdout(const QString &);
- void postStderr(const QString &);
+ void postStdout(const QString&);
+ void postStderr(const QString&);
private:
QProcess _process;
QString _stderrBuffer;
};
-
#endif