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