\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}
 \}
\begin{CompactList}\small\item\em 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}
\item\end{CompactList}\item 
enum {\bf Proxy\-Auth\-Mode} \{ {\bf Prompt}, 
{\bf Automatic}
 \}
\begin{CompactList}\small\item\em Proxy authorization modes. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf default\-User\-Agent} ()
\begin{CompactList}\small\item\em Returns the default user-agent string. \item\end{CompactList}\item 
{\bf QString} {\bf default\-User\-Agent} (const  {\bf QString} \&keys)
\begin{CompactList}\small\item\em Returns the default user-agent value. \item\end{CompactList}\item 
{\bf QString} {\bf user\-Agent\-For\-Host} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Returns the user\-Agent string configured for the specified host. \item\end{CompactList}\item 
int {\bf read\-Timeout} ()
\begin{CompactList}\small\item\em Returns the preferred timeout value for reading from remote connections in seconds. \item\end{CompactList}\item 
int {\bf connect\-Timeout} ()
\begin{CompactList}\small\item\em Returns the preferred timeout value for remote connections in seconds. \item\end{CompactList}\item 
int {\bf proxy\-Connect\-Timeout} ()
\begin{CompactList}\small\item\em Returns the preferred timeout value for proxy connections in seconds. \item\end{CompactList}\item 
int {\bf response\-Timeout} ()
\begin{CompactList}\small\item\em Returns the preferred response timeout value for remote connecting in seconds. \item\end{CompactList}\item 
int {\bf default\-Connect\-Timeout} ()
\begin{CompactList}\small\item\em Returns the set default timeout value for connecting to remote machines. \item\end{CompactList}\item 
bool {\bf use\-Proxy} ()
\begin{CompactList}\small\item\em Returns whether or not the user specified the use of proxy server to make connections. \item\end{CompactList}\item 
bool {\bf use\-Reverse\-Proxy} ()
\begin{CompactList}\small\item\em Returns whether or not the the proxy server lookup should be reversed or not. \item\end{CompactList}\item 
{\bf Proxy\-Type} {\bf proxy\-Type} ()
\begin{CompactList}\small\item\em Returns the type of proxy configuration that is used. \item\end{CompactList}\item 
{\bf Proxy\-Auth\-Mode} {\bf proxy\-Auth\-Mode} ()
\begin{CompactList}\small\item\em Returns the way proxy authorization should be handled. \item\end{CompactList}\item 
{\bf QString} {\bf no\-Proxy\-For} ()
\begin{CompactList}\small\item\em Returns the strings for hosts that should contacted DIRECT bypassing any proxy settings. \item\end{CompactList}\item 
{\bf QString} {\bf proxy\-For} (const  {\bf QString} \&)\label{classKProtocolManager_e13}

\item 
{\bf QString} {\bf proxy\-For\-URL} (const  {\bf KURL} \&)
\begin{CompactList}\small\item\em Returns the Proxy server address for a given URL If automatic proxy configuration is configured, {\bf KPAC}{\rm (p.\,\pageref{classKPAC})} is used to determine the proxy server, otherwise the return value of proxy\-For for the URL's protocol is used. \item\end{CompactList}\item 
void {\bf bad\-Proxy} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Marks this proxy as bad (down). \item\end{CompactList}\item 
{\bf QString} {\bf proxy\-Config\-Script} ()
\item 
bool {\bf use\-Cache} ()
\begin{CompactList}\small\item\em Returns true/false to indicate whether a cache should be used. \item\end{CompactList}\item 
int {\bf max\-Cache\-Age} ()
\begin{CompactList}\small\item\em Returns the maximum age in seconds cached files should be kept before they are deleted as necessary. \item\end{CompactList}\item 
int {\bf max\-Cache\-Size} ()
\begin{CompactList}\small\item\em Returns the maximum size that can be used for caching. \item\end{CompactList}\item 
{\bf QString} {\bf cache\-Dir} ()
\begin{CompactList}\small\item\em The directory which contains the cache files. \item\end{CompactList}\item 
{\bf KIO::Cache\-Control} {\bf cache\-Control} ()
\begin{CompactList}\small\item\em Returns the Cache control directive to be used. \item\end{CompactList}\item 
bool {\bf auto\-Resume} ()
\begin{CompactList}\small\item\em Returns true if partial downloads should be automatically resumed. \item\end{CompactList}\item 
bool {\bf mark\-Partial} ()
\begin{CompactList}\small\item\em Returns true if partial downloads should be marked with a \char`\"{}.part\char`\"{} extension. \item\end{CompactList}\item 
int {\bf minimum\-Keep\-Size} ()
\begin{CompactList}\small\item\em Returns the minimum file size for keeping aborted downloads. \item\end{CompactList}\item 
bool {\bf persistent\-Proxy\-Connection} ()
\begin{CompactList}\small\item\em Returns true if connections should be persistent \begin{Desc}
\item[Since:]3.1. \end{Desc}
\item\end{CompactList}\item 
bool {\bf persistent\-Connections} ()
\begin{CompactList}\small\item\em Returns true if connections should be persistent. \item\end{CompactList}\item 
void {\bf reparse\-Configuration} ()
\begin{CompactList}\small\item\em Force a reload of the general config file of io-slaves ( kioslaverc). \item\end{CompactList}\item 
{\bf QString} {\bf slave\-Protocol} (const  {\bf KURL} \&url, {\bf QString} \&proxy)
\begin{CompactList}\small\item\em 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. \item\end{CompactList}\item 
{\bf KConfig} $\ast$ {\bf config} ()\label{classKProtocolManager_e29}

