class KFileInfo

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

Definition#include <kfilesimpleview.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members

Protected Members


Detailed Description

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

KFileInfo (const KDirEntry &)

Construct a KFileInfo object from a KDirEntry.

KFileInfo (const QFileInfo &)

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)

~KFileInfo ()

Destroy the KFileInfo object.

KFileInfo & operator= (const KFileInfo &)

Copy a KFileInfo.

bool isDir ()
[const]

Returns true if this file is a directory.

const char * fileName ()
[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 char * date ()
[const]

Returns the group of the file.

const char * access ()
[const]

Returns the access permissions for the file as a string.

const char * owner ()
[const]

Returns the owner of the file.

const char * group ()
[const]

Returns the group of the file.

uint size ()
[const]

Returns the size of the file.

bool permission (uint permissionSpec)

Returns true if the specified permission flag is set.