\section{KProtocol\-Manager Class Reference}
\label{classKProtocolManager}\index{KProtocolManager@{KProtocolManager}}
Provides information about I/O (Internet, etc.) settings chosen/set by the end user.  


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

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Proxy\-Type} \{ \par
{\bf No\-Proxy}, 
{\bf Manual\-Proxy}, 
{\bf PACProxy}, 
{\bf WPADProxy}, 
\par
{\bf Env\-Var\-Proxy}
 \}
\item 
enum {\bf Proxy\-Auth\-Mode} \{ {\bf Prompt}, 
{\bf Automatic}
 \}
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString} {\bf default\-User\-Agent} ()
\item 
static {\bf QString} {\bf default\-User\-Agent} (const {\bf QString} \&keys)
\item 
static {\bf QString} {\bf user\-Agent\-For\-Host} (const {\bf QString} \&hostname)
\item 
static int {\bf read\-Timeout} ()
\item 
static int {\bf connect\-Timeout} ()
\item 
static int {\bf proxy\-Connect\-Timeout} ()
\item 
static int {\bf response\-Timeout} ()
\item 
static bool {\bf use\-Proxy} ()
\item 
static bool {\bf use\-Reverse\-Proxy} ()
\item 
static {\bf Proxy\-Type} {\bf proxy\-Type} ()
\item 
static {\bf Proxy\-Auth\-Mode} {\bf proxy\-Auth\-Mode} ()
\item 
static {\bf QString} {\bf no\-Proxy\-For} ()
\item 
static {\bf QString} {\bf proxy\-For} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf proxy\-For\-URL} (const {\bf KURL} \&url)
\item 
static void {\bf bad\-Proxy} (const {\bf QString} \&proxy)
\item 
static {\bf QString} {\bf proxy\-Config\-Script} ()
\item 
static bool {\bf use\-Cache} ()
\item 
static int {\bf max\-Cache\-Age} ()
\item 
static int {\bf max\-Cache\-Size} ()
\item 
static {\bf QString} {\bf cache\-Dir} ()
\item 
static {\bf KIO::Cache\-Control} {\bf cache\-Control} ()
\item 
static bool {\bf auto\-Resume} ()
\item 
static bool {\bf mark\-Partial} ()
\item 
static int {\bf minimum\-Keep\-Size} ()
\item 
static bool {\bf persistent\-Proxy\-Connection} ()
\item 
static bool {\bf persistent\-Connections} ()
\item 
static void {\bf reparse\-Configuration} ()
\item 
static {\bf QString} {\bf slave\-Protocol} (const {\bf KURL} \&url, {\bf QString} \&proxy)
\item 
static {\bf KConfig} $\ast$ {\bf config} ()\label{classKProtocolManager_e28}

\end{CompactItemize}


\subsection{Detailed Description}
Provides information about I/O (Internet, etc.) settings chosen/set by the end user. 

KProtocol\-Manager has a heap of static functions that allows only read access to KDE's IO related settings. These include proxy, cache, file transfer resumption, timeout and user-agent related settings.

The information provided by this class is generic enough to be applicable to any application that makes use of KDE's IO sub-system. Note that this mean the proxy, timeout etc. settings are saved in a separate user-specific config file and not in the config file of the application.

Original author: \begin{Desc}
\item[Author:]Torben Weis $<${\tt weis@kde.org}$>$\end{Desc}
Revised by: \begin{Desc}
\item[Author:]Waldo Bastain $<${\tt bastain@kde.org}$>$ 

Dawit Alemayehu $<${\tt adawit@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[See also:]KPAC \end{Desc}




Definition at line 54 of file kprotocolmanager.h.

\subsection{Member Enumeration Documentation}
\index{KProtocolManager@{KProtocol\-Manager}!ProxyType@{ProxyType}}
\index{ProxyType@{ProxyType}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KProtocol\-Manager::Proxy\-Type}}\label{classKProtocolManager_w7}


Types of proxy configuration \begin{itemize}
\item No\-Proxy - No proxy is used \item Manual\-Proxy - Proxies are manually configured \item PACProxy - A Proxy configuration URL has been given \item WPADProxy - A proxy should be automatically discovered \item Env\-Var\-Proxy - Use the proxy values set through environment variables. \end{itemize}




Definition at line 157 of file kprotocolmanager.h.\index{KProtocolManager@{KProtocol\-Manager}!ProxyAuthMode@{ProxyAuthMode}}
\index{ProxyAuthMode@{ProxyAuthMode}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KProtocol\-Manager::Proxy\-Auth\-Mode}}\label{classKProtocolManager_w8}