\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.

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

Dawit Alemayehu $<${\tt adawit@kde.org}$>$ \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 167 of file kprotocolmanager.h.

Referenced by proxy\-For\-URL(), proxy\-Type(), and slave\-Protocol().\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 187 of file kprotocolmanager.h.

Referenced by proxy\-Auth\-Mode().

\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. 

This function returns the default user-agent string 

Definition at line 429 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. 

This function returns the default user-agent value taking into account 'keys'

Keys can be any of the folliwing: 'o' Show OS 'v' Show OS Version 'p' Show platform 'm' Show machine architecture 'l' Show language 

Definition at line 435 of file kprotocolmanager.cpp.

References QString::arg(), QString::contains(), QString::from\-Latin1(), QString::is\-Empty(), QString\-List::join(), KLocale::language\-List(), KGlobal::locale(), and QString::lower().\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} \&)\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 417 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 152 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 160 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 168 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 176 of file kprotocolmanager.cpp.

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


Returns the set default timeout value for connecting to remote machines. 

\begin{Desc}
\item[Returns:]timeout value in seconds \end{Desc}
\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_e8}


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



Definition at line 186 of file kprotocolmanager.cpp.

References proxy\-Type().

Referenced by slave\-Protocol().\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_e9}


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



Definition at line 191 of file kprotocolmanager.cpp.

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

Referenced by slave\-Protocol().\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_e10}


Returns the type of proxy configuration that is used. 



Definition at line 198 of file kprotocolmanager.cpp.

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

Referenced by proxy\-For\-URL(), slave\-Protocol(), 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_e11}


Returns the way proxy authorization should be handled. 

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


Definition at line 205 of file kprotocolmanager.cpp.

References Proxy\-Auth\-Mode, 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_e12}


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



Definition at line 247 of file kprotocolmanager.cpp.

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

Referenced by slave\-Protocol().\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} \&)\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e14}


Returns the Proxy server address for a given URL If automatic proxy configuration is configured, {\bf KPAC}{\rm (p.\,\pageref{classKPAC})} 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 \end{Desc}


Definition at line 268 of file kprotocolmanager.cpp.

References QString::from\-Latin1(), QString::from\-Local8Bit(), KURL::host(), QString::is\-Empty(), QString::local8Bit(), KURL::protocol(), KPAC::proxy\-For\-URL(), proxy\-Type(), Proxy\-Type, and QString::strip\-White\-Space().

Referenced by slave\-Protocol().\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} \&)\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolManager_e15}


Marks this proxy as bad (down). 

It will not be used for the next 30 minutes. (The script may supply an alternate proxy) 

Definition at line 294 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_e16}


\begin{Desc}
\item[Returns:]the URL of the script for automatic proxy configuration \end{Desc}


Definition at line 523 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_e17}


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

\begin{Desc}
\item[Returns:]\end{Desc}


Definition at line 214 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_e18}


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

\begin{Desc}
\item[Returns:]\end{Desc}


Definition at line 235 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_e19}


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 to \end{Desc}


Definition at line 241 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_e20}


The directory which contains the cache files. 



Definition at line 229 of file kprotocolmanager.cpp.

References KGlobal::dirs(), and 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_e21}


Returns the Cache control directive to be used. 



Definition at line 220 of file kprotocolmanager.cpp.

References QString::is\-Empty(), 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_e22}


Returns true if partial downloads should be automatically resumed. 



Definition at line 502 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_e23}


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



Definition at line 487 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_e24}


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.

@ return the minimum keep size for aborted downloads in bytes. 

Definition at line 494 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_e25}


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




Definition at line 516 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_e26}


Returns true if connections should be persistent. 



Definition at line 509 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_e27}


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



Definition at line 81 of file kprotocolmanager.cpp.\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_e28}


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. 

Definition at line 342 of file kprotocolmanager.cpp.

References KURL::host(), QString::is\-Empty(), QString::latin1(), QString::lower(), no\-Proxy\-For(), QString::number(), KURL::port(), KURL::protocol(), proxy\-For\-URL(), proxy\-Type(), Proxy\-Type, QString::starts\-With(), QString::strip\-White\-Space(), use\-Proxy(), and use\-Reverse\-Proxy().

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