4 * Copyright 2001 The LyX Team
7 * \author Angus Leeming
10 #ifndef CONTROLFORKS_H
11 #define CONTROLFORKS_H
17 #include "ControlDialog_impl.h"
19 #include <sys/types.h>
22 /** A controller for dialogs that display the child processes forked by LyX.
23 Also provides an interface enabling them to be killed prematurely.
25 class ControlForks : public ControlDialogBI {
28 ControlForks(LyXView &, Dialogs &);
30 std::vector<pid_t> const getPIDs() const;
32 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 SigC::Connection childrenChanged_;
45 /// The list of PIDs to kill
46 std::vector<string> pids_;
49 #endif // CONTROLFORKS_H