Proxy authorization modes. 

\begin{itemize}
\item Prompt - Ask for authorization as needed \item Automatic - Use auto login as defined in kionetrc files. \end{itemize}


Definition at line 178 of file kprotocolmanager.h.

\subsection{Member Function Documentation}
\index{KProtocolManager@{KProtocol\-Manager}!defaultUserAgent@{defaultUserAgent}}
\index{defaultUserAgent@{defaultUserAgent}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::default\-User\-Agent ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e0}


Returns the default user-agent string. 

\begin{Desc}
\item[Returns:]the default user-agent string \end{Desc}


Definition at line 431 of file kprotocolmanager.cpp.

Referenced by user\-Agent\-For\-Host().\index{KProtocolManager@{KProtocol\-Manager}!defaultUserAgent@{defaultUserAgent}}
\index{defaultUserAgent@{defaultUserAgent}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::default\-User\-Agent (const {\bf QString} \& {\em keys})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e1}


Returns the default user-agent value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em keys}]can be any of the following: \begin{itemize}
\item 'o' Show OS \item 'v' Show OS Version \item 'p' Show platform \item 'm' Show machine architecture \item 'l' Show language \end{itemize}
\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the default user-agent value with the given {\tt keys} \end{Desc}


Definition at line 437 of file kprotocolmanager.cpp.

References QString::arg(), QString::contains(), QString::from\-Latin1(), QString::is\-Empty(), QString\-List::join(), KLocale::language\-List(), and KGlobal::locale().\index{KProtocolManager@{KProtocol\-Manager}!userAgentForHost@{userAgentForHost}}
\index{userAgentForHost@{userAgentForHost}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::user\-Agent\-For\-Host (const {\bf QString} \& {\em hostname})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e2}


Returns the user\-Agent string configured for the specified host. 

If hostname is not found or is empty (i.e. \char`\"{}\char`\"{} or QString::null) this function will return the default user agent.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em hostname}]name of the host \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]specified user\-Agent string \end{Desc}


Definition at line 415 of file kprotocolmanager.cpp.

References default\-User\-Agent(), QString::is\-Empty(), and QString::lower().\index{KProtocolManager@{KProtocol\-Manager}!readTimeout@{readTimeout}}
\index{readTimeout@{readTimeout}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::read\-Timeout ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e3}


Returns the preferred timeout value for reading from remote connections in seconds. 

\begin{Desc}
\item[Returns:]timeout value for remote connection in secs. \end{Desc}


Definition at line 112 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!connectTimeout@{connectTimeout}}
\index{connectTimeout@{connectTimeout}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::connect\-Timeout ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e4}


Returns the preferred timeout value for remote connections in seconds. 

\begin{Desc}
\item[Returns:]timeout value for remote connection in secs. \end{Desc}


Definition at line 120 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!proxyConnectTimeout@{proxyConnectTimeout}}
\index{proxyConnectTimeout@{proxyConnectTimeout}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::proxy\-Connect\-Timeout ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e5}


Returns the preferred timeout value for proxy connections in seconds. 

\begin{Desc}
\item[Returns:]timeout value for proxy connection in secs. \end{Desc}


Definition at line 128 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!responseTimeout@{responseTimeout}}
\index{responseTimeout@{responseTimeout}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::response\-Timeout ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e6}


Returns the preferred response timeout value for remote connecting in seconds. 

\begin{Desc}
\item[Returns:]timeout value for remote connection in seconds. \end{Desc}


Definition at line 136 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!useProxy@{useProxy}}
\index{useProxy@{useProxy}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::use\-Proxy ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e7}


Returns whether or not the user specified the use of proxy server to make connections. 

\begin{Desc}
\item[Returns:]true to use a proxy \end{Desc}


Definition at line 146 of file kprotocolmanager.cpp.

References proxy\-Type().\index{KProtocolManager@{KProtocol\-Manager}!useReverseProxy@{useReverseProxy}}
\index{useReverseProxy@{useReverseProxy}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::use\-Reverse\-Proxy ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e8}


Returns whether or not the the proxy server lookup should be reversed or not. 

\begin{Desc}
\item[Returns:]true to use a reversed proxy \end{Desc}


Definition at line 151 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!proxyType@{proxyType}}
\index{proxyType@{proxyType}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KProtocol\-Manager::Proxy\-Type} KProtocol\-Manager::proxy\-Type ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e9}


Returns the type of proxy configuration that is used. 

\begin{Desc}
\item[Returns:]the proxy type \end{Desc}


