]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlForks.h
The graphics inset now has:
[features.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 #include <sys/types.h>
20 #include <vector>
21
22 /** A controller for dialogs that display the child processes forked by LyX.
23     Also provides an interface enabling them to be killed prematurely.
24 */
25 class ControlForks : public ControlDialogBI {
26 public:
27         ///
28         ControlForks(LyXView &, Dialogs &);
29         ///
30         std::vector<pid_t> const getPIDs() const;
31         ///
32         string const getCommand(pid_t) const;
33         ///
34         void kill(pid_t);
35
36 private:
37         ///
38         virtual void apply();
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_;
47 };
48
49 #endif // CONTROLFORKS_H