4 * Copyright 2001 The LyX Team
7 * \author Angus Leeming
10 #ifndef CONTROLFORKS_H
11 #define CONTROLFORKS_H
17 #include "ControlDialog_impl.h"
20 #include <boost/signals/connection.hpp>
22 #include <sys/types.h>
25 /** A controller for dialogs that display the child processes forked by LyX.
26 Also provides an interface enabling them to be killed prematurely.
28 class ControlForks : public ControlDialogBI {
31 ControlForks(LyXView &, Dialogs &);
33 std::vector<pid_t> const getPIDs() const;
35 string const getCommand(pid_t) const;
42 /// disconnect from the ForkedcallsController
43 virtual void clearParams();
44 /// connect to the ForkedcallsController
45 virtual void setParams();
46 /// Connection to the ForkedcallsController signal
47 boost::signals::connection childrenChanged_;
48 /// The list of PIDs to kill
49 std::vector<string> pids_;
52 #endif // CONTROLFORKS_H