<HTML> <HEAD> <TITLE>class KShellCompletion</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 KShellCompletion</h1> </TD> <TD valign="top" align="right" colspan="1">Shell-like completion of file names. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kshellcompletion_h.html">kshellcompletion.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="KURLCompletion.html">KURLCompletion</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KShellCompletion.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">KShellCompletion</A></b> () </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref2">makeCompletion</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&) </LI> </ul><h4>Protected Methods</h4><ul><LI>void <b><A HREF="#ref3">postProcessMatch</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> *match ) </LI> <LI>void <b><A HREF="#ref4">postProcessMatches</A></b> ( <A HREF="#QStringList">QStringList</A> *matches ) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> This class does shell-like completion of file names. A string passed to makeCompletion() will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument. </p> <p></p> <A NAME="KShellCompletion"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KShellCompletion</strong> () <br></td><td align="right"><h3><strong>KShellCompletion</strong></h3></td></tr></table><p></p><A NAME="makeCompletion"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>makeCompletion</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&) <br></td><td align="right"><h3><strong>makeCompletion</strong></h3></td></tr></table><p></p><p> Find completions to the given text The first match is returned and emitted in the signal match() </p> <p>Reimplemented from <A HREF="KURLCompletion.html#makeCompletion">KURLCompletion</A>.</p> <A NAME="postProcessMatch"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>postProcessMatch</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> *match ) <br></td><td align="right"><h3><strong>postProcessMatch</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>Reimplemented from <A HREF="KURLCompletion.html#postProcessMatch">KURLCompletion</A>.</p> <A NAME="postProcessMatches"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>postProcessMatches</strong> ( <A HREF="#QStringList">QStringList</A> *matches ) <br></td><td align="right"><h3><strong>postProcessMatches</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>Reimplemented from <A HREF="KURLCompletion.html#postProcessMatches">KURLCompletion</A>.</p> <HR><UL><LI><i>Version</i>: $Id: </LI><LI><i>Author</i>: David Smith <dsmith@algonet.se> </LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:14 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>