|
MoSync 3.3
|
Lists the contents of a device's file system. It can be reused for multiple listings. More...
#include <MAUtil/FileLister.h>
Public Member Functions | |
| FileLister () | |
| ~FileLister () | |
| int | start (const char *dir, const char *filter="*", int sorting=MA_FL_SORT_NONE) |
| int | next (MAUtil::String &dst) |
| void | close () |
Lists the contents of a device's file system. It can be reused for multiple listings.
| FileLister::FileLister | ( | ) | [inline] |
| FileLister::~FileLister | ( | ) | [inline] |
References close().
| int FileLister::start | ( | const char * | dir, |
| const char * | filter = "*", |
||
| int | sorting = MA_FL_SORT_NONE |
||
| ) |
| int FileLister::next | ( | MAUtil::String & | dst | ) |
Writes the name of the next file in the list to dst. dst's old contents are overwritten. Returns the length of the name, 0 if there are no more files, or < 0 on error. On error, dst is not modified.
| void FileLister::close | ( | ) |
Referenced by ~FileLister().