\section{KIO::Net\-RC Class Reference}
\label{classKIO_1_1NetRC}\index{KIO::NetRC@{KIO::NetRC}}
A Singleton class that provides access to passwords stored in .netrc files for automatic login purposes. An interface to the ftp .netrc files.  


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

Collaboration diagram for KIO::Net\-RC:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=101pt]{classKIO_1_1NetRC__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Look\-Up\-Mode} \{ {\bf exact\-Only} =  0x0002, 
{\bf default\-Only} =  0x0004, 
{\bf preset\-Only} =  0x0008
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
bool {\bf lookup} (const {\bf KURL} \&url, {\bf Auto\-Login} \&login, bool userealnetrc=false, {\bf QString} type=QString::null, int mode=(exact\-Only$|$default\-Only))
\item 
void {\bf reload} ()
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf Net\-RC} $\ast$ {\bf self} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf extract} (const char $\ast$, const char $\ast$, int \&)\label{classKIO_1_1NetRC_b0}

\item 
int {\bf openf} (const {\bf QString} \&)\label{classKIO_1_1NetRC_b1}

\item 
bool {\bf parse} (int)\label{classKIO_1_1NetRC_b2}

\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf Auto\-Login}
\begin{CompactList}\small\item\em Contains auto login information. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A Singleton class that provides access to passwords stored in .netrc files for automatic login purposes. An interface to the ftp .netrc files. 

This is only meant to address backward compatability with old automated ftp client style logins...

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




Definition at line 240 of file authinfo.h.

\subsection{Member Enumeration Documentation}
\index{KIO::NetRC@{KIO::Net\-RC}!LookUpMode@{LookUpMode}}
\index{LookUpMode@{LookUpMode}!KIO::NetRC@{KIO::Net\-RC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KIO::Net\-RC::Look\-Up\-Mode}}\label{classKIO_1_1NetRC_w3}


Specifies the mode to be used when searching for a matching automatic login info for a given site :. 

\begin{itemize}
\item exact\-Only search entries with exact host name matches. \item default\-Only search entries that are specified as \char`\"{}default\char`\"{}. \item preset\-Only search entries that are specified as \char`\"{}preset\char`\"{}.\end{itemize}
\begin{Desc}
\item[See also:]{\bf lookup}{\rm (p.\,\pageref{classKIO_1_1NetRC_a0})} \end{Desc}


Definition at line 254 of file authinfo.h.

\subsection{Member Function Documentation}
\index{KIO::NetRC@{KIO::Net\-RC}!self@{self}}
\index{self@{self}!KIO::NetRC@{KIO::Net\-RC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Net\-RC} $\ast$ Net\-RC::self ()\hspace{0.3cm}{\tt  [static]}}\label{classKIO_1_1NetRC_e0}


A reference to the instance of the class. 

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


Definition at line 115 of file authinfo.cpp.\index{KIO::NetRC@{KIO::Net\-RC}!lookup@{lookup}}
\index{lookup@{lookup}!KIO::NetRC@{KIO::Net\-RC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Net\-RC::lookup (const {\bf KURL} \& {\em url}, {\bf Auto\-Login} \& {\em login}, bool {\em userealnetrc} = {\tt false}, {\bf QString} {\em type} = {\tt QString::null}, int {\em mode} = {\tt (exactOnly$|$defaultOnly)})}\label{classKIO_1_1NetRC_a0}


Looks up the {\tt login} information for the given {\tt url}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url whose login information will be checked \item[{\em login}]the login information will be writte here \item[{\em userealnetrc}]if true, use \$HOME/.netrc fle \item[{\em type}]the type of the login. If null, the {\tt url's} protocol will be taken \item[{\em mode}]the Look\-Up\-Mode flags (ORed) for the query \end{description}
\end{Desc}


Definition at line 122 of file authinfo.cpp.

References QValue\-List::begin(), QMap::clear(), QMap::contains(), QValue\-List::end(), QDir::home\-Dir\-Path(), QValue\-List::is\-Empty(), QMap::is\-Empty(), QString::is\-Empty(), locate\-Local(), KIO::Net\-RC::Auto\-Login::login, KIO::Net\-RC::Auto\-Login::macdef, KIO::Net\-RC::Auto\-Login::machine, KIO::Net\-RC::Auto\-Login::password, QDir::separator(), and KIO::Net\-RC::Auto\-Login::type.\index{KIO::NetRC@{KIO::Net\-RC}!reload@{reload}}
\index{reload@{reload}!KIO::NetRC@{KIO::Net\-RC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Net\-RC::reload ()\hspace{0.3cm}{\tt  [inline]}}\label{classKIO_1_1NetRC_a1}


Reloads the auto login information. 



Definition at line 297 of file authinfo.h.

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