]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlForks.h
Finish the task of removing all cruft from the header files.
[lyx.git] / src / frontends / controllers / ControlForks.h
1 // -*- C++ -*-
2 /**
3  * \file ControlForks.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLFORKS_H
13 #define CONTROLFORKS_H
14
15 #include "ControlDialog_impl.h"
16
17 #include <boost/signals/connection.hpp>
18
19 #include "support/std_string.h"
20 #include <vector>
21 #include <sys/types.h>
22
23
24 /** A controller for dialogs that display the child processes forked by LyX.
25     Also provides an interface enabling them to be killed prematurely.
26 */
27 class ControlForks : public ControlDialogBI {
28 public:
29         ///
30         ControlForks(LyXView &, Dialogs &);
31         ///
32         std::vector<pid_t> const getPIDs() const;
33         ///
34         string const getCommand(pid_t) const;
35         ///
36         void kill(pid_t);
37 private:
38         ///
39         virtual void apply();
40         /// disconnect from the ForkedcallsController
41         virtual void clearParams();
42         /// connect to the ForkedcallsController
43         virtual void setParams();
44         /// Connection to the ForkedcallsController signal
45         boost::signals::connection childrenChanged_;
46         /// The list of PIDs to kill
47         std::vector<pid_t> pids_;
48 };
49
50 #endif // CONTROLFORKS_H