• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KArchiveEntry Class Reference

A base class for entries in an KArchive. More...

#include <karchive.h>

Inheritance diagram for KArchiveEntry:

Inheritance graph
[legend]

List of all members.


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

KArchiveDirectory

Definition at line 395 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::null

Definition at line 447 of file karchive.cpp.

virtual KArchiveEntry::~KArchiveEntry (  )  [inline, virtual]

Definition at line 412 of file karchive.h.


Member Function Documentation

KArchive* KArchiveEntry::archive (  )  const [inline, protected]

Definition at line 467 of file karchive.h.

int KArchiveEntry::date (  )  const [inline]

Creation date of the file.

Returns:
the creation date in seconds since 1970

Definition at line 424 of file karchive.h.

QDateTime KArchiveEntry::datetime (  )  const

Creation date of the file.

Returns:
the creation date

Definition at line 461 of file karchive.cpp.

QString KArchiveEntry::group (  )  const [inline]

Group of the user who created the file.

Returns:
the group of the file

Definition at line 446 of file karchive.h.

virtual bool KArchiveEntry::isDirectory (  )  const [inline, virtual]

Checks whether the entry is a directory.

Returns:
true if this entry is a directory

Reimplemented in KArchiveDirectory.

Definition at line 464 of file karchive.h.

virtual bool KArchiveEntry::isFile (  )  const [inline, virtual]

Checks whether the entry is a file.

Returns:
true if this entry is a file

Reimplemented in KArchiveFile.

Definition at line 458 of file karchive.h.

QString KArchiveEntry::name (  )  const [inline]

Name of the file without path.

Returns:
the file name without path

Definition at line 430 of file karchive.h.

mode_t KArchiveEntry::permissions (  )  const [inline]

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

Returns:
the permissions

Definition at line 436 of file karchive.h.

QString KArchiveEntry::symlink (  )  const [inline]

Symlink if there is one.

Returns:
the symlink, or QString::null

Definition at line 452 of file karchive.h.

QString KArchiveEntry::user (  )  const [inline]

User who created the file.

Returns:
the owner of the file

Definition at line 441 of file karchive.h.

void KArchiveEntry::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented in KArchiveFile, and KArchiveDirectory.

Definition at line 712 of file karchive.cpp.


The documentation for this class was generated from the following files:
  • karchive.h
  • karchive.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal