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