]> git.lyx.org Git - lyx.git/blobdiff - src/support/SystemcallPrivate.h
Fix bug with display of reference tooltips.
[lyx.git] / src / support / SystemcallPrivate.h
index 329274008b8f844b67e3d4e80b4facc320bcf4e4..19771dfc7319c1e7e1473ad88dc059531e24ab22 100644 (file)
@@ -20,8 +20,6 @@
 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
@@ -40,7 +38,8 @@ public:
                Starting,
                Running,
                Finished,
-               Error
+               Error,
+               Killed
        };
        State state;
 
@@ -57,6 +56,9 @@ public:
 
        static void killProcess(QProcess * p);
 
+       // when true, kill any running script ASAP
+       static bool kill_script;
+
 
 public Q_SLOTS:
        void stdOut();
@@ -95,6 +97,9 @@ private:
        void processEvents();
        void killProcess();
 
+       /// returns false if we killed the process
+       /// actually returns Systemcall::ReturnValue
+       bool waitAndCheck();
 };
 
 } // namespace support