]> git.lyx.org Git - lyx.git/blobdiff - src/support/SystemcallPrivate.h
DocBook: simplify code to handle abstracts.
[lyx.git] / src / support / SystemcallPrivate.h
index 329274008b8f844b67e3d4e80b4facc320bcf4e4..6ab479f73c329fd5b68a786b9cd6a608c478e9a2 100644 (file)
@@ -40,7 +40,8 @@ public:
                Starting,
                Running,
                Finished,
-               Error
+               Error,
+               Killed
        };
        State state;
 
@@ -57,6 +58,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 +99,9 @@ private:
        void processEvents();
        void killProcess();
 
+       /// returns false if we killed the process
+       /// actually returns Systemcall::ReturnValue
+       bool waitAndCheck();
 };
 
 } // namespace support