4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLFORKS_H
13 #define CONTROLFORKS_H
19 #include "ControlDialog_impl.h"
22 #include <boost/signals/connection.hpp>
24 #include <sys/types.h>
27 /** A controller for dialogs that display the child processes forked by LyX.
28 Also provides an interface enabling them to be killed prematurely.
30 class ControlForks : public ControlDialogBI {
33 ControlForks(LyXView &, Dialogs &);
35 std::vector<pid_t> const getPIDs() const;
37 string const getCommand(pid_t) const;
43 /// disconnect from the ForkedcallsController
44 virtual void clearParams();
45 /// connect to the ForkedcallsController
46 virtual void setParams();
47 /// Connection to the ForkedcallsController signal
48 boost::signals::connection childrenChanged_;
49 /// The list of PIDs to kill
50 std::vector<string> pids_;
53 #endif // CONTROLFORKS_H