Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 160

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:57:41 CEST 2007 -->
<TITLE>
QProcess
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.core.QProcess class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QProcess";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.DetachedProcessInfo.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QProcess.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QProcess.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.core</FONT>
<BR>
Class QProcess</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QIODevice</A>
                  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.core.QProcess</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QProcess</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></DL>
</PRE>

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

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

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

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

        QByteArray result = gzip.readAll();</pre>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QBuffer.html"><tt>QBuffer</tt></a>, 
<a href="QFile.html"><tt>QFile</tt></a>, 
<a href="%2E%2E/network/QTcpSocket.html"><tt>QTcpSocket</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.DetachedProcessInfo.html" title="class in com.trolltech.qt.core">QProcess.DetachedProcessInfo</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.ExitStatus.html" title="enum in com.trolltech.qt.core">QProcess.ExitStatus</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the different exit statuses of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the process channels used by the running process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannelMode.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannelMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the process channel modes of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessError.html" title="enum in com.trolltech.qt.core">QProcess.ProcessError</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the different types of errors that are reported by <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the different states of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessError.html" title="enum in com.trolltech.qt.core">QProcess.ProcessError</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#error">error</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when an error occurs with the process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#finished">finished</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is obsolete.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,<A HREF="../../../../com/trolltech/qt/core/QProcess.ExitStatus.html" title="enum in com.trolltech.qt.core">QProcess.ExitStatus</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#finishedWithStatusCode">finishedWithStatusCode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the process finishes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readyReadStandardError">readyReadStandardError</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the process has made new data available through its standard error channel (<tt>stderr</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readyReadStandardOutput">readyReadStandardOutput</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the process has made new data available through its standard output channel (<tt>stdout</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#started">started</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted by <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> when the process has started, and <a href="QProcess.html#state()"><tt>state</tt></a> returns <a href="QProcess.html#ProcessState-enum">Running</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#stateChanged">stateChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the state of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> changes.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#aboutToClose">aboutToClose</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesWritten">bytesWritten</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readyRead">readyRead</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#QProcess()">QProcess</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#QProcess(com.trolltech.qt.core.QObject)">QProcess</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> object with the given <tt>parent</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#atEnd()">atEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#bytesAvailable()">bytesAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#bytesToWrite()">bytesToWrite</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#canReadLine()">canReadLine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes all communication with the process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#closeReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)">closeReadChannel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A>&nbsp;channel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the read channel <tt>channel</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#closeWriteChannel()">closeWriteChannel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Schedules the write channel of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to be closed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#environment()">environment</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the environment that <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will use when starting a process, or an empty <a href="%2E%2E/porting4.html#qstringlist"><tt>QStringList</tt></a> if no environment has been set using <a href="QProcess.html#setEnvironment(java.util.List<java.lang.String>)"><tt>setEnvironment</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessError.html" title="enum in com.trolltech.qt.core">QProcess.ProcessError</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#error()">error</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the type of error that occurred last.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#execute(java.lang.String)">execute</A></B>(java.lang.String&nbsp;program)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#execute(java.lang.String, java.util.List)">execute</A></B>(java.lang.String&nbsp;program,
        java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> in a new process, waits for it to finish, and then returns the exit code of the process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#exitCode()">exitCode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the exit code of the last process that finished.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.ExitStatus.html" title="enum in com.trolltech.qt.core">QProcess.ExitStatus</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#exitStatus()">exitStatus</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the exit status of the last process that finished.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.html" title="class in com.trolltech.qt.core">QProcess</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QProcess instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#isSequential()">isSequential</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#kill()">kill</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kills the current process, causing it to exit immediately.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannelMode.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannelMode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#processChannelMode()">processChannelMode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the channel mode of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> standard output and standard error channels.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readAllStandardError()">readAllStandardError</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regardless of the current read channel, this function returns all data available from the standard error of the process as a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readAllStandardOutput()">readAllStandardOutput</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regardless of the current read channel, this function returns all data available from the standard output of the process as a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readChannel()">readChannel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current read channel of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#readData(byte[])">readData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setEnvironment(java.util.List)">setEnvironment</A></B>(java.util.List&lt;java.lang.String&gt;&nbsp;environment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the environment that <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will use when starting a process to the <tt>environment</tt> specified which consists of a list of key=value pairs.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)">setProcessChannelMode</A></B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannelMode.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannelMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the channel mode of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> standard output and standard error channels to the <tt>mode</tt> specified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setProcessState(com.trolltech.qt.core.QProcess.ProcessState)">setProcessState</A></B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current state of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to the <tt>state</tt> specified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)">setReadChannel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A>&nbsp;channel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current read channel of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to the given <tt>channel</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardErrorFile(java.lang.String)">setStandardErrorFile</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardErrorFile</tt></a>(<tt>fileName</tt>, Truncate).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)">setStandardErrorFile</A></B>(java.lang.String&nbsp;fileName,
                     <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redirects the process' standard error to the file <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setStandardErrorFile</A></B>(java.lang.String&nbsp;fileName,
                     <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redirects the process' standard error to the file <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardInputFile(java.lang.String)">setStandardInputFile</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redirects the process' standard input to the file indicated by <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardOutputFile(java.lang.String)">setStandardOutputFile</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a>(<tt>fileName</tt>, Truncate).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)">setStandardOutputFile</A></B>(java.lang.String&nbsp;fileName,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redirects the process' standard output to the file <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setStandardOutputFile</A></B>(java.lang.String&nbsp;fileName,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redirects the process' standard output to the file <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)">setStandardOutputProcess</A></B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.html" title="class in com.trolltech.qt.core">QProcess</A>&nbsp;destination)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pipes the standard output stream of this process to the <tt>destination</tt> process' standard input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setupChildProcess()">setupChildProcess</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is called in the child process context just before the program is executed on Unix or Mac OS X (i.e&#x2e;, after <i>fork()</i>, but before <i>execve()</i>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#setWorkingDirectory(java.lang.String)">setWorkingDirectory</A></B>(java.lang.String&nbsp;dir)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the working directory to <tt>dir</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String)">start</A></B>(java.lang.String&nbsp;program)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)">start</tt></a>(<tt>program</tt>, ReadWrite).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String, java.util.List)">start</A></B>(java.lang.String&nbsp;program,
      java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process, passing the
