• 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
KArchiveDirectory Class Reference

#include <karchive.h>

Inheritance diagram for KArchiveDirectory:
Inheritance graph
[legend]

Public Member Functions

 KArchiveDirectory (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink)
 
virtual ~KArchiveDirectory ()
 
void addEntry (KArchiveEntry *)
 
void copyTo (const QString &dest, bool recursive=true) const
 
QStringList entries () const
 
const KArchiveEntry * entry (const QString &name) const
 
virtual bool isDirectory () const
 
void removeEntry (KArchiveEntry *)
 
- Public Member Functions inherited from KArchiveEntry
 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 isFile () const
 
QString name () const
 
mode_t permissions () const
 
QString symLinkTarget () const
 
QString user () const
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KArchiveEntry
KArchive * archive () const
 

Detailed Description

Represents a directory entry in a KArchive.

A directory in an archive.

See also
KArchive
KArchiveFile

Definition at line 542 of file karchive.h.

Constructor & Destructor Documentation

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

Creates a new directory 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 702 of file karchive.cpp.

KArchiveDirectory::~KArchiveDirectory ( )
virtual

Definition at line 711 of file karchive.cpp.

Member Function Documentation

void KArchiveDirectory::addEntry ( KArchiveEntry *  entry)

Adds a new entry to the directory.

Definition at line 757 of file karchive.cpp.

void KArchiveDirectory::copyTo ( const QString &  dest,
bool  recursive = true 
) const

Extracts all entries in this archive directory to the directory dest.

Parameters
destthe directory to extract to
recursiveif set to true, subdirectories are extracted as well

Definition at line 800 of file karchive.cpp.

QStringList KArchiveDirectory::entries ( ) const

Returns a list of sub-entries.

Note that the list is not sorted, it's even in random order (due to using a hashtable). Use sort() on the result to sort the list by filename.

Returns
the names of all entries in this directory (filenames, no path).

Definition at line 716 of file karchive.cpp.

const KArchiveEntry * KArchiveDirectory::entry ( const QString &  name) const

Returns the entry with the given name.

Parameters
namemay be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.
Returns
a pointer to the entry in the directory.

Definition at line 721 of file karchive.cpp.

bool KArchiveDirectory::isDirectory ( ) const
virtual

Checks whether this entry is a directory.

Returns
true, since this entry is a directory

Reimplemented from KArchiveEntry.

Definition at line 791 of file karchive.cpp.

void KArchiveDirectory::removeEntry ( KArchiveEntry *  entry)

Adds a new entry to the directory.

Definition at line 770 of file karchive.cpp.

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

Reimplemented from KArchiveEntry.

Definition at line 869 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