#ifndef FORKEDCALLS_H
#define FORKEDCALLS_H
-#include <boost/shared_ptr.hpp>
+#include "support/shared_ptr.h"
+#include "support/strfwd.h"
#include <boost/signal.hpp>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
-#include <string>
-
namespace lyx {
namespace support {
///
virtual ~ForkedProcess() {}
///
- virtual boost::shared_ptr<ForkedProcess> clone() const = 0;
+ virtual shared_ptr<ForkedProcess> clone() const = 0;
/** A SignalType signal can be emitted once the forked process
* has finished. It passes:
*
* It doesn't matter if the slot disappears, SigC takes care of that.
*/
- typedef boost::shared_ptr<SignalType> SignalTypePtr;
+ typedef shared_ptr<SignalType> SignalTypePtr;
/** Invoking the following methods makes sense only if the command
* is running asynchronously!
class ForkedCall : public ForkedProcess {
public:
///
- virtual boost::shared_ptr<ForkedProcess> clone() const {
- return boost::shared_ptr<ForkedProcess>(new ForkedCall(*this));
+ ForkedCall(std::string const & path = empty_string());
+ ///
+ virtual shared_ptr<ForkedProcess> clone() const {
+ return shared_ptr<ForkedProcess>(new ForkedCall(*this));
}
/** Start the child process.
*
- * The command "what" is passed to execvp() for execution.
+ * The command "what" is passed to execvp() for execution. "$$s" is
+ * replaced accordingly by commandPrep().
*
* There are two startScript commands available. They differ in that
* the second receives a signal that is executed on completion of
private:
///
virtual int generateChild();
+ ///
+ std::string cmd_prefix_;
};