Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2167

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QProcess" doc="/**
&lt;p&gt;The &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; class is used to start external programs and to communicate with them.&lt;/p&gt;
&lt;p&gt;To start a process, pass the name and command line arguments of the program you want to run as arguments to &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;        QObject *parent;
        ...
        QString program = &amp;quot;./path/to/Qt/examples/widgets/analogclock&amp;quot;;
        QStringList arguments;
        arguments &amp;lt;&amp;lt; &amp;quot;-style&amp;quot; &amp;lt;&amp;lt; &amp;quot;motif&amp;quot;;

        QProcess *myProcess = new QProcess(parent);
        myProcess-&amp;gt;start(program, arguments);&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; then enters the &lt;a href=&quot;QProcess.html#ProcessState-enum&quot;&gt;Starting&lt;/tt&gt;&lt;/a&gt; state, and when the program has started, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; enters the &lt;a href=&quot;QProcess.html#ProcessState-enum&quot;&gt;Running&lt;/tt&gt;&lt;/a&gt; state and emits &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; allows you to treat a process as a sequential I/O device. You can write to and read from the process just as you would access a network connection using &lt;a href=&quot;%2E%2E/network/QTcpSocket.html&quot;&gt;&lt;tt&gt;QTcpSocket&lt;/tt&gt;&lt;/a&gt;. You can then write to the process's standard input by calling &lt;a href=&quot;QIODevice.html#write(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;, and read the standard output by calling &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readLine(long)&quot;&gt;&lt;tt&gt;readLine&lt;/tt&gt;&lt;/a&gt;, and getChar(). Because it inherits &lt;a href=&quot;QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; can also be used as an input source for &lt;a href=&quot;%2E%2E/xml/QXmlReader.html&quot;&gt;&lt;tt&gt;QXmlReader&lt;/tt&gt;&lt;/a&gt;, or for generating data to be uploaded using &lt;a href=&quot;%2E%2E/network/QFtp.html&quot;&gt;&lt;tt&gt;QFtp&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When the process exits, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; reenters the &lt;a href=&quot;QProcess.html#ProcessState-enum&quot;&gt;&lt;tt&gt;NotRunning&lt;/tt&gt;&lt;/a&gt; state (the initial state), and emits &lt;a href=&quot;QProcess.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QProcess.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt; signal provides the exit code and exit status of the process as arguments, and you can also call &lt;a href=&quot;QProcess.html#exitCode()&quot;&gt;&lt;tt&gt;exitCode&lt;/tt&gt;&lt;/a&gt; to obtain the exit code of the last process that finished, and &lt;a href=&quot;QProcess.html#exitStatus()&quot;&gt;&lt;tt&gt;exitStatus&lt;/tt&gt;&lt;/a&gt; to obtain its exit status. If an error occurs at any point in time, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will emit the &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; signal. You can also call &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; to find the type of error that occurred last, and &lt;a href=&quot;QProcess.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; to find the current process state.&lt;/p&gt;
&lt;p&gt;Processes have two predefined output channels: The standard output channel (&lt;tt&gt;stdout&lt;/tt&gt;) supplies regular console output, and the standard error channel (&lt;tt&gt;stderr&lt;/tt&gt;) usually supplies the errors that are printed by the process. These channels represent two separate streams of data. You can toggle between them by calling &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; emits &lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; when data is available on the current read channel. It also emits &lt;a href=&quot;QProcess.html#readyReadStandardOutput()&quot;&gt;&lt;tt&gt;readyReadStandardOutput&lt;/tt&gt;&lt;/a&gt; when new standard output data is available, and when new standard error data is available, &lt;a href=&quot;QProcess.html#readyReadStandardError()&quot;&gt;&lt;tt&gt;readyReadStandardError&lt;/tt&gt;&lt;/a&gt; is emitted. Instead of calling &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readLine(long)&quot;&gt;&lt;tt&gt;readLine&lt;/tt&gt;&lt;/a&gt;, or getChar(), you can explicitly read all data from either of the two channels by calling &lt;a href=&quot;QProcess.html#readAllStandardOutput()&quot;&gt;&lt;tt&gt;readAllStandardOutput&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QProcess.html#readAllStandardError()&quot;&gt;&lt;tt&gt;readAllStandardError&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The terminology for the channels can be misleading. Be aware that the process's output channels correspond to &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;'s &lt;i&gt;read&lt;/i&gt; channels, whereas the process's input channels correspond to &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;'s &lt;i&gt;write&lt;/i&gt; channels. This is because what we read using &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; is the process's output, and what we write becomes the process's input.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; can merge the two output channels, so that standard output and standard error data from the running process both use the standard output channel. Call &lt;a href=&quot;QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)&quot;&gt;&lt;tt&gt;setProcessChannelMode&lt;/tt&gt;&lt;/a&gt; with &lt;a href=&quot;QProcess.html#ProcessChannelMode-enum&quot;&gt;&lt;tt&gt;MergedChannels&lt;/tt&gt;&lt;/a&gt; before starting the process to activative this feature. You also have the option of forwarding the output of the running process to the calling, main process, by passing &lt;a href=&quot;QProcess.html#ProcessChannelMode-enum&quot;&gt;&lt;tt&gt;ForwardedChannels&lt;/tt&gt;&lt;/a&gt; as the argument.&lt;/p&gt;
&lt;p&gt;Certain processes need special environment settings in order to operate. You can set environment variables for your process by calling &lt;a href=&quot;QProcess.html#setEnvironment(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setEnvironment&lt;/tt&gt;&lt;/a&gt;. To set a working directory, call &lt;a href=&quot;QProcess.html#setWorkingDirectory(java.lang.String)&quot;&gt;&lt;tt&gt;setWorkingDirectory&lt;/tt&gt;&lt;/a&gt;. By default, processes are run in the current working directory of the calling process.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; provides a set of functions which allow it to be used without an event loop, by suspending the calling thread until certain signals are emitted:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QProcess.html#waitForStarted(int)&quot;&gt;&lt;tt&gt;waitForStarted&lt;/tt&gt;&lt;/a&gt; blocks until the process has started.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt; blocks until new data is available for reading on the current read channel.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; blocks until one payload of data has been written to the process.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QProcess.html#waitForFinished(int)&quot;&gt;&lt;tt&gt;waitForFinished&lt;/tt&gt;&lt;/a&gt; blocks until the process has finished.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Calling these functions from the main thread (the thread that calls QApplication::exec()) may cause your user interface to freeze.&lt;/p&gt;
&lt;p&gt;The following example runs &lt;tt&gt;gzip&lt;/tt&gt; to compress the string &amp;quot;Qt rocks!&amp;quot;, without an event loop:&lt;/p&gt;
&lt;pre&gt;        QProcess gzip;
        gzip.start(&amp;quot;gzip&amp;quot;, QStringList() &amp;lt;&amp;lt; &amp;quot;-c&amp;quot;);
        if (!gzip.waitForStarted())
            return false;

        gzip.write(&amp;quot;Qt rocks!&amp;quot;);
        gzip.closeWriteChannel();

        if (!gzip.waitForFinished())
            return false;

        QByteArray result = gzip.readAll();&lt;/pre&gt;

@see &lt;a href=&quot;QBuffer.html&quot;&gt;&lt;tt&gt;QBuffer&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/network/QTcpSocket.html&quot;&gt;&lt;tt&gt;QTcpSocket&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void aboutToClose()" doc="/**
&lt;p&gt;This signal is emitted when the device is about to close. Connect this signal if you have operations that need to be performed before the device closes (e.g&amp;#x2e;, if you have data in a separate buffer that needs to be written to the device).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void bytesWritten(long bytes)" doc="/**
&lt;p&gt;This signal is emitted every time a payload of data has been written to the device. The &lt;tt&gt;bytes&lt;/tt&gt; argument is set to the number of bytes that were written in this payload.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt; is not emitted recursively; if you reenter the event loop or call &lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; inside a slot connected to the &lt;a href=&quot;QProcess.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt; signal, the signal will not be reemitted (although &lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; may still return true).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(long bytes)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void error(com.trolltech.qt.core.QProcess.ProcessError error)" doc="/**
&lt;p&gt;This signal is emitted when an error occurs with the process. The specified &lt;tt&gt;error&lt;/tt&gt; describes the type of error that occurred.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QProcess.ProcessError error)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finished(int exitCode)" doc="/**
&lt;p&gt;This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.&lt;/p&gt;
&lt;p&gt;Use finished(int &lt;a href=&quot;QProcess.html#exitCode()&quot;&gt;&lt;tt&gt;exitCode&lt;/tt&gt;&lt;/a&gt;, QProcess::ExitStatus status) instead.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int exitCode)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finishedWithStatusCode(int exitCode, com.trolltech.qt.core.QProcess.ExitStatus exitStatus)" doc="/**
&lt;p&gt;This signal is emitted when the process finishes. &lt;tt&gt;exitCode&lt;/tt&gt; is the exit code of the process, and &lt;tt&gt;exitStatus&lt;/tt&gt; is the exit status. After the process has finished, the buffers in &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; are still intact. You can still read any data that the process may have written before it finished.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int exitCode, com.trolltech.qt.core.QProcess.ExitStatus exitStatus)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int exitCode)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProcess.html#exitStatus()&quot;&gt;&lt;tt&gt;exitStatus&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void readyRead()" doc="/**
&lt;p&gt;This signal is emitted once every time new data is available for reading from the device. It will only be emitted again once new data is available, such as when a new payload of network data has arrived on your network socket, or when a new block of data has been appended to your device.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; is not emitted recursively; if you reenter the event loop or call &lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt; inside a slot connected to the &lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt; signal, the signal will not be reemitted (although &lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt; may still return true).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProcess.html#bytesWritten(long)&quot;&gt;&lt;tt&gt;bytesWritten&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void readyReadStandardError()" doc="/**
&lt;p&gt;This signal is emitted when the process has made new data available through its standard error channel (&lt;tt&gt;stderr&lt;/tt&gt;). It is emitted regardless of the current &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;read channel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProcess.html#readAllStandardError()&quot;&gt;&lt;tt&gt;readAllStandardError&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void readyReadStandardOutput()" doc="/**
&lt;p&gt;This signal is emitted when the process has made new data available through its standard output channel (&lt;tt&gt;stdout&lt;/tt&gt;). It is emitted regardless of the current &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;read channel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProcess.html#readAllStandardOutput()&quot;&gt;&lt;tt&gt;readAllStandardOutput&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void started()" doc="/**
&lt;p&gt;This signal is emitted by &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; when the process has started, and &lt;a href=&quot;QProcess.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; returns &lt;a href=&quot;QProcess.html#ProcessState-enum&quot;&gt;Running&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void stateChanged(com.trolltech.qt.core.QProcess.ProcessState state)" doc="/**
&lt;p&gt;This signal is emitted whenever the state of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; changes. The &lt;tt&gt;state&lt;/tt&gt; argument is the state &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; changed to.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QProcess.ProcessState state)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QProcess(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; object with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QProcess()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void closeReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel channel)" doc="/**
&lt;p&gt;Closes the read channel &lt;tt&gt;channel&lt;/tt&gt;. After calling this function, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will no longer receive data on the channel. Any data that has already been received is still available for reading.&lt;/p&gt;
&lt;p&gt;Call this function to save memory, if you are not interested in the output of the process.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#closeWriteChannel()&quot;&gt;&lt;tt&gt;closeWriteChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void closeWriteChannel()" doc="/**
&lt;p&gt;Schedules the write channel of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; to be closed. The channel will close once all data has been written to the process. After calling this function, any attempts to write to the process will fail.&lt;/p&gt;
&lt;p&gt;Closing the write channel is necessary for programs that read input data until the channel has been closed. For example, the program &amp;quot;more&amp;quot; is used to display text data in a console on both Unix and Windows. But it will not display the text data until &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;'s write channel has been closed. Example:&lt;/p&gt;
&lt;pre&gt;    QProcess more;
    more.start(&amp;quot;more&amp;quot;);
    more.write(&amp;quot;Text to display&amp;quot;);
    more.closeWriteChannel();
&lt;span class=&quot;comment&quot;&gt;    // QProcess will emit readyRead() once &amp;quot;more&amp;quot; starts printing&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The write channel is implicitly opened when &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#closeReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;closeReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; environment()" doc="/**
&lt;p&gt;Returns the environment that &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will use when starting a process, or an empty &lt;a href=&quot;%2E%2E/porting4.html#qstringlist&quot;&gt;&lt;tt&gt;QStringList&lt;/tt&gt;&lt;/a&gt; if no environment has been set using &lt;a href=&quot;QProcess.html#setEnvironment(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setEnvironment&lt;/tt&gt;&lt;/a&gt;. If no environment has been set, the environment of the calling process will be used.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setEnvironment(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setEnvironment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#systemEnvironment()&quot;&gt;&lt;tt&gt;systemEnvironment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QProcess.ProcessError error()" doc="/**
&lt;p&gt;Returns the type of error that occurred last.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int exitCode()" doc="/**
&lt;p&gt;Returns the exit code of the last process that finished.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QProcess.ExitStatus exitStatus()" doc="/**
&lt;p&gt;Returns the exit status of the last process that finished.&lt;/p&gt;
&lt;p&gt;On Windows, if the process was terminated with TerminateProcess() from another application this function will still return &lt;a href=&quot;QProcess.html#ExitStatus-enum&quot;&gt;&lt;tt&gt;NormalExit&lt;/tt&gt;&lt;/a&gt; unless the exit code is less than 0.&lt;/p&gt;
 */"/>
    <method name="public final void kill()" doc="/**
