X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FForkedCalls.h;h=529f5c6861082a56b763108818d028939626d0b0;hb=351363c599db664d612fbe1b426403f91758de05;hp=e628f882cc83abefff2c522f8303d6d164b3a923;hpb=1741c87a4eb54b945cef3664ba778d3ff3e2c167;p=lyx.git diff --git a/src/support/ForkedCalls.h b/src/support/ForkedCalls.h index e628f882cc..529f5c6861 100644 --- a/src/support/ForkedCalls.h +++ b/src/support/ForkedCalls.h @@ -14,15 +14,14 @@ #ifndef FORKEDCALLS_H #define FORKEDCALLS_H -#include +#include "support/shared_ptr.h" +#include "support/strfwd.h" #include #ifdef HAVE_SYS_TYPES_H # include #endif -#include - namespace lyx { namespace support { @@ -41,7 +40,7 @@ public: /// virtual ~ForkedProcess() {} /// - virtual boost::shared_ptr clone() const = 0; + virtual shared_ptr clone() const = 0; /** A SignalType signal can be emitted once the forked process * has finished. It passes: @@ -62,7 +61,7 @@ public: * * It doesn't matter if the slot disappears, SigC takes care of that. */ - typedef boost::shared_ptr SignalTypePtr; + typedef shared_ptr SignalTypePtr; /** Invoking the following methods makes sense only if the command * is running asynchronously! @@ -135,7 +134,7 @@ private: }; -/* +/** * An instance of class ForkedCall represents a single child process. * * Class ForkedCall uses fork() and execvp() to lauch the child process. @@ -151,8 +150,10 @@ private: class ForkedCall : public ForkedProcess { public: /// - virtual boost::shared_ptr clone() const { - return boost::shared_ptr(new ForkedCall(*this)); + ForkedCall(std::string const & path = empty_string()); + /// + virtual shared_ptr clone() const { + return shared_ptr(new ForkedCall(*this)); } /** Start the child process. @@ -175,6 +176,8 @@ public: private: /// virtual int generateChild(); + /// + std::string cmd_prefix_; };