• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

Public Member Functions | Protected Member Functions | List of all members
KArchiveEntry Class Reference

#include <karchive.h>

Inheritance diagram for KArchiveEntry:
KArchiveDirectory KArchiveFile

Public Member Functions

 KArchiveEntry (KArchive *archive, const TQString &name, int access, int date, const TQString &user, const TQString &group, const TQString &symlink)
TQDateTime datetime () const
int date () const
TQString name () const
mode_t permissions () const
TQString user () const
TQString group () const
TQString symlink () const
virtual bool isFile () const
virtual bool isDirectory () 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 395 of file karchive.h.

Constructor & Destructor Documentation

KArchiveEntry::KArchiveEntry ( KArchive *  archive,
const TQString &  name,
int  access,
int  date,
const TQString &  user,
const TQString &  group,
const TQString &  symlink 
)

Creates a new entry.

Parameters
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 TQString::null

Definition at line 447 of file karchive.cpp.

Member Function Documentation

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.

TQDateTime KArchiveEntry::datetime ( ) const

Creation date of the file.

Returns
the creation date

Definition at line 461 of file karchive.cpp.

TQString 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
inlinevirtual

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
inlinevirtual

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.

TQString 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.

TQString KArchiveEntry::symlink ( ) const
inline

Symlink if there is one.

Returns
the symlink, or TQString::null

Definition at line 452 of file karchive.h.

TQString KArchiveEntry::user ( ) const
inline

User who created the file.

Returns
the owner of the file

Definition at line 441 of file karchive.h.


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

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |