<HTML> <HEAD> <TITLE>class KProcIO</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KProcIO</h1> </TD> <TD valign="top" align="right" colspan="1"></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kprocio_h.html">kprocio.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="KProcess.html">KProcess</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KProcIO.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">KProcIO</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qtextcodec.html">QTextCodec</A> *codec = 0 ) </LI> <LI>bool <b><A HREF="#ref2">start</A></b> (RunMode runmode = NotifyOnExit) </LI> <LI>virtual bool <b><A HREF="#ref3">writeStdin</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool AppendNewLine=TRUE) </LI> <LI>bool <b><A HREF="#ref4">fputs</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool AppendNewLine=TRUE) </LI> <LI>virtual int <b><A HREF="#ref5">readln</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool autoAck=FALSE) </LI> <LI>int <b><A HREF="#ref6">fgets</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool autoAck=FALSE) </LI> <LI>virtual void <b><A HREF="#ref7">resetAll</A></b> () </LI> <LI>virtual void <b><A HREF="#ref8">ackRead</A></b> () </LI> <LI>void <b><A HREF="#ref9">enableReadSignals</A></b> (bool enable) </LI> </ul><h4>Signals</h4><ul><LI>void <b><A HREF="#ref10">readReady</A></b> (<A HREF="KProcIO.html">KProcIO</A> *) </LI> </ul><h4>Protected Methods</h4><ul><LI>void <b><A HREF="#ref18">controlledEmission</A></b> () </LI> </ul><h4>Protected Slots</h4><ul><LI>void <b><A HREF="#ref19">received</A></b> (<A HREF="KProcess.html">KProcess</A> *proc, char *buffer, int buflen) </LI> <LI>void <b><A HREF="#ref20">sent</A></b> (<A HREF="KProcess.html">KProcess</A> *) </LI> </ul><h4>Protected Members</h4><ul><LI>QStrList <b><A HREF="#ref11">qlist</A></b></LI> <LI>QCString <b><A HREF="#ref12">recvbuffer</A></b></LI> <LI>QTextCodec *<b><A HREF="#ref13">codec</A></b></LI> <LI>int <b><A HREF="#ref14">rbi</A></b></LI> <LI>bool <b><A HREF="#ref15">needreadsignal</A></b></LI> <LI>bool <b><A HREF="#ref16">readsignalon</A></b></LI> <LI>bool <b><A HREF="#ref17">writeready</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><A NAME="KProcIO"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KProcIO</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qtextcodec.html">QTextCodec</A> *codec = 0 ) <br></td><td align="right"><h3><strong>KProcIO</strong></h3></td></tr></table><p></p><A NAME="start"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>start</strong> (RunMode runmode = NotifyOnExit) <br></td><td align="right"><h3><strong>start</strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="KProcess.html#start">KProcess</A>.</p> <A NAME="writeStdin"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <strong>writeStdin</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool AppendNewLine=TRUE) <br></td><td align="right"><h3><strong>writeStdin</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> The buffer is zero terminated. A deep copy is made of the buffer, so you don't need to bother with that. A newline ( '\n' ) is appended unless you specify FALSE as the second parameter. FALSE is returned on an error, or else TRUE is. </p> <p>Reimplemented from <A HREF="KProcess.html#writeStdin">KProcess</A>.</p> <A NAME="fputs"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>fputs</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool AppendNewLine=TRUE) <br></td><td align="right"><h3><strong>fputs</strong></h3></td></tr></table><p></p><A NAME="readln"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int <strong>readln</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool autoAck=FALSE) <br></td><td align="right"><h3><strong>readln</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> readln() reads up to '\n' (or max characters) and returns the number of characters placed in buffer. Zero is returned if no more data is available. </p> <p> Use readln() in response to a readReady() signal. You may use it multiple times if more than one line of data is available. Be sure to use ackRead() when you have finished processing the readReady() signal. This informs KProcIO that you are ready for another readReady() signal. </p> <p> readln() never blocks. </p> <p> autoAck==TRUE makes these functions call ackRead() for you. </p> <A NAME="fgets"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>fgets</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &line, bool autoAck=FALSE) <br></td><td align="right"><h3><strong>fgets</strong></h3></td></tr></table><p></p><A NAME="resetAll"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>resetAll</strong> () <br></td><td align="right"><h3><strong>resetAll</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reset the class. Doesn't kill the process. </p> <A NAME="ackRead"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>ackRead</strong> () <br></td><td align="right"><h3><strong>ackRead</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Call this after you have finished processing a readReady() signal. This call need not be made in the slot that was signalled by readReady(). You won't receive any more readReady() signals until you acknowledge with ackRead(). This prevents your slot from being reentered while you are still processesing the current data. If this doesn't matter, then call ackRead() right away in your readReady()-processing slot. </p> <A NAME="enableReadSignals"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>enableReadSignals</strong> (bool enable) <br></td><td align="right"><h3><strong>enableReadSignals</strong></h3></td></tr></table><p></p><p> Turns readReady() signals on and off. You can turn this off at will and not worry about losing any data. (as long as you turn it back on at some point...) </p> <A NAME="readReady"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>readReady</strong> (<A HREF="KProcIO.html">KProcIO</A> *) <br></td><td align="right"><h3><strong>readReady</strong></h3></td></tr></table><p> <small>[signal]</small></p><A NAME="qlist"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstrlist.html">QStrList</A> <strong>qlist</strong> </td><td align="right"><h3><strong>qlist</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="recvbuffer"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> <strong>recvbuffer</strong> </td><td align="right"><h3><strong>recvbuffer</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="codec"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qtextcodec.html">QTextCodec</A> * <strong>codec</strong> </td><td align="right"><h3><strong>codec</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="rbi"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>rbi</strong> </td><td align="right"><h3><strong>rbi</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="needreadsignal"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>needreadsignal</strong> </td><td align="right"><h3><strong>needreadsignal</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="readsignalon"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>readsignalon</strong> </td><td align="right"><h3><strong>readsignalon</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="writeready"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>writeready</strong> </td><td align="right"><h3><strong>writeready</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="controlledEmission"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>controlledEmission</strong> () <br></td><td align="right"><h3><strong>controlledEmission</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="received"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>received</strong> (<A HREF="KProcess.html">KProcess</A> *proc, char *buffer, int buflen) <br></td><td align="right"><h3><strong>received</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="sent"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>sent</strong> (<A HREF="KProcess.html">KProcess</A> *) <br></td><td align="right"><h3><strong>sent</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:08:56 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>