\section{KIO::Data\-Slave Class Reference}
\label{classKIO_1_1DataSlave}\index{KIO::DataSlave@{KIO::DataSlave}}
This class provides a high performance implementation for the data url scheme (rfc2397).  


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

Inheritance diagram for KIO::Data\-Slave:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=66pt]{classKIO_1_1DataSlave__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Data\-Slave:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=172pt]{classKIO_1_1DataSlave__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Host} (const {\bf QString} \&host, int port, const {\bf QString} \&user, const {\bf QString} \&passwd)\label{classKIO_1_1DataSlave_a2}

\item 
virtual void {\bf set\-Config} (const {\bf Meta\-Data} \&config)\label{classKIO_1_1DataSlave_a3}

\item 
virtual void {\bf suspend} ()\label{classKIO_1_1DataSlave_a4}

\item 
virtual void {\bf resume} ()\label{classKIO_1_1DataSlave_a5}

\item 
virtual bool {\bf suspended} ()\label{classKIO_1_1DataSlave_a6}

\item 
virtual void {\bf send} (int cmd, const {\bf QByte\-Array} \&arr={\bf QByte\-Array}())\label{classKIO_1_1DataSlave_a7}

\item 
virtual void {\bf hold} (const {\bf KURL} \&url)\label{classKIO_1_1DataSlave_a8}

\item 
virtual void {\bf get} (const {\bf KURL} \&url)=0\label{classKIO_1_1DataSlave_a9}

\item 
virtual void {\bf mimetype} (const {\bf KURL} \&url)=0\label{classKIO_1_1DataSlave_a10}

\end{CompactItemize}
\subsection*{Protected Types}
\begin{CompactItemize}
\item 
typedef {\bf QValue\-List}$<$ {\bf Queue\-Struct} $>$ {\bf Dispatch\-Queue}\label{classKIO_1_1DataSlave_x0}

\item 
enum {\bf Queue\-Type} \{ \par
{\bf Queue\_\-mime\-Type} =  1, 
{\bf Queue\_\-total\-Size}, 
{\bf Queue\_\-send\-Meta\-Data}, 
{\bf Queue\_\-data}, 
\par
{\bf Queue\_\-finished}
 \}
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf dispatch\-Next} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-All\-Meta\-Data} (const {\bf Meta\-Data} \&)
\item 
void {\bf send\-Meta\-Data} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIO_1_1DataSlave_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf Dispatch\-Queue} {\bf dispatch\-Queue}\label{classKIO_1_1DataSlave_p0}

\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf Queue\-Struct}
\begin{CompactList}\small\item\em structure for queueing. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class provides a high performance implementation for the data url scheme (rfc2397). 



Definition at line 49 of file dataslave.h.

\subsection{Member Enumeration Documentation}
\index{KIO::DataSlave@{KIO::Data\-Slave}!QueueType@{QueueType}}
\index{QueueType@{QueueType}!KIO::DataSlave@{KIO::Data\-Slave}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KIO::Data\-Slave::Queue\-Type}\hspace{0.3cm}{\tt  [protected]}}\label{classKIO_1_1DataSlave_x6}


identifiers of functions to be queued 



Definition at line 85 of file dataslave.h.

\subsection{Member Function Documentation}
\index{KIO::DataSlave@{KIO::Data\-Slave}!setAllMetaData@{setAllMetaData}}
\index{setAllMetaData@{setAllMetaData}!KIO::DataSlave@{KIO::Data\-Slave}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Data\-Slave::set\-All\-Meta\-Data (const {\bf Meta\-Data} \&)\hspace{0.3cm}{\tt  [protected]}}\label{classKIO_1_1DataSlave_b0}


Sets metadata. 



Definition at line 163 of file dataslave.cpp.\index{KIO::DataSlave@{KIO::Data\-Slave}!sendMetaData@{sendMetaData}}
\index{sendMetaData@{sendMetaData}!KIO::DataSlave@{KIO::Data\-Slave}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Data\-Slave::send\-Meta\-Data ()\hspace{0.3cm}{\tt  [protected]}}\label{classKIO_1_1DataSlave_b1}


Sends metadata set with set\-All\-Meta\-Data. 



Definition at line 167 of file dataslave.cpp.

Referenced by dispatch\-Next().\index{KIO::DataSlave@{KIO::Data\-Slave}!dispatchNext@{dispatchNext}}
\index{dispatchNext@{dispatchNext}!KIO::DataSlave@{KIO::Data\-Slave}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Data\-Slave::dispatch\-Next ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1DataSlave_j0}


dispatches next queued method. 

Does nothing if there are no queued methods.

Definition at line 99 of file dataslave.cpp.

References KIO::Data\-Slave::Queue\-Struct::ba, QValue\-List::empty(), QValue\-List::front(), QValue\-List::pop\_\-front(), KIO::Data\-Slave::Queue\-Struct::s, send\-Meta\-Data(), KIO::Data\-Slave::Queue\-Struct::size, QTimer::stop(), and KIO::Data\-Slave::Queue\-Struct::type.

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