]> git.lyx.org Git - features.git/blobdiff - src/support/forkedcall.h
Replace LString.h with support/std_string.h,
[features.git] / src / support / forkedcall.h
index ec8d0d972ee3b4c5ae0c23769b8639efe036a8b8..8e58485d18e4c8f66c0aed5af98aaee31cce7e52 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- *  \file forkedcall.h
+ * \file forkedcall.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -9,7 +9,7 @@
  * Interface cleaned up by
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  *
  * An instance of Class Forkedcall represents a single child process.
  *
@@ -26,7 +26,7 @@
 #ifndef FORKEDCALL_H
 #define FORKEDCALL_H
 
-#include "LString.h"
+#include "support/std_string.h"
 
 #include <boost/shared_ptr.hpp>
 #include <boost/signals/signal2.hpp>
@@ -34,6 +34,9 @@
 
 #include <sys/types.h>
 
+namespace lyx {
+namespace support {
+
 class ForkedProcess {
 public:
        ///
@@ -94,6 +97,9 @@ public:
        /// Returns the identifying command (for display in the GUI perhaps).
        string const & command() const { return command_; }
 
+       /// is the process running ?
+       bool running() const;
+
        /** Kill child prematurely.
         *  First, a SIGHUP is sent to the child.
         *  If that does not end the child process within "tolerance"
@@ -161,4 +167,7 @@ private:
        virtual int generateChild();
 };
 
+} // namespace support
+} // namespace lyx
+
 #endif // FORKEDCALL_H