]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.h
Fix C++11 test
[lyx.git] / src / support / ForkedCalls.h
index e628f882cc83abefff2c522f8303d6d164b3a923..529f5c6861082a56b763108818d028939626d0b0 100644 (file)
 #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 {
 
@@ -41,7 +40,7 @@ public:
        ///
        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:
@@ -62,7 +61,7 @@ public:
         *
         *  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!
@@ -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<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.
@@ -175,6 +176,8 @@ public:
 private:
        ///
        virtual int generateChild();
+       ///
+       std::string cmd_prefix_;
 };