#include <KArchiveEntry>

Inheritance diagram for 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

KArchivearchive () 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

Definition at line 34 of file karchiveentry.h.

Constructor & Destructor Documentation

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.

archivethe entries archive
namethe name of the entry
accessthe permissions in unix format
datethe date (in seconds since 1970)
userthe user that owns the entry
groupthe group that owns the entry
symlinkthe symlink, or QString()

Definition at line 665 of file karchive.cpp.

Member Function Documentation

QDateTime KArchiveEntry::date ( ) const

Creation date of the file.

the creation date

Definition at line 677 of file karchive.cpp.

QString KArchiveEntry::group ( ) const

Group of the user who created the file.

the group of the file

Definition at line 697 of file karchive.cpp.

bool KArchiveEntry::isDirectory ( ) const

Checks whether the entry is a directory.

true if this entry is a directory

Reimplemented in KArchiveDirectory.

Definition at line 712 of file karchive.cpp.

bool KArchiveEntry::isFile ( ) const

Checks whether the entry is a file.

true if this entry is a file

Reimplemented in KArchiveFile.

Definition at line 707 of file karchive.cpp.

QString KArchiveEntry::name ( ) const

Name of the file without path.

the file name without path

Definition at line 682 of file karchive.cpp.

mode_t KArchiveEntry::permissions ( ) const

The permissions and mode flags as returned by the stat() function in st_mode.

the permissions

Definition at line 687 of file karchive.cpp.

QString KArchiveEntry::symLinkTarget ( ) const

Symlink if there is one.

the symlink, or QString()

Definition at line 702 of file karchive.cpp.

QString KArchiveEntry::user ( ) const

User who created the file.

the owner of the file

Definition at line 692 of file karchive.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:07:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.