import"sbIDirectoryEnumerator.idl";
Public Member Functions | |
| void | enumerate (in nsIFile aDirectory) |
| Enumerate the directory specified by aDirectory. More... | |
| boolean | hasMoreElements () |
| Return true if more elements are available to enumerate. More... | |
| nsIFile | getNext () |
| Return the next file in the enumeration. More... | |
Public Attributes | |
| attribute unsigned long | maxDepth |
| Maximum depth to which to enumerate. A depth of 0 will enumerate to an unlimited depth. A depth of 1 will enumerate only the base directory (same as getDirectoryEntries). More... | |
| attribute boolean | directoriesOnly |
| If true, only return directories in getNext. More... | |
| attribute boolean | filesOnly |
| If true, only return files in getNext. More... | |
This interface provides support for enumerating directory contents. The order of the enumeration is not determinate.
"@songbirdnest.com/Songbird/DirectoryEnumerator;1" Use create instance with this component.
XXXeps should add depth/breadth first support.
Definition at line 47 of file sbIDirectoryEnumerator.idl.
| void sbIDirectoryEnumerator::enumerate | ( | in nsIFile | aDirectory | ) |
Enumerate the directory specified by aDirectory.
| aDirectory | Directory to enumerate. |
| nsIFile sbIDirectoryEnumerator::getNext | ( | ) |
Return the next file in the enumeration.
| boolean sbIDirectoryEnumerator::hasMoreElements | ( | ) |
Return true if more elements are available to enumerate.
| attribute boolean sbIDirectoryEnumerator::directoriesOnly |
If true, only return directories in getNext.
Definition at line 62 of file sbIDirectoryEnumerator.idl.
| attribute boolean sbIDirectoryEnumerator::filesOnly |
If true, only return files in getNext.
Definition at line 69 of file sbIDirectoryEnumerator.idl.
| attribute unsigned long sbIDirectoryEnumerator::maxDepth |
Maximum depth to which to enumerate. A depth of 0 will enumerate to an unlimited depth. A depth of 1 will enumerate only the base directory (same as getDirectoryEntries).
Definition at line 55 of file sbIDirectoryEnumerator.idl.