command line arguments in <tt>arguments</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String, java.util.List, com.trolltech.qt.core.QIODevice.OpenMode)">start</A></B>(java.lang.String&nbsp;program,
      java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process, passing the command line arguments in <tt>arguments</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String, java.util.List, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">start</A></B>(java.lang.String&nbsp;program,
      java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process, passing the command line arguments in <tt>arguments</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)">start</A></B>(java.lang.String&nbsp;program,
      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#start(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">start</A></B>(java.lang.String&nbsp;program,
      <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#startDetached(java.lang.String)">startDetached</A></B>(java.lang.String&nbsp;program)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> in a new process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#startDetached(java.lang.String, java.util.List)">startDetached</A></B>(java.lang.String&nbsp;program,
              java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> in a new process, and detaches from it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.DetachedProcessInfo.html" title="class in com.trolltech.qt.core">QProcess.DetachedProcessInfo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#startDetached(java.lang.String, java.util.List, java.lang.String)">startDetached</A></B>(java.lang.String&nbsp;program,
              java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
              java.lang.String&nbsp;workingDirectory)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> in a
new process, and detaches from it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#state()">state</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current state of the process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.util.List&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#systemEnvironment()">systemEnvironment</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the environment of the calling process as a list of key=value pairs.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#terminate()">terminate</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to terminate the process.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForBytesWritten(int)">waitForBytesWritten</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForFinished()">waitForFinished</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#waitForFinished(int)"><tt>waitForFinished</tt></a>(30000).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForFinished(int)">waitForFinished</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks until the process has finished and the <a href="QProcess.html#finished(int)"><tt>finished</tt></a> signal has been emitted, or until <tt>msecs</tt> milliseconds have passed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForReadyRead(int)">waitForReadyRead</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForStarted()">waitForStarted</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a>(30000).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#waitForStarted(int)">waitForStarted</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks until the process has started and the <a href="QProcess.html#started()"><tt>started</tt></a> signal has been emitted, or until <tt>msecs</tt> milliseconds have passed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#workingDirectory()">workingDirectory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the working directory that the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will enter before the program has started.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QProcess.html#writeData(byte[])">writeData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QProcess.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#errorString()">errorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#getByte()">getByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isOpen()">isOpen</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isReadable()">isReadable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isTextModeEnabled()">isTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isWritable()">isWritable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenMode)">open</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">open</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#openMode()">openMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(byte[])">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(long)">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#pos()">pos</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#putByte(byte)">putByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(byte[])">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(long)">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readAll()">readAll</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine()">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(byte[])">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(long)">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLineData(byte[])">readLineData</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#reset()">reset</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#seek(long)">seek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setErrorString(java.lang.String)">setErrorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenMode)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setTextModeEnabled(boolean)">setTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#size()">size</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#ungetByte(byte)">ungetByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(byte[])">write</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)">write</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="error"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessError.html" title="enum in com.trolltech.qt.core">QProcess.ProcessError</A>&gt; <B>error</B></PRE>
<DL>
<DD><p>This signal is emitted when an error occurs with the process. The specified <tt>error</tt> describes the type of error that occurred.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.core.QProcess.ProcessError error)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="finishedWithStatusCode"><!-- --></A><H3>
finishedWithStatusCode</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,<A HREF="../../../../com/trolltech/qt/core/QProcess.ExitStatus.html" title="enum in com.trolltech.qt.core">QProcess.ExitStatus</A>&gt; <B>finishedWithStatusCode</B></PRE>
<DL>
<DD><p>This signal is emitted when the process finishes. <tt>exitCode</tt> is the exit code of the process, and <tt>exitStatus</tt> is the exit status. After the process has finished, the buffers in <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> are still intact. You can still read any data that the process may have written before it finished.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int exitCode, com.trolltech.qt.core.QProcess.ExitStatus exitStatus)</tt></dd>
<dd><tt>void mySlot(int exitCode)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QProcess.html#exitStatus()"><tt>exitStatus</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="finished"><!-- --></A><H3>
finished</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>finished</B></PRE>
<DL>
<DD><p>This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p>
<p>Use finished(int <a href="QProcess.html#exitCode()"><tt>exitCode</tt></a>, QProcess::ExitStatus status) instead.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int exitCode)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="readyReadStandardError"><!-- --></A><H3>
readyReadStandardError</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>readyReadStandardError</B></PRE>
<DL>
<DD><p>This signal is emitted when the process has made new data available through its standard error channel (<tt>stderr</tt>). It is emitted regardless of the current <a href="QProcess.html#readChannel()">read channel</tt></a>.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QProcess.html#readAllStandardError()"><tt>readAllStandardError</tt></a>, <a href="QProcess.html#readChannel()"><tt>readChannel</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="readyReadStandardOutput"><!-- --></A><H3>
readyReadStandardOutput</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>readyReadStandardOutput</B></PRE>
<DL>
<DD><p>This signal is emitted when the process has made new data available through its standard output channel (<tt>stdout</tt>). It is emitted regardless of the current <a href="QProcess.html#readChannel()">read channel</tt></a>.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QProcess.html#readAllStandardOutput()"><tt>readAllStandardOutput</tt></a>, <a href="QProcess.html#readChannel()"><tt>readChannel</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="started"><!-- --></A><H3>
started</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>started</B></PRE>
<DL>
<DD><p>This signal is emitted by <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> when the process has started, and <a href="QProcess.html#state()"><tt>state</tt></a> returns <a href="QProcess.html#ProcessState-enum">Running</tt></a>.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="stateChanged"><!-- --></A><H3>
stateChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A>&gt; <B>stateChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the state of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> changes. The <tt>state</tt> argument is the state <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> changed to.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.core.QProcess.ProcessState state)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QProcess()"><!-- --></A><H3>
QProcess</H3>
<PRE>
public <B>QProcess</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>(0).
<P>
</DL>
<HR>

