19 struct execQueueItem {
53 QQueue<execQueueItem> m_execQueue;
59 explicit Executor(QObject *parent = 0);
61 void execute(
int id,
const QString &app,
const QStringList &args,
62 bool readStdout,
bool readStderr =
true);
64 void execute(
int id,
const QString &workDir,
const QString &app,
65 const QStringList &args,
bool readStdout,
66 bool readStderr =
true);
68 void execute(
int id,
const QString &app,
const QStringList &args,
69 QString input = QString(),
bool readStdout =
false,
70 bool readStderr =
true);
72 void execute(
int id,
const QString &workDir,
const QString &app,
73 const QStringList &args, QString input = QString(),
74 bool readStdout =
false,
bool readStderr =
true);
77 QString input = QString(),
78 QString *process_out = Q_NULLPTR,
79 QString *process_err = Q_NULLPTR);
83 QString *process_err = Q_NULLPTR);
89 void finished(
int exitCode, QProcess::ExitStatus exitStatus);
99 void finished(
int id,
int exitCode,
const QString &output,
100 const QString &errout);
114 void error(
int id,
int exitCode,
const QString &output,
115 const QString &errout);
Executes external commands for handleing password, git and other data.
static int executeBlocking(QString app, const QStringList &args, QString input=QString(), QString *process_out=Q_NULLPTR, QString *process_err=Q_NULLPTR)
Executor::executeBlocking blocking version of the executor, takes input and presents it as stdin.
void execute(int id, const QString &app, const QStringList &args, bool readStdout, bool readStderr=true)
Executor::execute execute an app.
int cancelNext()
Executor::cancelNext cancels execution of first process in queue if it's not already running.
void error(int id, int exitCode, const QString &output, const QString &errout)
error signal that is emited when process finishes with an error
void setEnvironment(const QStringList &env)
Executor::setEnvironment set environment variables for executor processes.
void finished(int id, int exitCode, const QString &output, const QString &errout)
finished signal that is emited when process finishes
void starting()
starting signal that is emited when process starts