KFileInfo Class Reference

[kfile Index] [kfile Hierarchy] [Headers]


Provides information about a file that has been examined with KDir More...

#include <kfileinfo.h>

Public Members

Protected Members

Private Members


Detailed Description

Provides information about a file that has been examined with KDir.


KFileInfo(const KDirEntry &) [public]

Construct a KFileInfo object from a KDirEntry.

KFileInfo(const QFileInfo &) [public]

Constructs a KFileInfo object from a QFileInfo. This is only useful for local files

KFileInfo(const char *dir, const char *name = "") [public]

Constructs a "little" KFileInfo (just for local files)

~KFileInfo() [public]

Destroy the KFileInfo object.

KFileInfo& operator=(const KFileInfo &) [public]

Copy a KFileInfo.

bool isDir() const [public]

Returns true if this file is a directory.

const char* fileName() const [public]

Returns the name of the file

Note: If this object does not refer to a real file (broken symlink), it will return 0

const char* date() const [public]

Returns the group of the file.

const char* access() const [public]

Returns the access permissions for the file as a string.

const char* owner() const [public]

Returns the owner of the file.

const char* group() const [public]

Returns the group of the file.

uint size() const [public]

Returns the size of the file.

bool permission(uint permissionSpec) [public]

Returns true if the specified permission flag is set.


  • Author: rich@kde.org
  • Version: $Id: kfileinfo.h,v 1.8 1998/11/15 23:42:56 ettrich Exp $
  • Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:57 CEST 1999
Kdoc