1 #ifndef QTAUTOUPDATER_PROCESSBACKEND_H
2 #define QTAUTOUPDATER_PROCESSBACKEND_H
4 #include <QtCore/qglobal.h>
10 #include <QtCore/QProcess>
12 #include "QtAutoUpdaterCore/qtautoupdatercore_global.h"
13 #include "QtAutoUpdaterCore/updaterbackend.h"
17 class ProcessBackendPrivate;
24 void abort(
bool force)
override;
37 std::optional<QString> workingDir = std::nullopt;
42 bool useStdout =
true;
43 bool useStderr =
false;
49 std::optional<bool> runAsAdmin = std::nullopt;
60 void cancelUpdateTool(
int id,
bool kill =
false);
62 virtual void onToolDone(
int id,
int exitCode,
QIODevice *processDevice) = 0;
69 Q_PRIVATE_SLOT(d_func(),
void _q_updaterStateChanged(
int, QProcess::ProcessState state))
70 Q_PRIVATE_SLOT(d_func(),
void _q_installerStateChanged(QProcess::ProcessState state))
77 #endif // QTAUTOUPDATER_PROCESSBACKEND_H