&lt;p&gt;Kills the current process, causing it to exit immediately.&lt;/p&gt;
&lt;p&gt;On Windows, &lt;a href=&quot;QProcess.html#kill()&quot;&gt;&lt;tt&gt;kill&lt;/tt&gt;&lt;/a&gt; uses TerminateProcess, and on Unix and Mac OS X, the SIGKILL signal is sent to the process.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#terminate()&quot;&gt;&lt;tt&gt;terminate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QProcess.ProcessChannelMode processChannelMode()" doc="/**
&lt;p&gt;Returns the channel mode of the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; standard output and standard error channels.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)&quot;&gt;&lt;tt&gt;setProcessChannelMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;setReadChannelMode&lt;/tt&gt;
@see &lt;a href=&quot;QProcess.html#ProcessChannelMode-enum&quot;&gt;&lt;tt&gt;ProcessChannelMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray readAllStandardError()" doc="/**
&lt;p&gt;Regardless of the current read channel, this function returns all data available from the standard error of the process as a &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#readyReadStandardError()&quot;&gt;&lt;tt&gt;readyReadStandardError&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#readAllStandardOutput()&quot;&gt;&lt;tt&gt;readAllStandardOutput&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray readAllStandardOutput()" doc="/**
&lt;p&gt;Regardless of the current read channel, this function returns all data available from the standard output of the process as a &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#readyReadStandardOutput()&quot;&gt;&lt;tt&gt;readyReadStandardOutput&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#readAllStandardError()&quot;&gt;&lt;tt&gt;readAllStandardError&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QProcess.ProcessChannel readChannel()" doc="/**
&lt;p&gt;Returns the current read channel of the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEnvironment(java.util.List&lt;java.lang.String&gt; environment)" doc="/**
&lt;p&gt;Sets the environment that &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will use when starting a process to the &lt;tt&gt;environment&lt;/tt&gt; specified which consists of a list of key=value pairs.&lt;/p&gt;
&lt;p&gt;For example, the following code adds the &lt;tt&gt;C:\\BIN&lt;/tt&gt; directory to the list of executable paths (&lt;tt&gt;PATHS&lt;/tt&gt;) on Windows:&lt;/p&gt;
&lt;pre&gt;    QProcess process;
    QStringList env = QProcess::systemEnvironment();
    env &amp;lt;&amp;lt; &amp;quot;TMPDIR=C:\\MyApp\\temp&amp;quot;; &lt;span class=&quot;comment&quot;&gt;// Add an environment variable&lt;/span&gt;
    env.replaceInStrings(QRegExp(&amp;quot;^PATH=(.*)&amp;quot;, Qt::CaseInsensitive), &amp;quot;PATH=\\1;C:\\Bin&amp;quot;);
    process.setEnvironment(env);
    process.start(&amp;quot;myapp&amp;quot;);&lt;/pre&gt;

@see &lt;a href=&quot;QProcess.html#environment()&quot;&gt;&lt;tt&gt;environment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#systemEnvironment()&quot;&gt;&lt;tt&gt;systemEnvironment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode mode)" doc="/**
&lt;p&gt;Sets the channel mode of the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; standard output and standard error channels to the &lt;tt&gt;mode&lt;/tt&gt; specified. This mode will be used the next time &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; is called. For example:&lt;/p&gt;
&lt;pre&gt;    QProcess builder;
    builder.setProcessChannelMode(QProcess::MergedChannels);
    builder.start(&amp;quot;make&amp;quot;, QStringList() &amp;lt;&amp;lt; &amp;quot;-j2&amp;quot;);

    if (!builder.waitForFinished())
        qDebug() &amp;lt;&amp;lt; &amp;quot;Make failed:&amp;quot; &amp;lt;&amp;lt; builder.errorString();
    else
        qDebug() &amp;lt;&amp;lt; &amp;quot;Make output:&amp;quot; &amp;lt;&amp;lt; builder.readAll();&lt;/pre&gt;

@see &lt;a href=&quot;QProcess.html#processChannelMode()&quot;&gt;&lt;tt&gt;processChannelMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;readChannelMode&lt;/tt&gt;
@see &lt;a href=&quot;QProcess.html#ProcessChannelMode-enum&quot;&gt;&lt;tt&gt;ProcessChannelMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void setProcessState(com.trolltech.qt.core.QProcess.ProcessState state)" doc="/**
&lt;p&gt;Sets the current state of the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; to the &lt;tt&gt;state&lt;/tt&gt; specified.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel channel)" doc="/**
&lt;p&gt;Sets the current read channel of the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; to the given &lt;tt&gt;channel&lt;/tt&gt;. The current input channel is used by the functions &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readAll()&quot;&gt;&lt;tt&gt;readAll&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QIODevice.html#readLine(long)&quot;&gt;&lt;tt&gt;readLine&lt;/tt&gt;&lt;/a&gt;, and getChar(). It also determines which channel triggers &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; to emit &lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStandardErrorFile(java.lang.String fileName, com.trolltech.qt.core.QIODevice.OpenMode mode)" doc="/**
&lt;p&gt;Redirects the process' standard error to the file &lt;tt&gt;fileName&lt;/tt&gt;. When the redirection is in place, the standard error read channel is closed: reading from it using &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; will always fail, as will &lt;a href=&quot;QProcess.html#readAllStandardError()&quot;&gt;&lt;tt&gt;readAllStandardError&lt;/tt&gt;&lt;/a&gt;. The file will be appended to if &lt;tt&gt;mode&lt;/tt&gt; is Append, otherwise, it will be truncated.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardOutputFile&lt;/tt&gt;&lt;/a&gt; for more information on how the file is opened.&lt;/p&gt;
&lt;p&gt;Note: if &lt;a href=&quot;QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)&quot;&gt;&lt;tt&gt;setProcessChannelMode&lt;/tt&gt;&lt;/a&gt; was called with an argument of QProcess::MergedChannels, this function has no effect.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setStandardInputFile(java.lang.String)&quot;&gt;&lt;tt&gt;setStandardInputFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardOutputFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)&quot;&gt;&lt;tt&gt;setStandardOutputProcess&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStandardErrorFile(java.lang.String fileName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardErrorFile&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, Truncate). */"/>
    <method name="public final void setStandardInputFile(java.lang.String fileName)" doc="/**
