SystemcallPrivate::SystemcallPrivate(const std::string& of) :
- proc_(new QProcess), outindex_(0), process_events(false),
- errindex_(0), outfile(of), showout_(false), showerr_(false)
+ proc_(new QProcess), outindex_(0), errindex_(0),
+ outfile(of), showout_(false), showerr_(false), process_events(false)
{
if (!outfile.empty()) {
// Check whether we have to simply throw away the output.
}
}
+
void SystemcallPrivate::processEvents()
{
if(process_events) {
}
}
+
void SystemcallPrivate::waitAndProcessEvents()
{
Sleep::millisec(100);
}
-
SystemcallPrivate::~SystemcallPrivate()
{
flush();
}
}
+
void SystemcallPrivate::stdOut()
{
if (proc_ && showout_) {
return message;
}
+
int SystemcallPrivate::exitCode()
{
if (!proc_)
killProcess(proc_);
}
+
void SystemcallPrivate::killProcess(QProcess * p)
{
if (p) {