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

KIO

KArchiveDirectory Class Reference

Represents a directory entry in a KArchive. More...

#include <karchive.h>

Inheritance diagram for KArchiveDirectory:
KArchiveEntry

List of all members.

Public Member Functions

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
 KArchiveDirectory (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink)
virtual ~KArchiveDirectory ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

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

Definition at line 675 of file karchive.cpp.

KArchiveDirectory::~KArchiveDirectory (  )  [virtual]

Definition at line 684 of file karchive.cpp.


Member Function Documentation

void KArchiveDirectory::addEntry ( KArchiveEntry *  entry  ) 

For internal use only.

Adds a new entry to the directory.

Definition at line 730 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:
dest the directory to extract to
recursive if set to true, subdirectories are extracted as well

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

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

Returns the entry with the given name.

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

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

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

Reimplemented from KArchiveEntry.

Definition at line 820 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
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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