\section{KIO::Multi\-Get\-Job Class Reference}
\label{classKIO_1_1MultiGetJob}\index{KIO::MultiGetJob@{KIO::MultiGetJob}}
The {\bf Multi\-Get\-Job}{\rm (p.\,\pageref{classKIO_1_1MultiGetJob})} is a {\bf Transfer\-Job}{\rm (p.\,\pageref{classKIO_1_1TransferJob})} that allows you to get several files from a single server.  


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

Inheritance diagram for KIO::Multi\-Get\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classKIO_1_1MultiGetJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Multi\-Get\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=294pt]{classKIO_1_1MultiGetJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf data} (long id, const {\bf QByte\-Array} \&data)
\item 
void {\bf mimetype} (long id, const {\bf QString} \&type)
\item 
void {\bf result} (long id)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Multi\-Get\-Job} (const {\bf KURL} \&url, bool show\-Progress\-Info)
\item 
virtual void {\bf start} (Slave $\ast$slave)\label{classKIO_1_1MultiGetJob_a1}

\item 
void {\bf get} (long id, const {\bf KURL} \&url, const {\bf Meta\-Data} \&meta\-Data)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Redirection} (const {\bf KURL} \&url)\label{classKIO_1_1MultiGetJob_j0}

\item 
virtual void {\bf slot\-Finished} ()
\item 
virtual void {\bf slot\-Data} (const {\bf QByte\-Array} \&data)\label{classKIO_1_1MultiGetJob_j2}

\item 
virtual void {\bf slot\-Mimetype} (const {\bf QString} \&mimetype)\label{classKIO_1_1MultiGetJob_j3}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIO_1_1MultiGetJob_b0}

\end{CompactItemize}


\subsection{Detailed Description}
The {\bf Multi\-Get\-Job}{\rm (p.\,\pageref{classKIO_1_1MultiGetJob})} is a {\bf Transfer\-Job}{\rm (p.\,\pageref{classKIO_1_1TransferJob})} that allows you to get several files from a single server. 

Don't create directly, but use {\bf KIO::multi\_\-get()}{\rm (p.\,\pageref{namespaceKIO_a222})} instead. \begin{Desc}
\item[See also:]{\bf KIO::multi\_\-get()}{\rm (p.\,\pageref{namespaceKIO_a222})} \end{Desc}




Definition at line 1079 of file jobclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!MultiGetJob@{MultiGetJob}}
\index{MultiGetJob@{MultiGetJob}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Multi\-Get\-Job::Multi\-Get\-Job (const {\bf KURL} \& {\em url}, bool {\em show\-Progress\-Info})}\label{classKIO_1_1MultiGetJob_a0}


Do not create a {\bf Multi\-Get\-Job}{\rm (p.\,\pageref{classKIO_1_1MultiGetJob})} directly, use {\bf KIO::multi\_\-get()}{\rm (p.\,\pageref{namespaceKIO_a222})} instead. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the first url to get \item[{\em show\-Progress\-Info}]true to show progress information to the user\end{description}
\end{Desc}


Definition at line 4219 of file job.cpp.

References QPtr\-List::set\-Auto\-Delete().

Referenced by KIO::multi\_\-get().

\subsection{Member Function Documentation}
\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!get@{get}}
\index{get@{get}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Multi\-Get\-Job::get (long {\em id}, const {\bf KURL} \& {\em url}, const {\bf Meta\-Data} \& {\em meta\-Data})}\label{classKIO_1_1MultiGetJob_a2}


Get an additional file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em id}]the id of the file \item[{\em url}]the url of the file to get \item[{\em meta\-Data}]the meta data for this request\end{description}
\end{Desc}


Definition at line 4228 of file job.cpp.

References QPtr\-List::append().

Referenced by KIO::multi\_\-get().\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!data@{data}}
\index{data@{data}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Multi\-Get\-Job::data (long {\em id}, const {\bf QByte\-Array} \& {\em data})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1MultiGetJob_l0}


Data from the slave has arrived. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em id}]the id of the request \item[{\em data}]data received from the slave. End of data (EOD) has been reached if data.size() == 0 \end{description}
\end{Desc}
\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!mimetype@{mimetype}}
\index{mimetype@{mimetype}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Multi\-Get\-Job::mimetype (long {\em id}, const {\bf QString} \& {\em type})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1MultiGetJob_l1}


Mimetype determined. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em id}]the id of the request \item[{\em type}]the mime type \end{description}
\end{Desc}
\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!result@{result}}
\index{result@{result}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Multi\-Get\-Job::result (long {\em id})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1MultiGetJob_l2}


File transfer completed. 

When all files have been processed, {\bf result(KIO::Job $\ast$)}{\rm (p.\,\pageref{classKIO_1_1Job_l0})} gets emitted. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em id}]the id of the request \end{description}
\end{Desc}


Referenced by slot\-Finished().\index{KIO::MultiGetJob@{KIO::Multi\-Get\-Job}!slotFinished@{slotFinished}}
\index{slotFinished@{slotFinished}!KIO::MultiGetJob@{KIO::Multi\-Get\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Multi\-Get\-Job::slot\-Finished ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1MultiGetJob_j1}


Called when the slave marks the job as finished. 



Reimplemented from {\bf KIO::Transfer\-Job} {\rm (p.\,\pageref{classKIO_1_1TransferJob_j1})}.

Definition at line 4331 of file job.cpp.

References QPtr\-List::at(), QMap::clear(), QPtr\-List::count(), KIO::Scheduler::do\-Job(), KURL::is\-Empty(), QPtr\-List::remove\-Ref(), result(), KIO::Transfer\-Job::slot\-Finished(), and KURL::url().

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