\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=60pt]{classKPasswordEdit__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPassword\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{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} \&)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPassword\-Edit} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KPassword\-Edit} (Echo\-Mode {\bf echo\-Mode}, {\bf QWidget} $\ast$parent, const char $\ast$name)
\item 
{\bf KPassword\-Edit} (Echo\-Modes {\bf echo\-Mode}, {\bf QWidget} $\ast$parent, const char $\ast$name)
\item 
{\bf KPassword\-Edit} ({\bf QWidget} $\ast$parent, const char $\ast$name, int {\bf echo\-Mode}) KDE\_\-DEPRECATED
\item 
{\bf $\sim$KPassword\-Edit} ()
\item 
const char $\ast$ {\bf password} () const 
\item 
void {\bf erase} ()
\item 
void {\bf set\-Max\-Password\-Length} (int new\-Length)
\item 
int {\bf max\-Password\-Length} () const 
\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
static const int {\bf Pass\-Len} = 200\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 39 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} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPasswordEdit_a0}


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



Definition at line 105 of file kpassdlg.cpp.

References KGlobal::config(), 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`\"{}. 

Note that echo\-Mode is a QLine\-Edit::Echo\-Mode. \begin{Desc}
\item[Since:]3.0 \end{Desc}


Definition at line 135 of file kpassdlg.cpp.\index{KPasswordEdit@{KPassword\-Edit}!KPasswordEdit@{KPasswordEdit}}
\index{KPasswordEdit@{KPasswordEdit}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Edit::KPassword\-Edit (Echo\-Modes {\em echo\-Mode}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name})}\label{classKPasswordEdit_a2}


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

Note that echo\-Mode is a KPassword\-Edit::Echo\-Modes. \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 129 of file kpassdlg.cpp.\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_a3}


\begin{Desc}
\item[{\bf Deprecated}], will be removed in {\bf KDE} 4.0 Creates a password input widget using echo\-Mode as \char`\"{}echo mode\char`\"{}. \end{Desc}


Definition at line 123 of file kpassdlg.cpp.\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_a4}


Destructs the widget. 



Definition at line 153 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_a5}


Returns the password. 

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

Definition at line 82 of file kpassdlg.h.

Referenced by 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_a6}


Erases the current password. 



Definition at line 177 of file kpassdlg.cpp.

References QLine\-Edit::set\-Text().

Referenced by KPassword\-Dialog::clear\-Password().\index{KPasswordEdit@{KPassword\-Edit}!setMaxPasswordLength@{setMaxPasswordLength}}
\index{setMaxPasswordLength@{setMaxPasswordLength}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Edit::set\-Max\-Password\-Length (int {\em new\-Length})}\label{classKPasswordEdit_a7}


Set the current maximum password length. 

If a password longer than the limit specified is currently entered, it is truncated accordingly.

The length is capped to lie between 0 and 199 inclusive.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em new\-Length:}]The new maximum password length \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 280 of file kpassdlg.cpp.

Referenced by KPassword\-Dialog::set\-Maximum\-Password\-Length().\index{KPasswordEdit@{KPassword\-Edit}!maxPasswordLength@{maxPasswordLength}}
\index{maxPasswordLength@{maxPasswordLength}!KPasswordEdit@{KPassword\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Edit::max\-Password\-Length () const}\label{classKPasswordEdit_a8}


Returns the current maximum password length. 

\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 293 of file kpassdlg.cpp.

Referenced by insert().\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 160 of file kpassdlg.cpp.

References QCString::length(), QString::local8Bit(), and max\-Password\-Length().

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