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
16 #include "ControlDialog_impl.h"
19 #include <boost/signals/connection.hpp>
21 #include <sys/types.h>
24 /** A controller for dialogs that display the child processes forked by LyX.
25 Also provides an interface enabling them to be killed prematurely.
27 class ControlForks : public ControlDialogBI {
30 ControlForks(LyXView &, Dialogs &);
32 std::vector<pid_t> const getPIDs() const;
34 string const getCommand(pid_t) const;
40 /// disconnect from the ForkedcallsController
41 virtual void clearParams();
42 /// connect to the ForkedcallsController
43 virtual void setParams();
44 /// Connection to the ForkedcallsController signal
45 boost::signals::connection childrenChanged_;
46 /// The list of PIDs to kill
47 std::vector<pid_t> pids_;
50 #endif // CONTROLFORKS_H