X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FSystemcall.h;h=1d4c75374a68148aac48b8d65b0c6b8ec960cbff;hb=12554c93d81f75f87c34040fd7737048d3518d6d;hp=8ed0277c0d922e407f249c9c52c6ffe73c1d88bf;hpb=3af56311a7bddc491fa01457bdb5e9efa2dd31d8;p=lyx.git diff --git a/src/support/Systemcall.h b/src/support/Systemcall.h index 8ed0277c0d..1d4c75374a 100644 --- a/src/support/Systemcall.h +++ b/src/support/Systemcall.h @@ -5,7 +5,6 @@ * Licence details can be found in the file COPYING. * * \author Asger Alstrup - * \author Peter Kümmel * * Interface cleaned up by * \author Angus Leeming @@ -21,12 +20,10 @@ namespace lyx { namespace support { -class ProgressInterface; - /** * An instance of Class Systemcall represents a single child process. * - * Class Systemcall uses SystemcallPrivate to launch the child process. + * Class Systemcall uses system() to launch the child process. * The user can choose to wait or not wait for the process to complete, but no * callback is invoked upon completion of the child. * @@ -43,12 +40,14 @@ public: /** Start child process. * The string "what" contains a commandline with arguments separated - * by spaces. + * by spaces and encoded in the filesystem encoding. The string "path" + * contains the path to be prepended to the TEXINPUTS environment + * variable and encoded in utf-8. Unset "process_events" in case + * UI should be blocked while processing the external command. */ - int startscript(Starttype how, std::string const & what); - - static void registerProgressInterface(ProgressInterface*); - static ProgressInterface* progress(); + int startscript(Starttype how, std::string const & what, + std::string const & path = empty_string(), + bool process_events = false); }; } // namespace support