ubit::UFileInfo Struct Reference

file info. More...

#include <ufile.hpp>

Inheritance diagram for ubit::UFileInfo:

ubit::UFileMode ubit::UFileType List of all members.

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 UStrgetName () const
UStrname ()
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)
UImagetSmallIcon () const
UImagetLargeIcon () const
 return a standard image that characterizes this file type.

Protected Attributes

UTime time
unsigned long size
uptr< UStrpname


class UDir
class UIconbox

Detailed Description

file info.

Member Function Documentation

void ubit::UFileInfo::getInfo ( UStr mode,
UStr time,
UStr size 

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.

The documentation for this struct was generated from the following files:
Generated on Mon Jan 29 00:20:50 2007 for Ubit by  doxygen 1.4.7