&lt;p&gt;Redirects the process' standard input to the file indicated by &lt;tt&gt;fileName&lt;/tt&gt;. When an input redirection is in place, the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; object will be in read-only mode (calling &lt;a href=&quot;QIODevice.html#write(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt; will result in error).&lt;/p&gt;
&lt;p&gt;If the file &lt;tt&gt;fileName&lt;/tt&gt; does not exist at the moment &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; is called or is not readable, starting the process will fail.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QProcess.html#setStandardInputFile(java.lang.String)&quot;&gt;&lt;tt&gt;setStandardInputFile&lt;/tt&gt;&lt;/a&gt; after the process has started has no effect.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardOutputFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardErrorFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)&quot;&gt;&lt;tt&gt;setStandardOutputProcess&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStandardOutputFile(java.lang.String fileName, com.trolltech.qt.core.QIODevice.OpenMode mode)" doc="/**
&lt;p&gt;Redirects the process' standard output to the file &lt;tt&gt;fileName&lt;/tt&gt;. When the redirection is in place, the standard output read channel is closed: reading from it using &lt;a href=&quot;QIODevice.html#read(long)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; will always fail, as will &lt;a href=&quot;QProcess.html#readAllStandardOutput()&quot;&gt;&lt;tt&gt;readAllStandardOutput&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the file &lt;tt&gt;fileName&lt;/tt&gt; doesn't exist at the moment &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; is called, it will be created. If it cannot be created, the starting will fail.&lt;/p&gt;
&lt;p&gt;If the file exists and &lt;tt&gt;mode&lt;/tt&gt; is QIODevice::Truncate, the file will be truncated. Otherwise (if &lt;tt&gt;mode&lt;/tt&gt; is QIODevice::Append), the file will be appended to.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardOutputFile&lt;/tt&gt;&lt;/a&gt; after the process has started has no effect.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setStandardInputFile(java.lang.String)&quot;&gt;&lt;tt&gt;setStandardInputFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardErrorFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)&quot;&gt;&lt;tt&gt;setStandardOutputProcess&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStandardOutputFile(java.lang.String fileName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;setStandardOutputFile&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, Truncate). */"/>
    <method name="public final void setStandardOutputProcess(com.trolltech.qt.core.QProcess destination)" doc="/**
&lt;p&gt;Pipes the standard output stream of this process to the &lt;tt&gt;destination&lt;/tt&gt; process' standard input.&lt;/p&gt;
&lt;p&gt;The following shell command:&lt;/p&gt;
&lt;pre&gt;    command1 | command2&lt;/pre&gt;
&lt;p&gt;Can be accomplished with QProcesses with the following code:&lt;/p&gt;
&lt;pre&gt;    QProcess process1;
    QProcess process2;

    process1.setStandardOutputProcess(process2);

    process1.start(&amp;quot;command1&amp;quot;);
    process2.start(&amp;quot;command2&amp;quot;);&lt;/pre&gt;
 */"/>
    <method name="public final void setWorkingDirectory(java.lang.String dir)" doc="/**
&lt;p&gt;Sets the working directory to &lt;tt&gt;dir&lt;/tt&gt;. &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will start the process in this directory. The default behavior is to start the process in the working directory of the calling process.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#workingDirectory()&quot;&gt;&lt;tt&gt;workingDirectory&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void start(java.lang.String program, com.trolltech.qt.core.QIODevice.OpenMode mode)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; in a new process. &lt;tt&gt;program&lt;/tt&gt; is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces. For example:&lt;/p&gt;
&lt;pre&gt;    QProcess process;
    process.start(&amp;quot;del /s *.txt&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // same as process.start(&amp;quot;del&amp;quot;, QStringList() &amp;lt;&amp;lt; &amp;quot;/s&amp;quot; &amp;lt;&amp;lt; &amp;quot;*.txt&amp;quot;);&lt;/span&gt;
    ...&lt;/pre&gt;
&lt;p&gt;The &lt;tt&gt;program&lt;/tt&gt; string can also contain quotes, to ensure that arguments containing spaces are correctly supplied to the new process. For example:&lt;/p&gt;
&lt;pre&gt;    QProcess process;
    process.start(&amp;quot;dir \&amp;quot;My Documents\&amp;quot;&amp;quot;);&lt;/pre&gt;
&lt;p&gt;Note that, on Windows, quotes need to be both escaped and quoted. For example, the above code would be specified in the following way to ensure that &lt;tt&gt;&amp;quot;My Documents&amp;quot;&lt;/tt&gt; is used as the argument to the &lt;tt&gt;dir&lt;/tt&gt; executable:&lt;/p&gt;
&lt;pre&gt;    QProcess process;
    process.start(&amp;quot;dir \&amp;quot;\&amp;quot;\&amp;quot;My Documents\&amp;quot;\&amp;quot;\&amp;quot;&amp;quot;);&lt;/pre&gt;
&lt;p&gt;The OpenMode is set to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void start(java.lang.String program)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;start&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;program&lt;/tt&gt;, ReadWrite). */"/>
    <method name="public final void start(java.lang.String program, java.util.List&lt;java.lang.String&gt; arguments, com.trolltech.qt.core.QIODevice.OpenMode mode)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; in a new process, passing the command line arguments in &lt;tt&gt;arguments&lt;/tt&gt;. The OpenMode is set to &lt;tt&gt;mode&lt;/tt&gt;. &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will immediately enter the Starting state. If the process starts successfully, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt;; otherwise, &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; will be emitted.&lt;/p&gt;
