// -*- 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.
*
* 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.
*
#ifndef FORKEDCALL_H
#define FORKEDCALL_H
-#include "LString.h"
+#include "support/std_string.h"
#include <boost/shared_ptr.hpp>
#include <boost/signals/signal2.hpp>
#include <sys/types.h>
+namespace lyx {
+namespace support {
+
class ForkedProcess {
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"
virtual int generateChild();
};
+} // namespace support
+} // namespace lyx
+
#endif // FORKEDCALL_H