.TH "KArchiveDirectory" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KArchiveDirectory \- A directory in an archive.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <karchive.h>\fP
.PP
Inherits \fBKArchiveEntry\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKArchiveDirectory\fP (\fBKArchive\fP *archive, const  \fBQString\fP &name, int access, int date, const  \fBQString\fP &user, const  \fBQString\fP &group, const  \fBQString\fP &symlink)"
.br
.ti -1c
.RI "\fBQStringList\fP \fBentries\fP () const "
.br
.ti -1c
.RI "\fBKArchiveEntry\fP * \fBentry\fP (\fBQString\fP name)"
.br
.ti -1c
.RI "const  \fBKArchiveEntry\fP * \fBentry\fP (\fBQString\fP name) const "
.br
.ti -1c
.RI "void \fBaddEntry\fP (\fBKArchiveEntry\fP *)"
.br
.ti -1c
.RI "virtual bool \fBisDirectory\fP () const "
.br
.ti -1c
.RI "void \fBcopyTo\fP (const  \fBQString\fP &dest, bool recursive=true) const "
.br
.RI "\fIExtracts all entries in this archive directory to the directory \fCdest\fP. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A directory in an archive. 

\fBSee also:\fP
.RS 4
\fBKArchive\fP 
.PP
\fBKArchiveFile\fP 
.RE
.PP

.PP
Definition at line 306 of file karchive.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBQStringList\fP KArchiveDirectory::entries () const"
.PP
\fBReturns:\fP
.RS 4
the names of all entries in this directory (filenames, no path). 
.RE
.PP
Definition at line 316 of file karchive.cpp.
.PP
References QDictIterator::current(), and QDictIterator::currentKey().
.PP
Referenced by copyTo().
.SS "\fBKArchiveEntry\fP * KArchiveDirectory::entry (\fBQString\fP name)"
.PP
\fBReturns:\fP
.RS 4
a pointer to the entry in the directory.
.RE
.PP
\fBParameters:\fP
.RS 4
\fIname\fP may be 'test1', 'mydir/test3', 'mydir/mysubdir/test3', etc. 
.RE
.PP
Definition at line 327 of file karchive.cpp.
.PP
References QString::find(), KArchiveEntry::isDirectory(), QString::left(), QString::length(), QString::mid(), and KStdAccel::name().
.PP
Referenced by copyTo(), KArchive::findOrCreate(), and KZip::openArchive().
.SS "virtual bool KArchiveDirectory::isDirectory () const\fC [inline, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
true, since this entry is a directory 
.RE
.PP
Reimplemented from \fBKArchiveEntry\fP.
.PP
Definition at line 336 of file karchive.h.
.SS "void KArchiveDirectory::copyTo (const \fBQString\fP & dest, bool recursive = true) const"
.PP
Extracts all entries in this archive directory to the directory \fCdest\fP. If \fCrecursive\fP is true, subdirectories are extracted as well. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 375 of file karchive.cpp.
.PP
References KArchiveFile::copyTo(), entries(), entry(), QMap::insert(), KArchiveEntry::isDirectory(), QPtrStack::isEmpty(), KArchiveEntry::isFile(), QDir::mkdir(), KArchiveEntry::name(), QValueStack::pop(), QPtrStack::pop(), KArchiveFile::position(), QValueStack::push(), and QPtrStack::push().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