&lt;p&gt;On Windows, arguments that contain spaces are wrapped in quotes.&lt;/p&gt;
&lt;p&gt;Note: processes are started asynchronously, which means the &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; signals may be delayed. Call &lt;a href=&quot;QProcess.html#waitForStarted(int)&quot;&gt;&lt;tt&gt;waitForStarted&lt;/tt&gt;&lt;/a&gt; to make sure the process has started (or has failed to start) and those signals have been emitted.&lt;/p&gt;

@see &lt;tt&gt;pid&lt;/tt&gt;
@see &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForStarted(int)&quot;&gt;&lt;tt&gt;waitForStarted&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void start(java.lang.String program, java.util.List&lt;java.lang.String&gt; arguments)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#start(java.lang.String, java.util.List&lt;java.lang.String&gt;, com.trolltech.qt.core.QIODevice.OpenMode)&quot;&gt;start&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;program&lt;/tt&gt;, &lt;tt&gt;arguments&lt;/tt&gt;, ReadWrite). */"/>
    <method name="public final com.trolltech.qt.core.QProcess.ProcessState state()" doc="/**
&lt;p&gt;Returns the current state of the process.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#stateChanged(com.trolltech.qt.core.QProcess.ProcessState)&quot;&gt;&lt;tt&gt;stateChanged&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void terminate()" doc="/**
&lt;p&gt;Attempts to terminate the process.&lt;/p&gt;
&lt;p&gt;The process may not exit as a result of calling this function (it is given the chance to prompt the user for any unsaved files, etc).&lt;/p&gt;
&lt;p&gt;On Windows, &lt;a href=&quot;QProcess.html#terminate()&quot;&gt;&lt;tt&gt;terminate&lt;/tt&gt;&lt;/a&gt; posts a WM_CLOSE message to all toplevel windows of the process and then to the main thread of the process itself. On Unix and Mac OS X the SIGTERM signal is sent.&lt;/p&gt;
&lt;p&gt;Console applications on Windows that do not run an event loop, or whose event loop does not handle the WM_CLOSE message, can only be terminated by calling &lt;a href=&quot;QProcess.html#kill()&quot;&gt;&lt;tt&gt;kill&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#kill()&quot;&gt;&lt;tt&gt;kill&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean waitForFinished(int msecs)" doc="/**
&lt;p&gt;Blocks until the process has finished and the &lt;a href=&quot;QProcess.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt; signal has been emitted, or until &lt;tt&gt;msecs&lt;/tt&gt; milliseconds have passed.&lt;/p&gt;
&lt;p&gt;Returns true if the process finished; otherwise returns false (if the operation timed out or if an error occurred).&lt;/p&gt;
&lt;p&gt;This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling this function from the main (GUI) thread might cause your user interface to freeze.&lt;/p&gt;
&lt;p&gt;If msecs is -1, this function will not time out.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForStarted(int)&quot;&gt;&lt;tt&gt;waitForStarted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean waitForFinished()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#waitForFinished(int)&quot;&gt;&lt;tt&gt;waitForFinished&lt;/tt&gt;&lt;/a&gt;(30000). */"/>
    <method name="public final boolean waitForStarted(int msecs)" doc="/**
