ubit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ubit::UFileInfo Class Reference

file info. More...

#include <ufile.hpp>

Inheritance diagram for ubit::UFileInfo:
ubit::UFileMode

Public Types

enum  PrefixType { LOCAL, SSH, HTTP, FTP }
 

Public Member Functions

 UFileInfo (const UStr &path)
 sets fileinfo data for this path and stores path as a name.
 
 UFileInfo (const char *fullpath, const char *fname)
 sets fileinfo data for fullpath and stores fname as a name.
 
void setPath (const UStr &path)
 resets fileinfo data for this path.
 
const UStrgetFileName () const
 returns the file name (without the path).
 
unsigned long getSize () const
 
unsigned long getModTime () const
 
UImagetIconImage () const
 return an image that characterizes this file type. More...
 
UImagetMiniIconImage () const
 return an mini image that characterizes this file type. More...
 
void getInfoString (UStr &str) const
 copies infos in str.
 
- Public Member Functions inherited from ubit::UFileMode
 UFileMode (const UStr &pathname)
 
bool isValid () const
 
bool isDir () const
 
bool isFile () const
 
bool isLink () const
 
bool isExec () const
 
int getMode () const
 

Static Public Member Functions

static int parsePrefix (const UStr &path)
 returns the PrefixType.
 

Protected Member Functions

void stat (const char *path)
 

Protected Attributes

unsigned long size
 
unsigned long modtime
 
uptr< UStrpname
 
- Protected Attributes inherited from ubit::UFileMode
int mode
 

Friends

class UFileDir
 
class UFilebox
 

Additional Inherited Members

- Static Public Attributes inherited from ubit::UFileMode
static const int DIR = S_IFDIR
 
static const int FILE = S_IFREG
 
static const int LINK = S_IFLNK
 modes
 

Detailed Description

file info.

Member Function Documentation

§ getIconImage()

UIma & ubit::UFileInfo::getIconImage ( ) const

return an image that characterizes this file type.

the returned image is shared and can't be deleted.

§ getMiniIconImage()

UIma & ubit::UFileInfo::getMiniIconImage ( ) const

return an mini image that characterizes this file type.

the returned image is shared and can't be deleted.


The documentation for this class was generated from the following files: