<!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:37 CEST 2007 --> <TITLE> QDirIterator </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.core.QDirIterator class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QDirIterator"; } </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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/core/QDir.SortFlags.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlag.html" title="enum 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/QDirIterator.html" target="_top"><B>FRAMES</B></A> <A HREF="QDirIterator.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 QDirIterator</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 "><B>com.trolltech.qt.core.QDirIterator</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>QDirIterator</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL> </PRE> <P> <p>The <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> class provides an iterator for directory entrylists.</p> <p>You can use <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> to navigate entries of a directory one at a time. It is similar to QDir::entryList() and QDir::entryInfoList(), but because it lists entries one at a time instead of all at once, it scales better and is more suitable for large directories. It also supports listing directory contents recursively, and following symbolic links. Unlike QDir::entryList(), <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> does not support sorting.</p> <p>The <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> constructor takes a <a href="QDir.html"><tt>QDir</tt></a> or a directory as argument. After construction, the iterator is located before the first directory entry. Here's how to iterate over all the entries sequentially:</p> <pre> QDirIterator it("/etc", QDirIterator::Subdirectories); while (it.hasNext()) { qDebug() << it.next(); <span class="comment">// /etc/.</span> <span class="comment">// /etc/..</span> <span class="comment">// /etc/X11</span> <span class="comment">// /etc/X11/fs</span> <span class="comment">// ...</span> }</pre> <p>The <a href="QDirIterator.html#next()"><tt>next</tt></a> function returns the path to the next directory entry and advances the iterator. You can also call <a href="QDirIterator.html#filePath()"><tt>filePath</tt></a> to get the current file path without advancing the iterator. The <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a> function returns only the name of the file, similar to how QDir::entryList() works. You can also call <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a> to get a <a href="QFileInfo.html"><tt>QFileInfo</tt></a> for the current entry.</p> <p>Unlike Qt's container iterators, <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> is uni-directional (i.e., you cannot iterate directories in reverse order) and does not allow random access.</p> <p><a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> works with all supported file engines, and is implemented using <a href="QAbstractFileEngineIterator.html"><tt>QAbstractFileEngineIterator</tt></a>.</p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QDir.html"><tt>QDir</tt></a>, <tt>QDir::entryList</tt>, <a href="QAbstractFileEngineIterator.html"><tt>QAbstractFileEngineIterator</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 class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlag.html" title="enum in com.trolltech.qt.core">QDirIterator.IteratorFlag</A></B></CODE> <BR> This enum describes flags that you can combine to configure the behavior of <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A></B></CODE> <BR> This QFlag class provides flags for the int enum.</TD> </TR> </TABLE> <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><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<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>></CODE></TD> </TR> </TABLE> <!-- ======== 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/QDirIterator.html#QDirIterator(com.trolltech.qt.core.QDir)">QDirIterator</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core">QDir</A> dir)</CODE> <BR> Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>dir</tt>, NoIteratorFlags).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(com.trolltech.qt.core.QDir, com.trolltech.qt.core.QDirIterator.IteratorFlags)">QDirIterator</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core">QDir</A> dir, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</CODE> <BR> Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>dir</tt>'s entrylist, using <tt>dir</tt>'s name filters and regular filters.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String)">QDirIterator</A></B>(java.lang.String path)</CODE> <BR> Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, NoIteratorFlags).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, java.util.List)">QDirIterator</A></B>(java.lang.String path, java.util.List<java.lang.String> nameFilters)</CODE> <BR> Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>nameFilters</tt>, QDir::NoFilter, NoIteratorFlags).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, java.util.List, com.trolltech.qt.core.QDir.Filters)">QDirIterator</A></B>(java.lang.String path, java.util.List<java.lang.String> nameFilters, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filters)</CODE> <BR> Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>nameFilters</tt>, <tt>filters</tt>, NoIteratorFlags).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, java.util.List, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)">QDirIterator</A></B>(java.lang.String path, java.util.List<java.lang.String> nameFilters, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filters, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</CODE> <BR> Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>, using <tt>nameFilters</tt> and <tt>filters</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters)">QDirIterator</A></B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filter)</CODE> <BR> Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>filter</tt>, NoIteratorFlags).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)">QDirIterator</A></B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filter, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</CODE> <BR> Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>, with no name filtering and <tt>filter</tt> for entry filtering.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDirIterator.IteratorFlags)">QDirIterator</A></B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</CODE> <BR> Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>.</TD> </TR> </TABLE> <!-- ========== 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> <A HREF="../../../../com/trolltech/qt/core/QFileInfo.html" title="class in com.trolltech.qt.core">QFileInfo</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#fileInfo()">fileInfo</A></B>()</CODE> <BR> Returns a <a href="QFileInfo.html"><tt>QFileInfo</tt></a> for the current directory entry.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#fileName()">fileName</A></B>()</CODE> <BR> Returns the file name for the current directory entry, without the path prepended.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#filePath()">filePath</A></B>()</CODE> <BR> Returns the full file path for the current directory entry.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/core/QDirIterator.html" title="class in com.trolltech.qt.core">QDirIterator</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QDirIterator instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#hasNext()">hasNext</A></B>()</CODE> <BR> Returns true if there is at least one more entry in the directory; otherwise, false is returned.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#next()">next</A></B>()</CODE> <BR> Advances the iterator to the next entry, and returns the file path of this new entry.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDirIterator.html#path()">path</A></B>()</CODE> <BR> Returns the base directory of the iterator.</TD> </TR> </TABLE> <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> <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#blockSignals(boolean)">blockSignals</A>, <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#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD> </TR> </TABLE> <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> <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> <P> <!-- ========= 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="QDirIterator(com.trolltech.qt.core.QDir)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core">QDir</A> dir)</PRE> <DL> <DD><p>Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>dir</tt>, NoIteratorFlags). <P> </DL> <HR> <A NAME="QDirIterator(com.trolltech.qt.core.QDir, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core">QDir</A> dir, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</PRE> <DL> <DD><p>Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>dir</tt>'s entrylist, using <tt>dir</tt>'s name filters and regular filters. You can pass options via <tt>flags</tt> to decide how the directory should be iterated.</p> <p>By default, <tt>flags</tt> is <a href="QDirIterator.html#IteratorFlag-enum"><tt>NoIteratorFlags</tt></a>, which provides the same behavior as in QDir::entryList().</p> <p>The sorting in <tt>dir</tt> is ignored.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a>, <a href="QDirIterator.html#next()"><tt>next</tt></a>, <tt>IteratorFlags</tt></DL> </DL> <HR> <A NAME="QDirIterator(java.lang.String)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path)</PRE> <DL> <DD><p>Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, NoIteratorFlags). <P> </DL> <HR> <A NAME="QDirIterator(java.lang.String, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</PRE> <DL> <DD><p>Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>. You can pass options via <tt>flags</tt> to decide how the directory should be iterated.</p> <p>By default, <tt>flags</tt> is <a href="QDirIterator.html#IteratorFlag-enum"><tt>NoIteratorFlags</tt></a>, which provides the same behavior as in QDir::entryList().</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a>, <a href="QDirIterator.html#next()"><tt>next</tt></a>, <tt>IteratorFlags</tt></DL> </DL> <HR> <A NAME="QDirIterator(java.lang.String, java.util.List, com.trolltech.qt.core.QDir.Filters)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, java.util.List<java.lang.String> nameFilters, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filters)</PRE> <DL> <DD><p>Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>nameFilters</tt>, <tt>filters</tt>, NoIteratorFlags). <P> </DL> <HR> <A NAME="QDirIterator(java.lang.String, java.util.List)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, java.util.List<java.lang.String> nameFilters)</PRE> <DL> <DD><p>Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>nameFilters</tt>, QDir::NoFilter, NoIteratorFlags). <P> </DL> <HR> <A NAME="QDirIterator(java.lang.String, java.util.List, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, java.util.List<java.lang.String> nameFilters, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filters, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</PRE> <DL> <DD><p>Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>, using <tt>nameFilters</tt> and <tt>filters</tt>. You can pass options via <tt>flags</tt> to decide how the directory should be iterated.</p> <p>By default, <tt>flags</tt> is <a href="QDirIterator.html#IteratorFlag-enum"><tt>NoIteratorFlags</tt></a>, which provides the same behavior as QDir::entryList().</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a>, <a href="QDirIterator.html#next()"><tt>next</tt></a>, <tt>IteratorFlags</tt></DL> </DL> <HR> <A NAME="QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filter)</PRE> <DL> <DD><p>Equivalent to <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a>(<tt>path</tt>, <tt>filter</tt>, NoIteratorFlags). <P> </DL> <HR> <A NAME="QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><!-- --></A><H3> QDirIterator</H3> <PRE> public <B>QDirIterator</B>(java.lang.String path, <A HREF="../../../../com/trolltech/qt/core/QDir.Filters.html" title="class in com.trolltech.qt.core">QDir.Filters</A> filter, <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlags.html" title="class in com.trolltech.qt.core">QDirIterator.IteratorFlags</A> flags)</PRE> <DL> <DD><p>Constructs a <a href="QDirIterator.html#QDirIterator(java.lang.String, com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDirIterator.IteratorFlags)"><tt>QDirIterator</tt></a> that can iterate over <tt>path</tt>, with no name filtering and <tt>filter</tt> for entry filtering. You can pass options via <tt>flags</tt> to decide how the directory should be iterated.</p> <p>By default, <tt>filter</tt> is QDir::NoFilter, and <tt>flags</tt> is <a href="QDirIterator.html#IteratorFlag-enum"><tt>NoIteratorFlags</tt></a>, which provides the same behavior as in QDir::entryList().</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a>, <a href="QDirIterator.html#next()"><tt>next</tt></a>, <tt>IteratorFlags</tt></DL> </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="fileInfo()"><!-- --></A><H3> fileInfo</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QFileInfo.html" title="class in com.trolltech.qt.core">QFileInfo</A> <B>fileInfo</B>()</PRE> <DL> <DD><p>Returns a <a href="QFileInfo.html"><tt>QFileInfo</tt></a> for the current directory entry. If the current entry is invalid (i.e., isValid() returns false), a null <a href="QFileInfo.html"><tt>QFileInfo</tt></a> is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#filePath()"><tt>filePath</tt></a>, <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a></DL> </DD> </DL> <HR> <A NAME="fileName()"><!-- --></A><H3> fileName</H3> <PRE> public final java.lang.String <B>fileName</B>()</PRE> <DL> <DD><p>Returns the file name for the current directory entry, without the path prepended. If the current entry is invalid (i.e., isValid() returns false), a null <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> is returned.</p> <p>This function is provided for the convenience when iterating single directories. For recursive iteration, you should call <a href="QDirIterator.html#filePath()"><tt>filePath</tt></a> or <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a> instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#filePath()"><tt>filePath</tt></a>, <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a></DL> </DD> </DL> <HR> <A NAME="filePath()"><!-- --></A><H3> filePath</H3> <PRE> public final java.lang.String <B>filePath</B>()</PRE> <DL> <DD><p>Returns the full file path for the current directory entry. If the current entry is invalid (i.e., isValid() returns false), a null <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a>, <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a></DL> </DD> </DL> <HR> <A NAME="hasNext()"><!-- --></A><H3> hasNext</H3> <PRE> public final boolean <B>hasNext</B>()</PRE> <DL> <DD><p>Returns true if there is at least one more entry in the directory; otherwise, false is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#next()"><tt>next</tt></a>, <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a>, <a href="QDirIterator.html#filePath()"><tt>filePath</tt></a>, <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a></DL> </DD> </DL> <HR> <A NAME="next()"><!-- --></A><H3> next</H3> <PRE> public final java.lang.String <B>next</B>()</PRE> <DL> <DD><p>Advances the iterator to the next entry, and returns the file path of this new entry. If <a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a> returns false, this function does nothing, and returns a null <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</p> <p>You can call <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a> or <a href="QDirIterator.html#filePath()"><tt>filePath</tt></a> to get the current entry file name or path, or <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a> to get a <a href="QFileInfo.html"><tt>QFileInfo</tt></a> for the current entry.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QDirIterator.html#hasNext()"><tt>hasNext</tt></a>, <a href="QDirIterator.html#fileName()"><tt>fileName</tt></a>, <a href="QDirIterator.html#filePath()"><tt>filePath</tt></a>, <a href="QDirIterator.html#fileInfo()"><tt>fileInfo</tt></a></DL> </DD> </DL> <HR> <A NAME="path()"><!-- --></A><H3> path</H3> <PRE> public final java.lang.String <B>path</B>()</PRE> <DL> <DD><p>Returns the base directory of the iterator.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/core/QDirIterator.html" title="class in com.trolltech.qt.core">QDirIterator</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QDirIterator 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> <!-- ========= 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/core/QDir.SortFlags.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/core/QDirIterator.IteratorFlag.html" title="enum 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/QDirIterator.html" target="_top"><B>FRAMES</B></A> <A HREF="QDirIterator.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>