KArchiveEntry
#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) | |
QDateTime | date () const |
QString | group () const |
virtual bool | isDirectory () const |
virtual bool | isFile () const |
QString | name () const |
mode_t | permissions () const |
QString | symLinkTarget () const |
QString | user () const |
Protected Member Functions | |
KArchive * | archive () const |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
A base class for entries in an KArchive.
Base class for the archive-file's directory structure.
- See also
- KArchiveFile
- KArchiveDirectory
Definition at line 38 of file karchiveentry.h.
Constructor & Destructor Documentation
◆ KArchiveEntry()
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.
- Parameters
-
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()
Definition at line 694 of file karchive.cpp.
◆ ~KArchiveEntry()
|
virtual |
Definition at line 705 of file karchive.cpp.
Member Function Documentation
◆ archive()
|
protected |
Definition at line 750 of file karchive.cpp.
◆ date()
QDateTime KArchiveEntry::date | ( | ) | const |
◆ group()
QString KArchiveEntry::group | ( | ) | const |
Group of the user who created the file.
- Returns
- the group of the file
Definition at line 730 of file karchive.cpp.
◆ isDirectory()
|
virtual |
Checks whether the entry is a directory.
- Returns
- true if this entry is a directory
Reimplemented in KArchiveDirectory.
Definition at line 745 of file karchive.cpp.
◆ isFile()
|
virtual |
Checks whether the entry is a file.
- Returns
- true if this entry is a file
Reimplemented in KArchiveFile.
Definition at line 740 of file karchive.cpp.
◆ name()
QString KArchiveEntry::name | ( | ) | const |
Name of the file without path.
- Returns
- the file name without path
Definition at line 715 of file karchive.cpp.
◆ permissions()
mode_t KArchiveEntry::permissions | ( | ) | const |
The permissions and mode flags as returned by the stat() function in st_mode.
- Returns
- the permissions
Definition at line 720 of file karchive.cpp.
◆ symLinkTarget()
QString KArchiveEntry::symLinkTarget | ( | ) | const |
Symlink if there is one.
- Returns
- the symlink, or QString()
Definition at line 735 of file karchive.cpp.
◆ user()
QString KArchiveEntry::user | ( | ) | const |
User who created the file.
- Returns
- the owner of the file
Definition at line 725 of file karchive.cpp.
◆ virtual_hook()
|
protectedvirtual |
Definition at line 1049 of file karchive.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.