<A NAME="QProcess(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QProcess</H3>
<PRE>
public <B>QProcess</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> object with the given <tt>parent</tt>.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="closeReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><!-- --></A><H3>
closeReadChannel</H3>
<PRE>
public final void <B>closeReadChannel</B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A>&nbsp;channel)</PRE>
<DL>
<DD><p>Closes the read channel <tt>channel</tt>. After calling this function, <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will no longer receive data on the channel. Any data that has already been received is still available for reading.</p>
<p>Call this function to save memory, if you are not interested in the output of the process.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#closeWriteChannel()"><tt>closeWriteChannel</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="closeWriteChannel()"><!-- --></A><H3>
closeWriteChannel</H3>
<PRE>
public final void <B>closeWriteChannel</B>()</PRE>
<DL>
<DD><p>Schedules the write channel of <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> 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.</p>
<p>Closing the write channel is necessary for programs that read input data until the channel has been closed. For example, the program &quot;more&quot; is used to display text data in a console on both Unix and Windows. But it will not display the text data until <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>'s write channel has been closed. Example:</p>
<pre>    QProcess more;
    more.start(&quot;more&quot;);
    more.write(&quot;Text to display&quot;);
    more.closeWriteChannel();
<span class="comment">    // QProcess will emit readyRead() once &quot;more&quot; starts printing</span></pre>
<p>The write channel is implicitly opened when <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a> is called.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#closeReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>closeReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="environment()"><!-- --></A><H3>
environment</H3>
<PRE>
public final java.util.List&lt;java.lang.String&gt; <B>environment</B>()</PRE>
<DL>
<DD><p>Returns the environment that <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will use when starting a process, or an empty <a href="%2E%2E/porting4.html#qstringlist"><tt>QStringList</tt></a> if no environment has been set using <a href="QProcess.html#setEnvironment(java.util.List<java.lang.String>)"><tt>setEnvironment</tt></a>. If no environment has been set, the environment of the calling process will be used.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setEnvironment(java.util.List<java.lang.String>)"><tt>setEnvironment</tt></a>, 
<a href="QProcess.html#systemEnvironment()"><tt>systemEnvironment</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="error()"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessError.html" title="enum in com.trolltech.qt.core">QProcess.ProcessError</A> <B>error</B>()</PRE>
<DL>
<DD><p>Returns the type of error that occurred last.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#state()"><tt>state</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="exitCode()"><!-- --></A><H3>
exitCode</H3>
<PRE>
public final int <B>exitCode</B>()</PRE>
<DL>
<DD><p>Returns the exit code of the last process that finished.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="exitStatus()"><!-- --></A><H3>
exitStatus</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QProcess.ExitStatus.html" title="enum in com.trolltech.qt.core">QProcess.ExitStatus</A> <B>exitStatus</B>()</PRE>
<DL>
<DD><p>Returns the exit status of the last process that finished.</p>
<p>On Windows, if the process was terminated with TerminateProcess() from another application this function will still return <a href="QProcess.html#ExitStatus-enum"><tt>NormalExit</tt></a> unless the exit code is less than 0.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="kill()"><!-- --></A><H3>
kill</H3>
<PRE>
public final void <B>kill</B>()</PRE>
<DL>
<DD><p>Kills the current process, causing it to exit immediately.</p>
<p>On Windows, <a href="QProcess.html#kill()"><tt>kill</tt></a> uses TerminateProcess, and on Unix and Mac OS X, the SIGKILL signal is sent to the process.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#terminate()"><tt>terminate</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="processChannelMode()"><!-- --></A><H3>
processChannelMode</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannelMode.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannelMode</A> <B>processChannelMode</B>()</PRE>
<DL>
<DD><p>Returns the channel mode of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> standard output and standard error channels.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)"><tt>setProcessChannelMode</tt></a>, 
<tt>setReadChannelMode</tt>, 
<a href="QProcess.html#ProcessChannelMode-enum"><tt>ProcessChannelMode</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readAllStandardError()"><!-- --></A><H3>
readAllStandardError</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>readAllStandardError</B>()</PRE>
<DL>
<DD><p>Regardless of the current read channel, this function returns all data available from the standard error of the process as a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#readyReadStandardError()"><tt>readyReadStandardError</tt></a>, 
<a href="QProcess.html#readAllStandardOutput()"><tt>readAllStandardOutput</tt></a>, 
<a href="QProcess.html#readChannel()"><tt>readChannel</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readAllStandardOutput()"><!-- --></A><H3>
readAllStandardOutput</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>readAllStandardOutput</B>()</PRE>
<DL>
<DD><p>Regardless of the current read channel, this function returns all data available from the standard output of the process as a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#readyReadStandardOutput()"><tt>readyReadStandardOutput</tt></a>, 
<a href="QProcess.html#readAllStandardError()"><tt>readAllStandardError</tt></a>, 
<a href="QProcess.html#readChannel()"><tt>readChannel</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readChannel()"><!-- --></A><H3>
readChannel</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A> <B>readChannel</B>()</PRE>
<DL>
<DD><p>Returns the current read channel of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

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

