class KFileViewItem
|
Provides information about a file that has been examined
with KDir. More... |
|
|
Public Methods
- KFileViewItem (const KUDSEntry &)
- KFileViewItem (const KFileViewItem &)
- KFileViewItem (const QString& dir, const QString& name, bool delaystat = false)
- ~KFileViewItem ()
- KFileViewItem & operator= (const KFileViewItem &)
- bool isDir () const
- bool isFile () const
- bool isSymLink () const
- QString name () const
- QString url () const
- QPixmap pixmap ( KIconLoader::Size size ) const
- QPixmap pixmap () const
- QString date () const
- time_t mTime () const
- QString access () const
- QString owner () const
- QString group () const
- uint size () const
- bool permission (uint permissionSpec)
- bool isReadable () const
- QString mimeType ()
- void stat (bool alreadyindir)
- void setViewItem ( const KFileView *view, const void *item )
- const void * viewItem ( const KFileView *view ) const
- void setHidden (bool h)
- bool isHidden () const
- void setDeleted ()
- KFileViewItem * next () const
- void setNext (KFileViewItem *n)
Public Static Methods
- static void cleanup ()
- static QString dateTime (time_t secsSince1Jan1970UTC)
Protected Methods
- void parsePermissions (const char *perms)
- QString parsePermissions (uint perm) const
- void readUserInfo ()
- bool testReadable (const QCString& file, struct stat& buf)
Detailed Description
Provides information about a file that has been examined
with KDir.
Construct a KFileViewItem object from a KDirEntry.
Copy a KFileViewItem.
KFileViewItem (const QString& dir, const QString& name, bool delaystat = false)
|
Constructs a "little" KFileViewItem (just for local files)
Destroy the KFileViewItem object.
Copy a KFileViewItem.
[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 QString::null
[const]
Returns an icon for this file.
It will return the icon according to the mimetype of this file, when
you have called @see mimeType() once. Otherwise, it will return a
default icon.
Parameters:
size | specifies the size of the icon.
The default icon is only available in small size, so far.
|
[const]
Returns a pixmap for this file. The only semantic difference to the
other pixmap() method is that the last used Pixmap-size will be used.
E.g. if you call pixmap( KIconLoader::Large ) once, you can refer to
this pixmap thru this method without specifying the size.
The default size is KIconLoader::Small
[const]
Returns a string of the date of the file.
[const]
Returns the modification time 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.
[const]
Return true if the file is readable
Returns the mimetype, e.g. "image/png"
When this method is called the first time, it will also search for
the correct icon according to this mimetype. The next call to
See also: pixmap(), will, return, this, correct, pixmap.
[static]
frees the static allocated ressources (user information from
/etc/passwd and /etc/group)
- Version: $Id: kfileviewitem.h,v 1.7 2000/01/30 22:44:13 faure Exp $
- Author: rich@kde.org
- Generated: root@tantive.terraplex.com on Sun Feb 27 17:39:34 2000, using kdoc 2.0a33.