]> git.lyx.org Git - lyx.git/blob - src/support/systemcall.h
Undo /does/ seem to still work properly :)
[lyx.git] / src / support / systemcall.h
1 // -*- C++ -*-
2 /**
3  *  \file systemcall.h
4  *  Copyright 2002 the LyX Team
5  *  Read the file COPYING
6  *
7  * \author Asger Alstrup
8  *
9  * Interface cleaned up by
10  * \author Angus Leeming <a.leeming@ic.ac.uk>
11  *
12  * An instance of Class Systemcall represents a single child process.
13  *
14  * Class Systemcall uses system() to launch the child process.
15  * The user can choose to wait or not wait for the process to complete, but no
16  * callback is invoked upon completion of the child.
17  *
18  * The child process is not killed when the Systemcall instance goes out of
19  * scope.
20  */
21
22 #ifndef SYSTEMCALL_H
23 #define SYSTEMCALL_H
24
25 #include "LString.h"
26
27 #ifdef __GNUG__
28 #pragma interface
29 #endif
30
31 class Systemcall {
32 public:
33         ///
34         enum Starttype {
35                 ///
36                 Wait,
37                 ///
38                 DontWait
39         };
40
41 #if 0
42         ///
43         Systemcall() {}
44
45         /** Generate instance and start child process.
46          *  The string "what" contains a commandline with arguments separated
47          *  by spaces.
48          */
49         Systemcall(Starttype how, string const & what);
50 #endif
51
52         /** Start child process.
53          *  The string "what" contains a commandline with arguments separated
54          *  by spaces.
55          */
56         int startscript(Starttype how, string const & what);
57 };
58
59 #endif // SYSTEMCALL_H