]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlForks.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlForks.h
1 // -*- C++ -*-
2 /**
3  * \file ControlForks.h
4  * Read COPYING
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLFORKS_H
12 #define CONTROLFORKS_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlDialog_impl.h"
19 #include "LString.h"
20
21 #include <boost/signals/connection.hpp>
22
23 #include <sys/types.h>
24 #include <vector>
25
26 /** A controller for dialogs that display the child processes forked by LyX.
27     Also provides an interface enabling them to be killed prematurely.
28 */
29 class ControlForks : public ControlDialogBI {
30 public:
31         ///
32         ControlForks(LyXView &, Dialogs &);
33         ///
34         std::vector<pid_t> const getPIDs() const;
35         ///
36         string const getCommand(pid_t) const;
37         ///
38         void kill(pid_t);
39
40 private:
41         ///
42         virtual void apply();
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_;
51 };
52
53 #endif // CONTROLFORKS_H