Definition at line 158 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().

Referenced by no\-Proxy\-For(), proxy\-For\-URL(), and use\-Proxy().\index{KProtocolManager@{KProtocol\-Manager}!proxyAuthMode@{proxyAuthMode}}
\index{proxyAuthMode@{proxyAuthMode}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KProtocol\-Manager::Proxy\-Auth\-Mode} KProtocol\-Manager::proxy\-Auth\-Mode ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e10}


Returns the way proxy authorization should be handled. 

\begin{Desc}
\item[Returns:]the proxy authorization mode \end{Desc}
\begin{Desc}
\item[See also:]{\bf Proxy\-Auth\-Mode}{\rm (p.\,\pageref{classKProtocolManager_w8})} \end{Desc}


Definition at line 165 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!noProxyFor@{noProxyFor}}
\index{noProxyFor@{noProxyFor}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::no\-Proxy\-For ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e11}


Returns the strings for hosts that should contacted DIRECTLY, bypassing any proxy settings. 

\begin{Desc}
\item[Returns:]a list of (comma-separated) hostnames or partial host names \end{Desc}


Definition at line 207 of file kprotocolmanager.cpp.

References QString::from\-Local8Bit(), QString::local8Bit(), proxy\-Type(), KConfig\-Base::read\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!proxyFor@{proxyFor}}
\index{proxyFor@{proxyFor}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::proxy\-For (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e12}


Returns the proxy server address for a given protocol. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol whose proxy info is needed \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the proxy server address if one is available, or QString::null if not available \end{Desc}


Definition at line 221 of file kprotocolmanager.cpp.

References QString::lower(), KConfig\-Base::read\-Entry(), and KConfig\-Base::set\-Group().

Referenced by proxy\-For\-URL().\index{KProtocolManager@{KProtocol\-Manager}!proxyForURL@{proxyForURL}}
\index{proxyForURL@{proxyForURL}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::proxy\-For\-URL (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e13}


Returns the Proxy server address for a given URL If automatic proxy configuration is configured, KPAC is used to determine the proxy server, otherwise the return value of proxy\-For for the URL's protocol is used. 

If an empty string is returned, the request is to be aborted, a return value of \char`\"{}DIRECT\char`\"{} requests a direct connection.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the URL whose proxy info is needed \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the proxy server address if one is available or QString::null otherwise \end{Desc}


Definition at line 235 of file kprotocolmanager.cpp.

References QString::from\-Latin1(), QString::from\-Local8Bit(), QString::is\-Empty(), QString::local8Bit(), QString::lower(), KURL::protocol(), proxy\-For(), proxy\-Type(), KURL::set\-Protocol(), QString::starts\-With(), and QString::strip\-White\-Space().\index{KProtocolManager@{KProtocol\-Manager}!badProxy@{badProxy}}
\index{badProxy@{badProxy}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProtocol\-Manager::bad\-Proxy (const {\bf QString} \& {\em proxy})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e14}


Marks this proxy as bad (down). 

It will not be used for the next 30 minutes. (The script may supply an alternate proxy) \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em proxy}]the proxy to mark as bad (as URL) \end{description}
\end{Desc}


Definition at line 280 of file kprotocolmanager.cpp.\index{KProtocolManager@{KProtocol\-Manager}!proxyConfigScript@{proxyConfigScript}}
\index{proxyConfigScript@{proxyConfigScript}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::proxy\-Config\-Script ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e15}


Returns the URL of the script for automatic proxy configuration. 

\begin{Desc}
\item[Returns:]the proxy configuration script \end{Desc}


Definition at line 525 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!useCache@{useCache}}
\index{useCache@{useCache}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::use\-Cache ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e16}


Returns true/false to indicate whether a cache should be used. 

\begin{Desc}
\item[Returns:]true to use the cache, false otherwisea \end{Desc}


Definition at line 174 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry().\index{KProtocolManager@{KProtocol\-Manager}!maxCacheAge@{maxCacheAge}}
\index{maxCacheAge@{maxCacheAge}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::max\-Cache\-Age ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e17}


Returns the maximum age in seconds cached files should be kept before they are deleted as necessary. 

\begin{Desc}
\item[Returns:]the maximum cache age in seconds \end{Desc}


Definition at line 195 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry().\index{KProtocolManager@{KProtocol\-Manager}!maxCacheSize@{maxCacheSize}}
\index{maxCacheSize@{maxCacheSize}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::max\-Cache\-Size ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e18}


Returns the maximum size that can be used for caching. 