&lt;p&gt;Blocks until the process has started and the &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt; signal has been emitted, or until &lt;tt&gt;msecs&lt;/tt&gt; milliseconds have passed.&lt;/p&gt;
&lt;p&gt;Returns true if the process was started successfully; otherwise returns false (if the operation timed out or if an error occurred).&lt;/p&gt;
&lt;p&gt;This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling this function from the main (GUI) thread might cause your user interface to freeze.&lt;/p&gt;
&lt;p&gt;If msecs is -1, this function will not time out.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#started()&quot;&gt;&lt;tt&gt;started&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#waitForFinished(int)&quot;&gt;&lt;tt&gt;waitForFinished&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean waitForStarted()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#waitForStarted(int)&quot;&gt;&lt;tt&gt;waitForStarted&lt;/tt&gt;&lt;/a&gt;(30000). */"/>
    <method name="public final java.lang.String workingDirectory()" doc="/**
&lt;p&gt;Returns the working directory that the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will enter before the program has started.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setWorkingDirectory(java.lang.String)&quot;&gt;&lt;tt&gt;setWorkingDirectory&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean atEnd()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public long bytesAvailable()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public long bytesToWrite()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean canReadLine()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#readChannel()&quot;&gt;&lt;tt&gt;readChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void close()" doc="/**
&lt;p&gt;Closes all communication with the process. After calling this function, &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; will no longer emit &lt;a href=&quot;QProcess.html#readyRead()&quot;&gt;&lt;tt&gt;readyRead&lt;/tt&gt;&lt;/a&gt;, and data can no longer be read or written.&lt;/p&gt;
 */"/>
    <method name="public boolean isSequential()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected int readData(byte[] data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#readData(byte[])&quot;&gt;&lt;tt&gt;readData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, ). */"/>
    <method name="protected void setupChildProcess()" doc="/**
