3 * \file SystemcallPrivate.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Enrico Forestieri
9 * Full author contact details are available in file CREDITS.
12 #ifndef SYSTEMCALLPRIVATE_H
13 #define SYSTEMCALLPRIVATE_H
23 * Outputs to the console terminal the line buffered standard output and
24 * error of a spawned process when there is a controlling terminal and
25 * stdout/stderr have not been redirected.
27 class ConOut : public QObject
31 ConOut(QProcess * proc);
34 /// Should the standard output be displayed?
35 void showout() { showout_ = true; }
37 /// Should the standard error be displayed?
38 void showerr() { showerr_ = true; }
41 /// Pointer to the process to monitor.
43 /// Index to the standard output buffer.
45 /// Index to the standard error buffer.
48 static size_t const bufsize_ = 200;
49 /// Standard output buffer.
50 char outdata_[bufsize_];
51 /// Standard error buffer.
52 char errdata_[bufsize_];
63 } // namespace support
66 #endif // SYSTEMCALLPRIVATE_H