By default this function returns the DEFAULT\_\-MAX\_\-CACHE\_\-SIZE value as defined in {\bf http\_\-slave\_\-defaults.h}{\rm (p.\,\pageref{http__slave__defaults_8h})}. Not that the value returned is in bytes, hence a value of 5120 would mean 5 Kb.

\begin{Desc}
\item[Returns:]the maximum cache size in bytes \end{Desc}


Definition at line 201 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry().\index{KProtocolManager@{KProtocol\-Manager}!cacheDir@{cacheDir}}
\index{cacheDir@{cacheDir}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::cache\-Dir ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e19}


The directory which contains the cache files. 

\begin{Desc}
\item[Returns:]the directory that contains the cache files \end{Desc}


Definition at line 189 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Path\-Entry().\index{KProtocolManager@{KProtocol\-Manager}!cacheControl@{cacheControl}}
\index{cacheControl@{cacheControl}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIO::Cache\-Control} KProtocol\-Manager::cache\-Control ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e20}


Returns the Cache control directive to be used. 

\begin{Desc}
\item[Returns:]the cache control value \end{Desc}


Definition at line 180 of file kprotocolmanager.cpp.

References QString::is\-Empty(), KIO::parse\-Cache\-Control(), and KConfig\-Base::read\-Entry().\index{KProtocolManager@{KProtocol\-Manager}!autoResume@{autoResume}}
\index{autoResume@{autoResume}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::auto\-Resume ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e21}


Returns true if partial downloads should be automatically resumed. 

\begin{Desc}
\item[Returns:]true to resume partial downloads \end{Desc}


Definition at line 504 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!markPartial@{markPartial}}
\index{markPartial@{markPartial}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::mark\-Partial ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e22}


Returns true if partial downloads should be marked with a \char`\"{}.part\char`\"{} extension. 

\begin{Desc}
\item[Returns:]true if partial downloads should get an \char`\"{}.part\char`\"{} extension \end{Desc}


Definition at line 489 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!minimumKeepSize@{minimumKeepSize}}
\index{minimumKeepSize@{minimumKeepSize}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KProtocol\-Manager::minimum\-Keep\-Size ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e23}


Returns the minimum file size for keeping aborted downloads. 

Any data downloaded that does not meet this minimum requirement will simply be discarded. The default size is 5 KB.

\begin{Desc}
\item[Returns:]the minimum keep size for aborted downloads in bytes \end{Desc}


Definition at line 496 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Num\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!persistentProxyConnection@{persistentProxyConnection}}
\index{persistentProxyConnection@{persistentProxyConnection}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::persistent\-Proxy\-Connection ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e24}


Returns true if proxy connections should be persistent. 

\begin{Desc}
\item[Returns:]true if proxy connections should be persistent \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 518 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!persistentConnections@{persistentConnections}}
\index{persistentConnections@{persistentConnections}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Manager::persistent\-Connections ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e25}


Returns true if connections should be persistent. 

\begin{Desc}
\item[Returns:]true if the connections should be persistent \end{Desc}


Definition at line 511 of file kprotocolmanager.cpp.

References KConfig\-Base::read\-Bool\-Entry(), and KConfig\-Base::set\-Group().\index{KProtocolManager@{KProtocol\-Manager}!reparseConfiguration@{reparseConfiguration}}
\index{reparseConfiguration@{reparseConfiguration}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProtocol\-Manager::reparse\-Configuration ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e26}


Force a reload of the general config file of io-slaves ( kioslaverc). 



Definition at line 78 of file kprotocolmanager.cpp.

References KStatic\-Deleter$<$ type $>$::destruct\-Object().\index{KProtocolManager@{KProtocol\-Manager}!slaveProtocol@{slaveProtocol}}
\index{slaveProtocol@{slaveProtocol}!KProtocolManager@{KProtocol\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Manager::slave\-Protocol (const {\bf KURL} \& {\em url}, {\bf QString} \& {\em proxy})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e27}


Return the protocol to use in order to handle the given {\tt url} It's usually the same, except that FTP, when handled by a proxy, needs an HTTP ioslave. 

When a proxy is to be used, proxy contains the URL for the proxy. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \item[{\em proxy}]the URL of the proxy to use \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the slave protocol (e.g. 'http'), can be null if unknown \end{Desc}


Definition at line 326 of file kprotocolmanager.cpp.

References endl(), QValue\-List::from\-Last(), QString::is\-Empty(), kd\-Debug(), QString::latin1(), QString::lower(), QString::number(), KURL::split(), QString::starts\-With(), and QString::strip\-White\-Space().

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