namespace lyx {
namespace support {
-class Systemcall;
-
/**
* Outputs to the console terminal the line buffered standard output and
* error of a spawned process when there is a controlling terminal and
Starting,
Running,
Finished,
- Error
+ Error,
+ Killed
};
State state;
static void killProcess(QProcess * p);
+ // when true, kill any running script ASAP
+ static bool kill_script;
+
public Q_SLOTS:
void stdOut();
void processEvents();
void killProcess();
+ /// returns false if we killed the process
+ /// actually returns Systemcall::ReturnValue
+ bool waitAndCheck();
};
} // namespace support