Mercurial > hg > easyhg
diff hgrunner.h @ 75:295e3ee4a257
* Allocate a pty for the subprocess, and ask the user for password. Very rudimentary and non-portable.
author | Chris Cannam |
---|---|
date | Fri, 19 Nov 2010 18:39:40 +0000 |
parents | 68aebc316898 |
children | 8a4e26dc3182 |
line wrap: on
line diff
--- a/hgrunner.h Fri Nov 19 14:54:19 2010 +0000 +++ b/hgrunner.h Fri Nov 19 18:39:40 2010 +0000 @@ -22,6 +22,7 @@ #include <QProcess> #include <QByteArray> #include <QRect> +#include <QFile> class HgRunner : public QProgressBar { @@ -54,6 +55,11 @@ QString getLastCommandLine(); void presentErrorToUser(); QString getHgBinaryName(); + + int ptyMasterFd; + int ptySlaveFd; + QString ptySlaveFilename; + QFile *procInput; bool reportErrors; bool isRunning; @@ -68,6 +74,8 @@ private slots: void started(); void finished(int procExitCode, QProcess::ExitStatus procExitStatus); + void stdOutReady(); + void stdErrReady(); }; #endif // HGRUNNER_H