MoSync 3.3
FileLister Class Reference

Lists the contents of a device's file system. It can be reused for multiple listings. More...

#include <MAUtil/FileLister.h>

List of all members.

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 ()

Detailed Description

Lists the contents of a device's file system. It can be reused for multiple listings.

See also:
maFileListStart()

Constructor & Destructor Documentation

FileLister::FileLister ( ) [inline]

References close().


Member Function Documentation

int FileLister::start ( const char *  dir,
const char *  filter = "*",
int  sorting = MA_FL_SORT_NONE 
)
See also:
maFileListStart() Closes the active list, if any. Returns < 0 on error.

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.

See also:
maFileListNext()
See also:
maFileListClose()

Referenced by ~FileLister().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines