2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
15 //custom process used to run shell commands in parallel
17 class MyProcess
: public QProcess
{
20 MyProcess(QObject
*go
, Git
* g
, const QString
& wd
, bool reportErrors
);
21 bool runSync(SCRef runCmd
, QByteArray
* runOutput
, QObject
* rcv
, SCRef buf
);
22 bool runAsync(SCRef rc
, QObject
* rcv
, SCRef buf
);
23 static const QStringList
splitArgList(SCRef cmd
);
26 void procDataReady(const QByteArray
&);
33 void on_readyReadStandardOutput();
34 void on_readyReadStandardError();
35 void on_finished(int, QProcess::ExitStatus
);
39 bool launchMe(SCRef runCmd
, SCRef buf
);
40 void sendErrorMsg(bool notStarted
= false, SCRef errDesc
= "");
41 static void restoreSpaces(QString
& newCmd
, const QChar
& sepChar
);
46 QByteArray
* runOutput
;
49 QStringList arguments
;
50 bool errorReportingEnabled
;