\section{KArchive\-Directory Class Reference}
\label{classKArchiveDirectory}\index{KArchiveDirectory@{KArchiveDirectory}}
A directory in an archive.  


{\tt \#include $<$karchive.h$>$}

Inheritance diagram for KArchive\-Directory:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=71pt]{classKArchiveDirectory__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KArchive\-Directory:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=197pt]{classKArchiveDirectory__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KArchive\-Directory} ({\bf KArchive} $\ast$archive, const  {\bf QString} \&name, int access, int date, const  {\bf QString} \&user, const  {\bf QString} \&group, const  {\bf QString} \&symlink)\label{classKArchiveDirectory_a0}

\item 
{\bf QString\-List} {\bf entries} () const 
\item 
{\bf KArchive\-Entry} $\ast$ {\bf entry} ({\bf QString} name)
\item 
const  {\bf KArchive\-Entry} $\ast$ {\bf entry} ({\bf QString} name) const \label{classKArchiveDirectory_a4}

\item 
void {\bf add\-Entry} ({\bf KArchive\-Entry} $\ast$)\label{classKArchiveDirectory_a5}

\item 
virtual bool {\bf is\-Directory} () const 
\item 
void {\bf copy\-To} (const  {\bf QString} \&dest, bool recursive=true) const 
\begin{CompactList}\small\item\em Extracts all entries in this archive directory to the directory {\tt dest}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKArchiveDirectory_b0}

\end{CompactItemize}


\subsection{Detailed Description}
A directory in an archive. 

\begin{Desc}
\item[See also:]{\bf KArchive}{\rm (p.\,\pageref{classKArchive})} 

{\bf KArchive\-File}{\rm (p.\,\pageref{classKArchiveFile})} \end{Desc}




Definition at line 306 of file karchive.h.

\subsection{Member Function Documentation}
\index{KArchiveDirectory@{KArchive\-Directory}!entries@{entries}}
\index{entries@{entries}!KArchiveDirectory@{KArchive\-Directory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KArchive\-Directory::entries () const}\label{classKArchiveDirectory_a2}


\begin{Desc}
\item[Returns:]the names of all entries in this directory (filenames, no path). \end{Desc}


Definition at line 316 of file karchive.cpp.

References QDict\-Iterator::current(), and QDict\-Iterator::current\-Key().

Referenced by copy\-To().\index{KArchiveDirectory@{KArchive\-Directory}!entry@{entry}}
\index{entry@{entry}!KArchiveDirectory@{KArchive\-Directory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KArchive\-Entry} $\ast$ KArchive\-Directory::entry ({\bf QString} {\em name})}\label{classKArchiveDirectory_a3}


\begin{Desc}
\item[Returns:]a pointer to the entry in the directory.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]may be \char`\"{}test1\char`\"{}, \char`\"{}mydir/test3\char`\"{}, \char`\"{}mydir/mysubdir/test3\char`\"{}, etc. \end{description}
\end{Desc}


Definition at line 327 of file karchive.cpp.

References QString::find(), KArchive\-Entry::is\-Directory(), QString::left(), QString::length(), QString::mid(), and KStd\-Accel::name().

Referenced by copy\-To(), KArchive::find\-Or\-Create(), and KZip::open\-Archive().\index{KArchiveDirectory@{KArchive\-Directory}!isDirectory@{isDirectory}}
\index{isDirectory@{isDirectory}!KArchiveDirectory@{KArchive\-Directory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KArchive\-Directory::is\-Directory () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKArchiveDirectory_a6}


\begin{Desc}
\item[Returns:]true, since this entry is a directory \end{Desc}


Reimplemented from {\bf KArchive\-Entry} {\rm (p.\,\pageref{classKArchiveEntry_a10})}.

Definition at line 336 of file karchive.h.\index{KArchiveDirectory@{KArchive\-Directory}!copyTo@{copyTo}}
\index{copyTo@{copyTo}!KArchiveDirectory@{KArchive\-Directory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KArchive\-Directory::copy\-To (const {\bf QString} \& {\em dest}, bool {\em recursive} = true) const}\label{classKArchiveDirectory_a7}


Extracts all entries in this archive directory to the directory {\tt dest}. 

If {\tt recursive} is true, subdirectories are extracted as well. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 375 of file karchive.cpp.

References KArchive\-File::copy\-To(), entries(), entry(), QMap::insert(), KArchive\-Entry::is\-Directory(), QPtr\-Stack::is\-Empty(), KArchive\-Entry::is\-File(), QDir::mkdir(), KArchive\-Entry::name(), QValue\-Stack::pop(), QPtr\-Stack::pop(), KArchive\-File::position(), QValue\-Stack::push(), and QPtr\-Stack::push().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
karchive.h\item 
karchive.cpp\end{CompactItemize}
