\section{KIO::Slave\-Config Class Reference}
\label{classKIO_1_1SlaveConfig}\index{KIO::SlaveConfig@{KIO::SlaveConfig}}
{\bf Slave\-Config}{\rm (p.\,\pageref{classKIO_1_1SlaveConfig})}.  


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

Inheritance diagram for KIO::Slave\-Config:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKIO_1_1SlaveConfig__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Slave\-Config:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=91pt]{classKIO_1_1SlaveConfig__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf config\-Needed} (const  {\bf QString} \&protocol, const  {\bf QString} \&host)
\begin{CompactList}\small\item\em This signal is raised when a slave of type {\tt protocol} deals with {\tt host} for the first time. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Config\-Data} (const  {\bf QString} \&protocol, const  {\bf QString} \&host, const  {\bf QString} \&key, const  {\bf QString} \&value)
\begin{CompactList}\small\item\em Configure slaves of type {\tt protocol} by setting {\tt key} to {\tt value}. \item\end{CompactList}\item 
void {\bf set\-Config\-Data} (const  {\bf QString} \&protocol, const  {\bf QString} \&host, const  Meta\-Data \&config)
\begin{CompactList}\small\item\em Configure slaves of type {\tt protocol} with {\tt config}. \item\end{CompactList}\item 
Meta\-Data {\bf config\-Data} (const  {\bf QString} \&protocol, const  {\bf QString} \&host)
\begin{CompactList}\small\item\em Query slave configuration for slaves of type {\tt protocol} when dealing with {\tt host}. \item\end{CompactList}\item 
{\bf QString} {\bf config\-Data} (const  {\bf QString} \&protocol, const  {\bf QString} \&host, const  {\bf QString} \&key)
\begin{CompactList}\small\item\em Query a specific configuration key for slaves of type {\tt protocol} when dealing with {\tt host}. \item\end{CompactList}\item 
void {\bf reset} ()
\begin{CompactList}\small\item\em Undo any changes made by calls to {\bf set\-Config\-Data}{\rm (p.\,\pageref{classKIO_1_1SlaveConfig_a1})}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Slave\-Config} $\ast$ {\bf self} ()\label{classKIO_1_1SlaveConfig_e0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
Slave\-Config\-Private $\ast$ {\bf d}\label{classKIO_1_1SlaveConfig_p0}

\end{CompactItemize}
\subsection*{Static Protected Attributes}
\begin{CompactItemize}
\item 
{\bf Slave\-Config} $\ast$ {\bf \_\-self} = 0\label{classKIO_1_1SlaveConfig_t0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf Slave\-Config}{\rm (p.\,\pageref{classKIO_1_1SlaveConfig})}. 

This class manages the configuration for io-slaves based on protocol and host. The {\bf Scheduler}{\rm (p.\,\pageref{classKIO_1_1Scheduler})} makes use of this class to configure the slave whenever it has to connect to a new host.

You only need to use this class if you want to override specific configuration items of an io-slave when the io-slave is used by your application.

Normally io-slaves are being configured by \char`\"{}kio\_\-$<$protocol$>$rc\char`\"{} configuration files. Groups defined in such files are treated as host or domain specification. Configuration items defined in a group are only applied when the slave is connecting with a host that matches with the host and/or domain specified by the group. 



Definition at line 49 of file slaveconfig.h.

\subsection{Member Function Documentation}
\index{KIO::SlaveConfig@{KIO::Slave\-Config}!setConfigData@{setConfigData}}
\index{setConfigData@{setConfigData}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Slave\-Config::set\-Config\-Data (const {\bf QString} \& {\em protocol}, const {\bf QString} \& {\em host}, const {\bf QString} \& {\em key}, const {\bf QString} \& {\em value})}\label{classKIO_1_1SlaveConfig_a1}


Configure slaves of type {\tt protocol} by setting {\tt key} to {\tt value}. 

If {\tt host} is specified the configuration only applies when dealing with {\tt host}.

Changes made to the slave configuration only apply to slaves used by the current process. 

Definition at line 159 of file slaveconfig.cpp.

References KStd\-Accel::key().\index{KIO::SlaveConfig@{KIO::Slave\-Config}!setConfigData@{setConfigData}}
\index{setConfigData@{setConfigData}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Slave\-Config::set\-Config\-Data (const {\bf QString} \& {\em protocol}, const {\bf QString} \& {\em host}, const Meta\-Data \& {\em config})}\label{classKIO_1_1SlaveConfig_a2}


Configure slaves of type {\tt protocol} with {\tt config}. 

If {\tt host} is specified the configuration only applies when dealing with {\tt host}.

Changes made to the slave configuration only apply to slaves used by the current process. 

Definition at line 169 of file slaveconfig.cpp.

References QString::is\-Empty().\index{KIO::SlaveConfig@{KIO::Slave\-Config}!configData@{configData}}
\index{configData@{configData}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Meta\-Data KIO::Slave\-Config::config\-Data (const {\bf QString} \& {\em protocol}, const {\bf QString} \& {\em host})}\label{classKIO_1_1SlaveConfig_a3}


Query slave configuration for slaves of type {\tt protocol} when dealing with {\tt host}. 



Definition at line 193 of file slaveconfig.cpp.

References config\-Needed(), and QString::is\-Empty().

Referenced by config\-Data().\index{KIO::SlaveConfig@{KIO::Slave\-Config}!configData@{configData}}
\index{configData@{configData}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KIO::Slave\-Config::config\-Data (const {\bf QString} \& {\em protocol}, const {\bf QString} \& {\em host}, const {\bf QString} \& {\em key})}\label{classKIO_1_1SlaveConfig_a4}


Query a specific configuration key for slaves of type {\tt protocol} when dealing with {\tt host}. 



Definition at line 212 of file slaveconfig.cpp.

References config\-Data(), and KStd\-Accel::key().\index{KIO::SlaveConfig@{KIO::Slave\-Config}!reset@{reset}}
\index{reset@{reset}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Slave\-Config::reset ()}\label{classKIO_1_1SlaveConfig_a5}


Undo any changes made by calls to {\bf set\-Config\-Data}{\rm (p.\,\pageref{classKIO_1_1SlaveConfig_a1})}. 



Definition at line 217 of file slaveconfig.cpp.\index{KIO::SlaveConfig@{KIO::Slave\-Config}!configNeeded@{configNeeded}}
\index{configNeeded@{configNeeded}!KIO::SlaveConfig@{KIO::Slave\-Config}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Slave\-Config::config\-Needed (const {\bf QString} \& {\em protocol}, const {\bf QString} \& {\em host})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1SlaveConfig_l0}


This signal is raised when a slave of type {\tt protocol} deals with {\tt host} for the first time. 

Your application can use this signal to make some last minute configuration changes with {\bf set\-Config\-Data}{\rm (p.\,\pageref{classKIO_1_1SlaveConfig_a1})} based on the host. 

Referenced by config\-Data().

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