• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

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

#include <karchive.h>

Inheritance diagram for KArchiveEntry:
Inheritance graph
[legend]

Public Member Functions

 KArchiveEntry (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink)
 
virtual ~KArchiveEntry ()
 
int date () const
 
QDateTime datetime () 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 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
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 527 of file karchive.cpp.

KArchiveEntry::~KArchiveEntry ( )
virtual

Definition at line 534 of file karchive.cpp.

Member Function Documentation

KArchive * KArchiveEntry::archive ( ) const
protected

Definition at line 586 of file karchive.cpp.

int KArchiveEntry::date ( ) const

Creation date of the file.

Returns
the creation date in seconds since 1970

Definition at line 546 of file karchive.cpp.

QDateTime KArchiveEntry::datetime ( ) const

Creation date of the file.

Returns
the creation date

Definition at line 539 of file karchive.cpp.

QString KArchiveEntry::group ( ) const

Group of the user who created the file.

Returns
the group of the file

Definition at line 566 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 581 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 576 of file karchive.cpp.

QString KArchiveEntry::name ( ) const

Name of the file without path.

Returns
the file name without path

Definition at line 551 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 556 of file karchive.cpp.

QString KArchiveEntry::symLinkTarget ( ) const

Symlink if there is one.

Returns
the symlink, or QString()

Definition at line 571 of file karchive.cpp.

QString KArchiveEntry::user ( ) const

User who created the file.

Returns
the owner of the file

Definition at line 561 of file karchive.cpp.

void KArchiveEntry::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Reimplemented in KArchiveDirectory, and KArchiveFile.

Definition at line 863 of file karchive.cpp.


The documentation for this class was generated from the following files:
  • karchive.h
  • karchive.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal