KIO
KArchiveEntry Class Reference
A base class for entries in an KArchive. More...
#include <karchive.h>

Public Member Functions | |
int | date () const |
QDateTime | datetime () const |
QString | group () const |
virtual bool | isDirectory () const |
virtual bool | isFile () const |
KArchiveEntry (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink) | |
QString | name () const |
mode_t | permissions () const |
QString | symLinkTarget () const |
QString | user () const |
virtual | ~KArchiveEntry () |
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
Definition at line 369 of file karchive.h.
Constructor & Destructor Documentation
KArchiveEntry::KArchiveEntry | ( | KArchive * | archive, | |
const QString & | name, | |||
int | access, | |||
int | 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 518 of file karchive.cpp.
KArchiveEntry::~KArchiveEntry | ( | ) | [virtual] |
Definition at line 525 of file karchive.cpp.
Member Function Documentation
KArchive * KArchiveEntry::archive | ( | ) | const [protected] |
Definition at line 577 of file karchive.cpp.
int KArchiveEntry::date | ( | ) | const |
Creation date of the file.
- Returns:
- the creation date in seconds since 1970
Definition at line 537 of file karchive.cpp.
QDateTime KArchiveEntry::datetime | ( | ) | const |
QString KArchiveEntry::group | ( | ) | const |
Group of the user who created the file.
- Returns:
- the group of the file
Definition at line 557 of file karchive.cpp.
bool KArchiveEntry::isDirectory | ( | ) | const [virtual] |
Checks whether the entry is a directory.
- Returns:
- true if this entry is a directory
Reimplemented in KArchiveDirectory.
Definition at line 572 of file karchive.cpp.
bool KArchiveEntry::isFile | ( | ) | const [virtual] |
Checks whether the entry is a file.
- Returns:
- true if this entry is a file
Reimplemented in KArchiveFile.
Definition at line 567 of file karchive.cpp.
QString KArchiveEntry::name | ( | ) | const |
Name of the file without path.
- Returns:
- the file name without path
Definition at line 542 of file karchive.cpp.
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 547 of file karchive.cpp.
QString KArchiveEntry::symLinkTarget | ( | ) | const |
Symlink if there is one.
- Returns:
- the symlink, or QString()
Definition at line 562 of file karchive.cpp.
QString KArchiveEntry::user | ( | ) | const |
User who created the file.
- Returns:
- the owner of the file
Definition at line 552 of file karchive.cpp.
void KArchiveEntry::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
The documentation for this class was generated from the following files: