class KFileInfo
|
Provides information about a file that has been examined
with KDir. More... |
|
|
Public Members
- KFileInfo (const KDirEntry &)
- KFileInfo (const QFileInfo &)
- KFileInfo (const char *dir, const char *name = "")
- ~KFileInfo ()
- KFileInfo & operator= (const KFileInfo &)
- bool isDir () const
- bool isFile () const
- bool isSymLink () const
- QString absURL () const
- QString baseURL ()
- QString extension ()
- const char * fileName () const
- QString filePath ()
- const char * date () const
- const char * access () const
- const char * owner () const
- const char * group () const
- uint size () const
- bool permission (uint permissionSpec)
- bool isReadable () const
- static QString dateTime (time_t secsSince1Jan1970UTC)
Protected Members
- void parsePermissions (const char *perms)
- void parsePermissions (uint perm)
Detailed Description
Provides information about a file that has been examined
with KDir.
Construct a KFileInfo object from a KDirEntry.
Constructs a KFileInfo object from a QFileInfo.
This is only useful for local files
KFileInfo (const char *dir, const char *name = "")
|
Constructs a "little" KFileInfo (just for local files)
Destroy the KFileInfo object.
Copy a KFileInfo.
[const]
Returns true if this file is a directory.
[const]
Returns the name of the file
Note: If this object does not refer to a real file
(broken symlink), it will return 0
[const]
Returns the group of the file.
[const]
Returns the access permissions for the file as a string.
[const]
Returns the owner of the file.
[const]
Returns the group of the file.
[const]
Returns the size of the file.
bool permission (uint permissionSpec)
|
Returns true if the specified permission flag is set.
- Version: $Id: kfileinfo.h,v 1.8 1998/11/15 23:42:56 ettrich Exp $
- Author: rich@kde.org
- Generated: prospector@porky.devel.redhat.com on Fri Feb 23 19:53:07 200.