\section{KPAC Class Reference}
\label{classKPAC}\index{KPAC@{KPAC}}
Proxy Auto Configuration.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QString} {\bf proxy\-For\-URL} (const  {\bf KURL} \&url)=0
\begin{CompactList}\small\item\em Returns the proxy for the {\tt url} or QString::null if the request should be done unproxied. \item\end{CompactList}\item 
virtual bool {\bf init} (const  {\bf KURL} \&url)=0
\begin{CompactList}\small\item\em Loads the PAC-script. \item\end{CompactList}\item 
virtual bool {\bf discover} ()=0
\begin{CompactList}\small\item\em Tries to discover a PAC-script and loads it. \item\end{CompactList}\item 
virtual void {\bf bad\-Proxy} (const  {\bf QString} \&proxy)=0
\begin{CompactList}\small\item\em Marks {\tt proxy} as down. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKPAC_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Proxy Auto Configuration. 



Definition at line 32 of file kpac.h.

\subsection{Member Function Documentation}
\index{KPAC@{KPAC}!proxyForURL@{proxyForURL}}
\index{proxyForURL@{proxyForURL}!KPAC@{KPAC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KPAC::proxy\-For\-URL (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKPAC_a1}


Returns the proxy for the {\tt url} or QString::null if the request should be done unproxied. 



Referenced by KProtocol\-Manager::proxy\-For\-URL().\index{KPAC@{KPAC}!init@{init}}
\index{init@{init}!KPAC@{KPAC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KPAC::init (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKPAC_a2}


Loads the PAC-script. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]URL of the script. \end{description}
\end{Desc}
\index{KPAC@{KPAC}!discover@{discover}}
\index{discover@{discover}!KPAC@{KPAC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KPAC::discover ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKPAC_a3}


Tries to discover a PAC-script and loads it. 

\index{KPAC@{KPAC}!badProxy@{badProxy}}
\index{badProxy@{badProxy}!KPAC@{KPAC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KPAC::bad\-Proxy (const {\bf QString} \& {\em proxy})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKPAC_a4}


Marks {\tt proxy} as down. 

If the config script returns alternative proxies or allows a direct connection as fallback, this proxy will not be returned for a while. 

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