<A NAME="setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)"><!-- --></A><H3>
setProcessChannelMode</H3>
<PRE>
public final void <B>setProcessChannelMode</B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannelMode.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannelMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Sets the channel mode of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> standard output and standard error channels to the <tt>mode</tt> specified. This mode will be used the next time <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a> is called. For example:</p>
<pre>    QProcess builder;
    builder.setProcessChannelMode(QProcess::MergedChannels);
    builder.start(&quot;make&quot;, QStringList() &lt;&lt; &quot;-j2&quot;);

    if (!builder.waitForFinished())
        qDebug() &lt;&lt; &quot;Make failed:&quot; &lt;&lt; builder.errorString();
    else
        qDebug() &lt;&lt; &quot;Make output:&quot; &lt;&lt; builder.readAll();</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#processChannelMode()"><tt>processChannelMode</tt></a>, 
<tt>readChannelMode</tt>, 
<a href="QProcess.html#ProcessChannelMode-enum"><tt>ProcessChannelMode</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setProcessState(com.trolltech.qt.core.QProcess.ProcessState)"><!-- --></A><H3>
setProcessState</H3>
<PRE>
protected final void <B>setProcessState</B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A>&nbsp;state)</PRE>
<DL>
<DD><p>Sets the current state of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to the <tt>state</tt> specified.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#state()"><tt>state</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><!-- --></A><H3>
setReadChannel</H3>
<PRE>
public final void <B>setReadChannel</B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessChannel.html" title="enum in com.trolltech.qt.core">QProcess.ProcessChannel</A>&nbsp;channel)</PRE>
<DL>
<DD><p>Sets the current read channel of the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to the given <tt>channel</tt>. The current input channel is used by the functions <a href="QIODevice.html#read(long)"><tt>read</tt></a>, <a href="QIODevice.html#readAll()"><tt>readAll</tt></a>, <a href="QIODevice.html#readLine(long)"><tt>readLine</tt></a>, and getChar(). It also determines which channel triggers <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> to emit <a href="QProcess.html#readyRead()"><tt>readyRead</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#readChannel()"><tt>readChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
setStandardErrorFile</H3>
<PRE>
public final void <B>setStandardErrorFile</B>(java.lang.String&nbsp;fileName,
                                       <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</PRE>
<DL>
<DD><p>Redirects the process' standard error to the file <tt>fileName</tt>. When the redirection is in place, the standard error read channel is closed: reading from it using <a href="QIODevice.html#read(long)"><tt>read</tt></a> will always fail, as will <a href="QProcess.html#readAllStandardError()"><tt>readAllStandardError</tt></a>. The file will be appended to if <tt>mode</tt> is Append, otherwise, it will be truncated.</p>
<p>See <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a> for more information on how the file is opened.</p>
<p>Note: if <a href="QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)"><tt>setProcessChannelMode</tt></a> was called with an argument of QProcess::MergedChannels, this function has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setStandardInputFile(java.lang.String)"><tt>setStandardInputFile</tt></a>, 
<a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a>, 
<a href="QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><tt>setStandardOutputProcess</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardErrorFile(java.lang.String)"><!-- --></A><H3>
setStandardErrorFile</H3>
<PRE>
public final void <B>setStandardErrorFile</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardErrorFile</tt></a>(<tt>fileName</tt>, Truncate).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
setStandardErrorFile</H3>
<PRE>
public final void <B>setStandardErrorFile</B>(java.lang.String&nbsp;fileName,
                                       <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Redirects the process' standard error to the file <tt>fileName</tt>. When the redirection is in place, the standard error read channel is closed: reading from it using <a href="QIODevice.html#read(long)"><tt>read</tt></a> will always fail, as will <a href="QProcess.html#readAllStandardError()"><tt>readAllStandardError</tt></a>. The file will be appended to if <tt>mode</tt> is Append, otherwise, it will be truncated.</p>
<p>See <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a> for more information on how the file is opened.</p>
<p>Note: if <a href="QProcess.html#setProcessChannelMode(com.trolltech.qt.core.QProcess.ProcessChannelMode)"><tt>setProcessChannelMode</tt></a> was called with an argument of QProcess::MergedChannels, this function has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setStandardInputFile(java.lang.String)"><tt>setStandardInputFile</tt></a>, 
<a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a>, 
<a href="QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><tt>setStandardOutputProcess</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardInputFile(java.lang.String)"><!-- --></A><H3>
setStandardInputFile</H3>
<PRE>
public final void <B>setStandardInputFile</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Redirects the process' standard input to the file indicated by <tt>fileName</tt>. When an input redirection is in place, the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> object will be in read-only mode (calling <a href="QIODevice.html#write(com.trolltech.qt.core.QByteArray)"><tt>write</tt></a> will result in error).</p>
<p>If the file <tt>fileName</tt> does not exist at the moment <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a> is called or is not readable, starting the process will fail.</p>
<p>Calling <a href="QProcess.html#setStandardInputFile(java.lang.String)"><tt>setStandardInputFile</tt></a> after the process has started has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a>, 
<a href="QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardErrorFile</tt></a>, 
<a href="QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><tt>setStandardOutputProcess</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
setStandardOutputFile</H3>
<PRE>
public final void <B>setStandardOutputFile</B>(java.lang.String&nbsp;fileName,
                                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</PRE>
<DL>
<DD><p>Redirects the process' standard output to the file <tt>fileName</tt>. When the redirection is in place, the standard output read channel is closed: reading from it using <a href="QIODevice.html#read(long)"><tt>read</tt></a> will always fail, as will <a href="QProcess.html#readAllStandardOutput()"><tt>readAllStandardOutput</tt></a>.</p>
<p>If the file <tt>fileName</tt> doesn't exist at the moment <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a> is called, it will be created. If it cannot be created, the starting will fail.</p>
<p>If the file exists and <tt>mode</tt> is QIODevice::Truncate, the file will be truncated. Otherwise (if <tt>mode</tt> is QIODevice::Append), the file will be appended to.</p>
<p>Calling <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a> after the process has started has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setStandardInputFile(java.lang.String)"><tt>setStandardInputFile</tt></a>, 
<a href="QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardErrorFile</tt></a>, 
<a href="QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><tt>setStandardOutputProcess</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardOutputFile(java.lang.String)"><!-- --></A><H3>
setStandardOutputFile</H3>
<PRE>
public final void <B>setStandardOutputFile</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a>(<tt>fileName</tt>, Truncate).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
setStandardOutputFile</H3>
<PRE>
public final void <B>setStandardOutputFile</B>(java.lang.String&nbsp;fileName,
                                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Redirects the process' standard output to the file <tt>fileName</tt>. When the redirection is in place, the standard output read channel is closed: reading from it using <a href="QIODevice.html#read(long)"><tt>read</tt></a> will always fail, as will <a href="QProcess.html#readAllStandardOutput()"><tt>readAllStandardOutput</tt></a>.</p>
<p>If the file <tt>fileName</tt> doesn't exist at the moment <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a> is called, it will be created. If it cannot be created, the starting will fail.</p>
<p>If the file exists and <tt>mode</tt> is QIODevice::Truncate, the file will be truncated. Otherwise (if <tt>mode</tt> is QIODevice::Append), the file will be appended to.</p>
<p>Calling <a href="QProcess.html#setStandardOutputFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardOutputFile</tt></a> after the process has started has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setStandardInputFile(java.lang.String)"><tt>setStandardInputFile</tt></a>, 
<a href="QProcess.html#setStandardErrorFile(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setStandardErrorFile</tt></a>, 
<a href="QProcess.html#setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><tt>setStandardOutputProcess</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardOutputProcess(com.trolltech.qt.core.QProcess)"><!-- --></A><H3>
setStandardOutputProcess</H3>
<PRE>
public final void <B>setStandardOutputProcess</B>(<A HREF="../../../../com/trolltech/qt/core/QProcess.html" title="class in com.trolltech.qt.core">QProcess</A>&nbsp;destination)</PRE>
<DL>
<DD><p>Pipes the standard output stream of this process to the <tt>destination</tt> process' standard input.</p>
<p>The following shell command:</p>
<pre>    command1 | command2</pre>
<p>Can be accomplished with QProcesses with the following code:</p>
<pre>    QProcess process1;
    QProcess process2;

    process1.setStandardOutputProcess(process2);

    process1.start(&quot;command1&quot;);
    process2.start(&quot;command2&quot;);</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setWorkingDirectory(java.lang.String)"><!-- --></A><H3>
setWorkingDirectory</H3>
<PRE>
public final void <B>setWorkingDirectory</B>(java.lang.String&nbsp;dir)</PRE>
<DL>
<DD><p>Sets the working directory to <tt>dir</tt>. <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will start the process in this directory. The default behavior is to start the process in the working directory of the calling process.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#workingDirectory()"><tt>workingDirectory</tt></a>, 
<a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>start</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String, java.util.List, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program,
                        java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process, passing the command line arguments in <tt>arguments</tt>. The OpenMode is set to <tt>mode</tt>. <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will immediately enter the Starting state. If the process starts successfully, <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will emit <a href="QProcess.html#started()"><tt>started</tt></a>; otherwise, <a href="QProcess.html#error()"><tt>error</tt></a> will be emitted.</p>
<p>On Windows, arguments that contain spaces are wrapped in quotes.</p>
<p>Note: processes are started asynchronously, which means the <a href="QProcess.html#started()"><tt>started</tt></a> and <a href="QProcess.html#error()"><tt>error</tt></a> signals may be delayed. Call <a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a> to make sure the process has started (or has failed to start) and those signals have been emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>pid</tt>, 
<a href="QProcess.html#started()"><tt>started</tt></a>, 
<a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String, java.util.List)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program,
                        java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</PRE>
<DL>
<DD>Starts the program <tt>program</tt> in a new process, passing the
command line arguments in <tt>arguments</tt>. QProcess will
immediately enter the Starting state. If the process starts
successfully, QProcess will emit started(); otherwise, error() will be
emitted.
<p>
On Windows, arguments that contain spaces are wrapped in quotes.
<p>
Note: processes are started asynchronously, which means the started()
and error() signals may be delayed. Call waitForStarted() to make sure
the process has started (or has failed to start) and those signals
have been emitted.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String, java.util.List, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program,
                        java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process, passing the command line arguments in <tt>arguments</tt>. The OpenMode is set to <tt>mode</tt>. <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will immediately enter the Starting state. If the process starts successfully, <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will emit <a href="QProcess.html#started()"><tt>started</tt></a>; otherwise, <a href="QProcess.html#error()"><tt>error</tt></a> will be emitted.</p>
<p>On Windows, arguments that contain spaces are wrapped in quotes.</p>
<p>Note: processes are started asynchronously, which means the <a href="QProcess.html#started()"><tt>started</tt></a> and <a href="QProcess.html#error()"><tt>error</tt></a> signals may be delayed. Call <a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a> to make sure the process has started (or has failed to start) and those signals have been emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>pid</tt>, 
<a href="QProcess.html#started()"><tt>started</tt></a>, 
<a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program,
                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;mode)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process. <tt>program</tt> 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:</p>
<pre>    QProcess process;
    process.start(&quot;del /s *.txt&quot;);
<span class="comment">    // same as process.start(&quot;del&quot;, QStringList() &lt;&lt; &quot;/s&quot; &lt;&lt; &quot;*.txt&quot;);</span>
    ...</pre>
<p>The <tt>program</tt> string can also contain quotes, to ensure that arguments containing spaces are correctly supplied to the new process. For example:</p>
<pre>    QProcess process;
    process.start(&quot;dir \&quot;My Documents\&quot;&quot;);</pre>
<p>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 <tt>&quot;My Documents&quot;</tt> is used as the argument to the <tt>dir</tt> executable:</p>
<pre>    QProcess process;
    process.start(&quot;dir \&quot;\&quot;\&quot;My Documents\&quot;\&quot;\&quot;&quot;);</pre>
<p>The OpenMode is set to <tt>mode</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program)</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#start(java.lang.String, java.util.List<java.lang.String>, com.trolltech.qt.core.QIODevice.OpenMode)">start</tt></a>(<tt>program</tt>, ReadWrite).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="start(java.lang.String, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
start</H3>
<PRE>
public final void <B>start</B>(java.lang.String&nbsp;program,
                        <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process. <tt>program</tt> 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:</p>
<pre>    QProcess process;
    process.start(&quot;del /s *.txt&quot;);
<span class="comment">    // same as process.start(&quot;del&quot;, QStringList() &lt;&lt; &quot;/s&quot; &lt;&lt; &quot;*.txt&quot;);</span>
    ...</pre>
<p>The <tt>program</tt> string can also contain quotes, to ensure that arguments containing spaces are correctly supplied to the new process. For example:</p>
<pre>    QProcess process;
    process.start(&quot;dir \&quot;My Documents\&quot;&quot;);</pre>
<p>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 <tt>&quot;My Documents&quot;</tt> is used as the argument to the <tt>dir</tt> executable:</p>
<pre>    QProcess process;
    process.start(&quot;dir \&quot;\&quot;\&quot;My Documents\&quot;\&quot;\&quot;&quot;);</pre>
<p>The OpenMode is set to <tt>mode</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="state()"><!-- --></A><H3>
state</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QProcess.ProcessState.html" title="enum in com.trolltech.qt.core">QProcess.ProcessState</A> <B>state</B>()</PRE>
<DL>
<DD><p>Returns the current state of the process.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#stateChanged(com.trolltech.qt.core.QProcess.ProcessState)"><tt>stateChanged</tt></a>, 
<a href="QProcess.html#error()"><tt>error</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="terminate()"><!-- --></A><H3>
terminate</H3>
<PRE>
public final void <B>terminate</B>()</PRE>
<DL>
<DD><p>Attempts to terminate the process.</p>
<p>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).</p>
<p>On Windows, <a href="QProcess.html#terminate()"><tt>terminate</tt></a> 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.</p>
<p>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 <a href="QProcess.html#kill()"><tt>kill</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#kill()"><tt>kill</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForFinished()"><!-- --></A><H3>
waitForFinished</H3>
<PRE>
public final boolean <B>waitForFinished</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#waitForFinished(int)"><tt>waitForFinished</tt></a>(30000).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForFinished(int)"><!-- --></A><H3>
waitForFinished</H3>
<PRE>
public final boolean <B>waitForFinished</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>Blocks until the process has finished and the <a href="QProcess.html#finished(int)"><tt>finished</tt></a> signal has been emitted, or until <tt>msecs</tt> milliseconds have passed.</p>
<p>Returns true if the process finished; otherwise returns false (if the operation timed out or if an error occurred).</p>
<p>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.</p>
<p><b>Warning:</b> Calling this function from the main (GUI) thread might cause your user interface to freeze.</p>
<p>If msecs is -1, this function will not time out.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#finished(int)"><tt>finished</tt></a>, 
<a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a>, 
<a href="QProcess.html#waitForReadyRead(int)"><tt>waitForReadyRead</tt></a>, 
<a href="QProcess.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForStarted()"><!-- --></A><H3>
waitForStarted</H3>
<PRE>
public final boolean <B>waitForStarted</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#waitForStarted(int)"><tt>waitForStarted</tt></a>(30000).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForStarted(int)"><!-- --></A><H3>
waitForStarted</H3>
<PRE>
public final boolean <B>waitForStarted</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>Blocks until the process has started and the <a href="QProcess.html#started()"><tt>started</tt></a> signal has been emitted, or until <tt>msecs</tt> milliseconds have passed.</p>
<p>Returns true if the process was started successfully; otherwise returns false (if the operation timed out or if an error occurred).</p>
<p>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.</p>
<p><b>Warning:</b> Calling this function from the main (GUI) thread might cause your user interface to freeze.</p>
<p>If msecs is -1, this function will not time out.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#started()"><tt>started</tt></a>, 
<a href="QProcess.html#waitForReadyRead(int)"><tt>waitForReadyRead</tt></a>, 
<a href="QProcess.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a>, 
<a href="QProcess.html#waitForFinished(int)"><tt>waitForFinished</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="workingDirectory()"><!-- --></A><H3>
workingDirectory</H3>
<PRE>
public final java.lang.String <B>workingDirectory</B>()</PRE>
<DL>
<DD><p>Returns the working directory that the <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will enter before the program has started.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#setWorkingDirectory(java.lang.String)"><tt>setWorkingDirectory</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atEnd()"><!-- --></A><H3>
atEnd</H3>
<PRE>
public boolean <B>atEnd</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#atEnd()">atEnd</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<a href="QIODevice.html#read(long)"><tt>read</tt></a>, 
<a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesAvailable()"><!-- --></A><H3>
bytesAvailable</H3>
<PRE>
public long <B>bytesAvailable</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesAvailable()">bytesAvailable</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesToWrite()"><tt>bytesToWrite</tt></a>, 
<a href="QIODevice.html#readyRead()"><tt>readyRead</tt></a>, 
<a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesToWrite()"><!-- --></A><H3>
bytesToWrite</H3>
<PRE>
public long <B>bytesToWrite</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesToWrite()">bytesToWrite</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<a href="QIODevice.html#bytesWritten(long)"><tt>bytesWritten</tt></a>, 
<a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="canReadLine()"><!-- --></A><H3>
canReadLine</H3>
<PRE>
public boolean <B>canReadLine</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#canReadLine()">canReadLine</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#readChannel()"><tt>readChannel</tt></a>, 
<a href="QProcess.html#setReadChannel(com.trolltech.qt.core.QProcess.ProcessChannel)"><tt>setReadChannel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD><p>Closes all communication with the process. After calling this function, <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> will no longer emit <a href="QProcess.html#readyRead()"><tt>readyRead</tt></a>, and data can no longer be read or written.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setOpenMode</tt></a>, 
<tt>OpenMode</tt></DL>
</DD>
</DL>
<HR>

<A NAME="isSequential()"><!-- --></A><H3>
isSequential</H3>
<PRE>
public boolean <B>isSequential</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isSequential()">isSequential</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesAvailable()"><tt>bytesAvailable</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readData(byte[])"><!-- --></A><H3>
readData</H3>
<PRE>
protected int <B>readData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readData(byte[])">readData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setupChildProcess()"><!-- --></A><H3>
setupChildProcess</H3>
<PRE>
protected void <B>setupChildProcess</B>()</PRE>
<DL>
<DD><p>This function is called in the child process context just before the program is executed on Unix or Mac OS X (i.e&#x2e;, after <i>fork()</i>, but before <i>execve()</i>). Reimplement this function to do last minute initialization of the child process. Example:</p>
<pre>    class SandboxProcess : public QProcess
    {
        ...
     protected:
         void setupChildProcess();
        ...
    };

    void SandboxProcess::setupChildProcess()
    {
        <span class="comment">// Drop all privileges in the child process, and enter</span>
        <span class="comment">// a chroot jail.</span>
    #if defined Q_OS_UNIX
        ::setgroups(0, 0);
        ::chroot(&quot;/etc/safe&quot;);
        ::chdir(&quot;/&quot;);
        ::setgid(safeGid);
        ::setuid(safeUid);
        ::umask(0);
    #endif
    }</pre>
<p><b>Warning:</b> This function is called by <a href="QProcess.html#QProcess(com.trolltech.qt.core.QObject)"><tt>QProcess</tt></a> on Unix and Mac OS X only. On Windows, it is not called.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForBytesWritten(int)"><!-- --></A><H3>
waitForBytesWritten</H3>
<PRE>
public boolean <B>waitForBytesWritten</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForBytesWritten(int)">waitForBytesWritten</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#waitForReadyRead(int)"><tt>waitForReadyRead</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForReadyRead(int)"><!-- --></A><H3>
waitForReadyRead</H3>
<PRE>
public boolean <B>waitForReadyRead</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForReadyRead(int)">waitForReadyRead</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="writeData(byte[])"><!-- --></A><H3>
writeData</H3>
<PRE>
protected int <B>writeData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QProcess.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#writeData(byte[])">writeData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="execute(java.lang.String)"><!-- --></A><H3>
execute</H3>
<PRE>
public static int <B>execute</B>(java.lang.String&nbsp;program)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process. <tt>program</tt> is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="execute(java.lang.String, java.util.List)"><!-- --></A><H3>
execute</H3>
<PRE>
public static int <B>execute</B>(java.lang.String&nbsp;program,
                          java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> 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.</p>
<p>The environment and working directory are inherited by the calling process.</p>
<p>On Windows, arguments that contain spaces are wrapped in quotes.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="startDetached(java.lang.String, java.util.List)"><!-- --></A><H3>
startDetached</H3>
<PRE>
public static boolean <B>startDetached</B>(java.lang.String&nbsp;program,
                                    java.util.List&lt;java.lang.String&gt;&nbsp;arguments)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> 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.</p>
<p>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.</p>
<p>On Windows, arguments that contain spaces are wrapped in quotes.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="startDetached(java.lang.String)"><!-- --></A><H3>
startDetached</H3>
<PRE>
public static boolean <B>startDetached</B>(java.lang.String&nbsp;program)</PRE>
<DL>
<DD><p>Starts the program <tt>program</tt> in a new process. <tt>program</tt> is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces.</p>
<p>The <tt>program</tt> string can also contain quotes, to ensure that arguments containing spaces are correctly supplied to the new process.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="systemEnvironment()"><!-- --></A><H3>
systemEnvironment</H3>
<PRE>
public static java.util.List&lt;java.lang.String&gt; <B>systemEnvironment</B>()</PRE>
<DL>
<DD><p>Returns the environment of the calling process as a list of key=value pairs. Example:</p>
<pre>    QStringList environment = QProcess::systemEnvironment();
<span class="comment">    // environment = {&quot;PATH=/usr/bin:/usr/local/bin&quot;,</span>
                      &quot;USER=greg&quot;, &quot;HOME=/home/greg&quot;}</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QProcess.html#environment()"><tt>environment</tt></a>, 
<a href="QProcess.html#setEnvironment(java.util.List<java.lang.String>)"><tt>setEnvironment</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QProcess.html" title="class in com.trolltech.qt.core">QProcess</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QProcess instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="startDetached(java.lang.String, java.util.List, java.lang.String)"><!-- --></A><H3>
startDetached</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QProcess.DetachedProcessInfo.html" title="class in com.trolltech.qt.core">QProcess.DetachedProcessInfo</A> <B>startDetached</B>(java.lang.String&nbsp;program,
                                                         java.util.List&lt;java.lang.String&gt;&nbsp;arguments,
                                                         java.lang.String&nbsp;workingDirectory)</PRE>
<DL>
<DD>Starts the program <tt>program</tt> with the arguments <tt>arguments</tt> 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.
<p>
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.
<p>
On Windows, arguments that contain spaces are wrapped in quotes.
<p>
The process will be started in the directory <tt>workingDirectory</tt>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QProcess.DetachedProcessInfo.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QProcess.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QProcess.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>