#include <ufile.hpp>
Inheritance diagram for ubit::UFileInfo:
Public Member Functions | |
UFileInfo (const char *name, int mode, int type, UTime time, unsigned long size) | |
creates a UFileInfo with these arguments. | |
UFileInfo (const char *path) | |
UFileInfo (const UStr &path) | |
creates and sets a UFileInfo by performing a stat on this path. | |
void | getInfo (UStr &mode, UStr &time, UStr &size) |
void | setInfo (const char *path) |
void | setInfo (const UStr &path) |
inits a UFileInfo by performing a stat() on this path. | |
const UStr * | getName () const |
UStr * | name () |
void | setName (UStr *n) |
name of this file entry. | |
UTime | getTime () const |
void | setTime (UTime t) |
unsigned long | getSize () const |
void | setSize (unsigned long s) |
UIma * | getSmallIcon () const |
UIma * | getLargeIcon () const |
return a standard image that characterizes this file type. | |
Protected Attributes | |
UTime | time |
unsigned long | size |
uptr< UStr > | pname |
Friends | |
class | UDir |
class | UIconbox |
UIma * ubit::UFileInfo::getLargeIcon | ( | ) | const |
return a standard image that characterizes this file type.
the returned image is shared and can't be deleted.
void ubit::UFileInfo::setName | ( | UStr * | n | ) |
name of this file entry.
this string can be shared but can't be deleted.