KArchive 5.109.0
|
A base class for entries in an KArchive. More...
#include <KArchiveEntry>
Public Member Functions | |
KArchiveEntry (KArchive *archive, const QString &name, int access, const QDateTime &date, const QString &user, const QString &group, const QString &symlink) | |
Creates a new entry. | |
QDateTime | date () const |
Creation date of the file. | |
QString | group () const |
Group of the user who created the file. | |
virtual bool | isDirectory () const |
Checks whether the entry is a directory. | |
virtual bool | isFile () const |
Checks whether the entry is a file. | |
QString | name () const |
Name of the file without path. | |
mode_t | permissions () const |
The permissions and mode flags as returned by the stat() function in st_mode. | |
QString | symLinkTarget () const |
Symlink if there is one. | |
QString | user () const |
User who created the file. | |
Protected Member Functions | |
KArchive * | archive () const |
virtual void | virtual_hook (int id, void *data) |
A base class for entries in an KArchive.
Base class for the archive-file's directory structure.
KArchiveEntry::KArchiveEntry | ( | KArchive * | archive, |
const QString & | name, | ||
int | access, | ||
const QDateTime & | date, | ||
const QString & | user, | ||
const QString & | group, | ||
const QString & | symlink | ||
) |
Creates a new entry.
archive | the entries archive |
name | the name of the entry |
access | the permissions in unix format |
date | the date (in seconds since 1970) |
user | the user that owns the entry |
group | the group that owns the entry |
symlink | the symlink, or QString() |
QDateTime KArchiveEntry::date | ( | ) | const |
Creation date of the file.
QString KArchiveEntry::group | ( | ) | const |
Group of the user who created the file.
|
virtual |
Checks whether the entry is a directory.
Reimplemented in KArchiveDirectory.
|
virtual |
Checks whether the entry is a file.
Reimplemented in KArchiveFile.
QString KArchiveEntry::name | ( | ) | const |
Name of the file without path.
mode_t KArchiveEntry::permissions | ( | ) | const |
The permissions and mode flags as returned by the stat() function in st_mode.
QString KArchiveEntry::symLinkTarget | ( | ) | const |
Symlink if there is one.
QString KArchiveEntry::user | ( | ) | const |
User who created the file.