&lt;p&gt;This function is called in the child process context just before the program is executed on Unix or Mac OS X (i.e&amp;#x2e;, after &lt;i&gt;fork()&lt;/i&gt;, but before &lt;i&gt;execve()&lt;/i&gt;). Reimplement this function to do last minute initialization of the child process. Example:&lt;/p&gt;
&lt;pre&gt;    class SandboxProcess : public QProcess
    {
        ...
     protected:
         void setupChildProcess();
        ...
    };

    void SandboxProcess::setupChildProcess()
    {
        &lt;span class=&quot;comment&quot;&gt;// Drop all privileges in the child process, and enter&lt;/span&gt;
        &lt;span class=&quot;comment&quot;&gt;// a chroot jail.&lt;/span&gt;
    #if defined Q_OS_UNIX
        ::setgroups(0, 0);
        ::chroot(&amp;quot;/etc/safe&amp;quot;);
        ::chdir(&amp;quot;/&amp;quot;);
        ::setgid(safeGid);
        ::setuid(safeUid);
        ::umask(0);
    #endif
    }&lt;/pre&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function is called by &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; on Unix and Mac OS X only. On Windows, it is not called.&lt;/p&gt;
 */"/>
    <method name="public boolean waitForBytesWritten(int msecs)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean waitForBytesWritten()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#waitForBytesWritten(int)&quot;&gt;&lt;tt&gt;waitForBytesWritten&lt;/tt&gt;&lt;/a&gt;(30000). */"/>
    <method name="public boolean waitForReadyRead(int msecs)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean waitForReadyRead()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#waitForReadyRead(int)&quot;&gt;&lt;tt&gt;waitForReadyRead&lt;/tt&gt;&lt;/a&gt;(30000). */"/>
    <method name="protected int writeData(byte[] data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProcess.html#writeData(byte[])&quot;&gt;&lt;tt&gt;writeData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, ). */"/>
    <method name="public native static int execute(java.lang.String program, java.util.List&lt;java.lang.String&gt; arguments)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; with the arguments &lt;tt&gt;arguments&lt;/tt&gt; in a new process, waits for it to finish, and then returns the exit code of the process. Any data the new process writes to the console is forwarded to the calling process.&lt;/p&gt;
&lt;p&gt;The environment and working directory are inherited by the calling process.&lt;/p&gt;
&lt;p&gt;On Windows, arguments that contain spaces are wrapped in quotes.&lt;/p&gt;
 */"/>
    <method name="public native static int execute(java.lang.String program)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; in a new process. &lt;tt&gt;program&lt;/tt&gt; is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces.&lt;/p&gt;
 */"/>
    <method name="public native static boolean startDetached(java.lang.String program, java.util.List&lt;java.lang.String&gt; arguments)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; with the arguments &lt;tt&gt;arguments&lt;/tt&gt; in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to live.&lt;/p&gt;
&lt;p&gt;On Unix, the started process will run in its own session and act like a daemon. On Windows, it will run as a regular standalone process.&lt;/p&gt;
&lt;p&gt;On Windows, arguments that contain spaces are wrapped in quotes.&lt;/p&gt;
 */"/>
    <method name="public native static boolean startDetached(java.lang.String program)" doc="/**
&lt;p&gt;Starts the program &lt;tt&gt;program&lt;/tt&gt; in a new process. &lt;tt&gt;program&lt;/tt&gt; is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;program&lt;/tt&gt; string can also contain quotes, to ensure that arguments containing spaces are correctly supplied to the new process.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; systemEnvironment()" doc="/**
&lt;p&gt;Returns the environment of the calling process as a list of key=value pairs. Example:&lt;/p&gt;
&lt;pre&gt;    QStringList environment = QProcess::systemEnvironment();
&lt;span class=&quot;comment&quot;&gt;    // environment = {&amp;quot;PATH=/usr/bin:/usr/local/bin&amp;quot;,&lt;/span&gt;
                      &amp;quot;USER=greg&amp;quot;, &amp;quot;HOME=/home/greg&amp;quot;}&lt;/pre&gt;

@see &lt;a href=&quot;QProcess.html#environment()&quot;&gt;&lt;tt&gt;environment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProcess.html#setEnvironment(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setEnvironment&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ProcessError" doc="/**
&lt;p&gt;This enum describes the different types of errors that are reported by &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="FailedToStart" doc="/**
&lt;p&gt;The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.&lt;/p&gt;
 */"/>
        <enum-value name="Crashed" doc="/**
&lt;p&gt;The process crashed some time after starting successfully.&lt;/p&gt;
 */"/>
        <enum-value name="Timedout" doc="/**
&lt;p&gt;The last waitFor...() function timed out. The state of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; is unchanged, and you can try calling waitFor...() again.&lt;/p&gt;
 */"/>
        <enum-value name="ReadError" doc="/**
&lt;p&gt;An error occurred when attempting to read from the process. For example, the process may not be running.&lt;/p&gt;
 */"/>
        <enum-value name="WriteError" doc="/**
&lt;p&gt;An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.&lt;/p&gt;
 */"/>
        <enum-value name="UnknownError" doc="/**
&lt;p&gt;An unknown error occurred. This is the default return value of &lt;a href=&quot;QProcess.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ProcessChannelMode" doc="/**
&lt;p&gt;This enum describes the process channel modes of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;. Pass one of these values to &lt;a href=&quot;QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)&quot;&gt;&lt;tt&gt;setProcessChannelMode&lt;/tt&gt;&lt;/a&gt; to set the current read channel mode.&lt;/p&gt;

@see &lt;tt&gt;setReadChannelMode&lt;/tt&gt; */">
        <enum-value name="SeparateChannels" doc="/**
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; manages the output of the running process, keeping standard output and standard error data in separate internal buffers. You can select the &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;'s current read channel by calling &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt;. This is the default channel mode of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="MergedChannels" doc="/**
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; merges the output of the running process into the standard output channel (&lt;tt&gt;stdout&lt;/tt&gt;). The standard error channel (&lt;tt&gt;stderr&lt;/tt&gt;) will not receive any data. The standard output and standard error data of the running process are interleaved.&lt;/p&gt;
 */"/>
        <enum-value name="ForwardedChannels" doc="/**
&lt;p&gt;&lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt; forwards the output of the running process onto the main process. Anything the child process writes to its standard output and standard error will be written to the standard output and standard error of the main process.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ProcessChannel" doc="/**
&lt;p&gt;This enum describes the process channels used by the running process. Pass one of these values to &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; to set the current read channel of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)&quot;&gt;&lt;tt&gt;setReadChannel&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="StandardOutput" doc="/**
&lt;p&gt;The standard output (stdout) of the running process.&lt;/p&gt;
 */"/>
        <enum-value name="StandardError" doc="/**
&lt;p&gt;The standard error (stderr) of the running process.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ProcessState" doc="/**
&lt;p&gt;This enum describes the different states of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#state()&quot;&gt;&lt;tt&gt;state&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NotRunning" doc="/**
&lt;p&gt;The process is not running.&lt;/p&gt;
 */"/>
        <enum-value name="Starting" doc="/**
&lt;p&gt;The process is starting, but the program has not yet been invoked.&lt;/p&gt;
 */"/>
        <enum-value name="Running" doc="/**
&lt;p&gt;The process is running and is ready for reading and writing.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ExitStatus" doc="/**
&lt;p&gt;This enum describes the different exit statuses of &lt;a href=&quot;QProcess.html#QProcess(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProcess.html#exitStatus()&quot;&gt;&lt;tt&gt;exitStatus&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NormalExit" doc="/**
&lt;p&gt;The process exited normally.&lt;/p&gt;
 */"/>
        <enum-value name="CrashExit" doc="/**
&lt;p&gt;The process crashed.&lt;/p&gt;
 */"/>
</enum>
</class>