\section{KPassword\-Edit Class Reference}
\label{classKPasswordEdit}\index{KPasswordEdit@{KPasswordEdit}}
A safe password input widget.  


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

Inheritance diagram for KPassword\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKPasswordEdit__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPassword\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKPasswordEdit__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Echo\-Modes} \{ {\bf One\-Star}, 
{\bf Three\-Stars}, 
{\bf No\-Echo}
 \}
\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf insert} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Reimplementation. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPassword\-Edit} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a password input widget using the user's global \char`\"{}echo mode\char`\"{} setting. \item\end{CompactList}\item 
{\bf KPassword\-Edit} (Echo\-Mode {\bf echo\-Mode}, {\bf QWidget} $\ast$parent, const  char $\ast$name)
\begin{CompactList}\small\item\em Constructs a password input widget using echo\-Mode as \char`\"{}echo mode\char`\"{}. \item\end{CompactList}\item 
{\bf KPassword\-Edit} ({\bf QWidget} $\ast$parent, const  char $\ast$name, int {\bf echo\-Mode})
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.}, may be removed in {\bf KDE} 4.0 Creates a password input widget using echo\-Mode as \char`\"{}echo mode\char`\"{}. \item\end{CompactList}\item 
{\bf $\sim$KPassword\-Edit} ()
\begin{CompactList}\small\item\em Destructs the widget. \item\end{CompactList}\item 
const  char $\ast$ {\bf password} () const 
\begin{CompactList}\small\item\em Returns the password. \item\end{CompactList}\item 
void {\bf erase} ()
\begin{CompactList}\small\item\em Erases the current password. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
const  int {\bf Pass\-Len} = 100\label{classKPasswordEdit_s0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$)\label{classKPasswordEdit_b0}

\item 
virtual void {\bf focus\-In\-Event} ({\bf QFocus\-Event} $\ast$e)\label{classKPasswordEdit_b1}

\item 
virtual bool {\bf event} ({\bf QEvent} $\ast$e)\label{classKPasswordEdit_b2}

\end{CompactItemize}


\subsection{Detailed Description}
A safe password input widget. 

\begin{Desc}
\item[Author:]Geert Jansen $<${\tt geertj@kde.org}$>$\end{Desc}
The widget uses the user's global \char`\"{}echo mode\char`\"{} setting. 



Definition at line 38 of file kpassdlg.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPasswordEdit@{KPassword\-Edit}!KPasswordEdit@{KPasswordEdit}}
\index{KPasswordEdit@{KPasswordEdit}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Edit::KPassword\-Edit ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKPasswordEdit_a0}


Constructs a password input widget using the user's global \char`\"{}echo mode\char`\"{} setting. 



Definition at line 51 of file kpassdlg.cpp.

References KGlobal::config(), KStd\-Accel::name(), and KConfig\-Base::read\-Entry().\index{KPasswordEdit@{KPassword\-Edit}!KPasswordEdit@{KPasswordEdit}}
\index{KPasswordEdit@{KPasswordEdit}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Edit::KPassword\-Edit (Echo\-Mode {\em echo\-Mode}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name})}\label{classKPasswordEdit_a1}


Constructs a password input widget using echo\-Mode as \char`\"{}echo mode\char`\"{}. 

\begin{Desc}
\item[Version:]New in 3.0 \end{Desc}


Definition at line 74 of file kpassdlg.cpp.

References KStd\-Accel::name().\index{KPasswordEdit@{KPassword\-Edit}!KPasswordEdit@{KPasswordEdit}}
\index{KPasswordEdit@{KPasswordEdit}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Edit::KPassword\-Edit ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name}, int {\em echo\-Mode})}\label{classKPasswordEdit_a2}


{\bf This class or method is obsolete, it is provided for compatibility only.}, may be removed in {\bf KDE} 4.0 Creates a password input widget using echo\-Mode as \char`\"{}echo mode\char`\"{}. 



Definition at line 68 of file kpassdlg.cpp.

References KStd\-Accel::name().\index{KPasswordEdit@{KPassword\-Edit}!~KPasswordEdit@{$\sim$KPasswordEdit}}
\index{~KPasswordEdit@{$\sim$KPasswordEdit}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Edit::$\sim${\bf KPassword\-Edit} ()}\label{classKPasswordEdit_a3}


Destructs the widget. 



Definition at line 89 of file kpassdlg.cpp.

\subsection{Member Function Documentation}
\index{KPasswordEdit@{KPassword\-Edit}!password@{password}}
\index{password@{password}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ KPassword\-Edit::password () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPasswordEdit_a4}


Returns the password. 

The memory is freed in the destructor so you should make a copy. 

Definition at line 69 of file kpassdlg.h.

Referenced by KPassword\-Dialog::password(), and KPassword\-Dialog::slot\-Ok().\index{KPasswordEdit@{KPassword\-Edit}!erase@{erase}}
\index{erase@{erase}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Edit::erase ()}\label{classKPasswordEdit_a5}


Erases the current password. 



Definition at line 111 of file kpassdlg.cpp.

References QLine\-Edit::set\-Text().\index{KPasswordEdit@{KPassword\-Edit}!insert@{insert}}
\index{insert@{insert}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Edit::insert (const {\bf QString} \&)\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKPasswordEdit_i0}


Reimplementation. 



Reimplemented from {\bf QLine\-Edit}.

Definition at line 96 of file kpassdlg.cpp.

References QCString::length(), and QString::local8Bit().

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