\section{KPassword\-Dialog Class Reference}
\label{classKPasswordDialog}\index{KPasswordDialog@{KPasswordDialog}}
A password input dialog.  


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

Inheritance diagram for KPassword\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKPasswordDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPassword\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=225pt]{classKPasswordDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Types} \{ {\bf Password}, 
{\bf New\-Password}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPassword\-Dialog} ({\bf Types} type, bool enable\-Keep, int extra\-Bttn, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KPassword\-Dialog} (int type, {\bf QString} prompt, bool enable\-Keep=false, int extra\-Bttn=0) KDE\_\-DEPRECATED
\item 
{\bf KPassword\-Dialog} ({\bf Types} type, bool enable\-Keep, int extra\-Bttn, const {\bf QString} \&icon\-Name, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KPassword\-Dialog} ()
\item 
void {\bf set\-Prompt} ({\bf QString} prompt)
\item 
{\bf QString} {\bf prompt} () const 
\item 
void {\bf add\-Line} ({\bf QString} key, {\bf QString} value)
\item 
void {\bf set\-Allow\-Empty\-Passwords} (bool allowed)
\item 
bool {\bf allow\-Empty\-Passwords} () const 
\item 
void {\bf set\-Minimum\-Password\-Length} (int min\-Length)
\item 
int {\bf minimum\-Password\-Length} () const 
\item 
void {\bf set\-Maximum\-Password\-Length} (int max\-Length)
\item 
int {\bf maximum\-Password\-Length} () const 
\item 
void {\bf set\-Reasonable\-Password\-Length} (int reasonable\-Length)
\item 
int {\bf reasonable\-Password\-Length} () const 
\item 
void {\bf set\-Password\-Strength\-Warning\-Level} (int warning\-Level)
\item 
int {\bf password\-Strength\-Warning\-Level} () const 
\item 
const char $\ast$ {\bf password} () const 
\item 
void {\bf clear\-Password} ()
\item 
bool {\bf keep} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static int {\bf get\-Password} ({\bf QCString} \&password, {\bf QString} prompt, int $\ast$keep=0L)
\item 
static int {\bf get\-New\-Password} ({\bf QCString} \&password, {\bf QString} prompt)
\item 
static void {\bf disable\-Core\-Dumps} ()
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Ok} ()
\item 
void {\bf slot\-Cancel} ()
\item 
void {\bf slot\-Keep} (bool)\label{classKPasswordDialog_j2}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual bool {\bf check\-Password} (const char $\ast$)
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKPasswordDialog_b1}

\end{CompactItemize}


\subsection{Detailed Description}
A password input dialog. 

This dialog asks the user to enter a password. The functions you're probably interested in are the static methods, {\bf get\-Password()}{\rm (p.\,\pageref{classKPasswordDialog_e0})} and {\bf get\-New\-Password()}{\rm (p.\,\pageref{classKPasswordDialog_e1})}.

{\bf Usage example}\par




\footnotesize\begin{verbatim} QCString password;
 int result = KPasswordDialog::getPassword(password, i18n("Prompt message"));
 if (result == KPasswordDialog::Accepted)
     use(password);
\end{verbatim}
\normalsize


 {\bf Security notes:}\par


Keeping passwords in memory can be a potential security hole. You should handle this situation with care.

\begin{itemize}
\item You may want to use disable\-Core\-Dump() to disable core dumps. Core dumps are dangerous because they are an image of the process memory, and thus include any passwords that were in memory.\end{itemize}
\begin{itemize}
\item You should delete passwords as soon as they are not needed anymore. The functions {\bf get\-Password()}{\rm (p.\,\pageref{classKPasswordDialog_e0})} and {\bf get\-New\-Password()}{\rm (p.\,\pageref{classKPasswordDialog_e1})} return the password as a {\bf QCString}. I believe this is safer than a {\bf QString}. A {\bf QString} stores its characters internally as 16-bit wide values, so conversions are needed, both for creating the {\bf QString} and by using it. The temporary memory used for these conversion is probably not erased. This could lead to stray passwords in memory, even if you think you erased all of them.\end{itemize}
\begin{Desc}
\item[Author:]Geert Jansen $<${\tt jansen@kde.org}$>$ \end{Desc}




Definition at line 166 of file kpassdlg.h.

\subsection{Member Enumeration Documentation}
\index{KPasswordDialog@{KPassword\-Dialog}!Types@{Types}}
\index{Types@{Types}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KPassword\-Dialog::Types}}\label{classKPasswordDialog_w2}


This enum distinguishes the two operation modes of this dialog:. 

\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Password@{Password}!KPasswordDialog@{KPasswordDialog}}\index{KPasswordDialog@{KPasswordDialog}!Password@{Password}}\item[{\em 
Password\label{classKPasswordDialog_w2w0}
}]The user is asked to enter a password. \index{NewPassword@{NewPassword}!KPasswordDialog@{KPasswordDialog}}\index{KPasswordDialog@{KPasswordDialog}!NewPassword@{NewPassword}}\item[{\em 
New\-Password\label{classKPasswordDialog_w2w1}
}]The user is asked to enter a password and to confirm it a second time. 

This is usually used when the user changes his password. \end{description}
\end{Desc}



Definition at line 175 of file kpassdlg.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPasswordDialog@{KPassword\-Dialog}!KPasswordDialog@{KPasswordDialog}}
\index{KPasswordDialog@{KPasswordDialog}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Dialog::KPassword\-Dialog ({\bf Types} {\em type}, bool {\em enable\-Keep}, int {\em extra\-Bttn}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPasswordDialog_a0}


Constructs a password dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type:}]if New\-Password is given here, the dialog contains two input fields, so that the user must confirm his password and possible typos are detected immediately. \item[{\em enable\-Keep:}]if true, a check box is shown in the dialog which allows the user to keep his password input for later. \item[{\em extra\-Bttn:}]allows to show additional buttons, {\bf KDialog\-Base}{\rm (p.\,\pageref{classKDialogBase})}. \item[{\em parent}]Passed to lower level constructor. \item[{\em name}]Passed to lower level constructor\end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.0 \end{Desc}


Definition at line 301 of file kpassdlg.cpp.

Referenced by get\-New\-Password(), and get\-Password().\index{KPasswordDialog@{KPassword\-Dialog}!KPasswordDialog@{KPasswordDialog}}
\index{KPasswordDialog@{KPasswordDialog}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Dialog::KPassword\-Dialog (int {\em type}, {\bf QString} {\em prompt}, bool {\em enable\-Keep} = {\tt false}, int {\em extra\-Bttn} = {\tt 0})}\label{classKPasswordDialog_a1}


\begin{Desc}
\item[{\bf Deprecated}]Variant of the previous constructor without the possibility to specify a parent. Will be removed in {\bf KDE} 4.0 \end{Desc}


Definition at line 322 of file kpassdlg.cpp.

References set\-Prompt().\index{KPasswordDialog@{KPassword\-Dialog}!KPasswordDialog@{KPasswordDialog}}
\index{KPasswordDialog@{KPasswordDialog}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Dialog::KPassword\-Dialog ({\bf Types} {\em type}, bool {\em enable\-Keep}, int {\em extra\-Bttn}, const {\bf QString} \& {\em icon\-Name}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPasswordDialog_a2}


Construct a password dialog. 

Essentially the same as above but allows the icon in the password dialog to be set via {\tt icon\-Name}. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]if New\-Password is given here, the dialog contains two input fields, so that the user must confirm his password and possible typos are detected immediately \item[{\em enable\-Keep:}]if true, a check box is shown in the dialog which allows the user to keep his password input for later. \item[{\em extra\-Bttn:}]allows to show additional buttons. \item[{\em icon\-Name}]the name of the icon to be shown in the dialog. If empty, a default icon is used \item[{\em parent}]Passed to lower level constructor. \item[{\em name}]Passed to lower level constructor \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 310 of file kpassdlg.cpp.\index{KPasswordDialog@{KPassword\-Dialog}!~KPasswordDialog@{$\sim$KPasswordDialog}}
\index{~KPasswordDialog@{$\sim$KPasswordDialog}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassword\-Dialog::$\sim${\bf KPassword\-Dialog} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKPasswordDialog_a3}


Destructs the password dialog. 



Definition at line 455 of file kpassdlg.cpp.

\subsection{Member Function Documentation}
\index{KPasswordDialog@{KPassword\-Dialog}!setPrompt@{setPrompt}}
\index{setPrompt@{setPrompt}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Prompt ({\bf QString} {\em prompt})}\label{classKPasswordDialog_a4}


Sets the password prompt. 



Definition at line 467 of file kpassdlg.cpp.

References QLabel::set\-Text().

Referenced by KPassword\-Dialog().\index{KPasswordDialog@{KPassword\-Dialog}!prompt@{prompt}}
\index{prompt@{prompt}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KPassword\-Dialog::prompt () const}\label{classKPasswordDialog_a5}


Returns the password prompt. 



Definition at line 474 of file kpassdlg.cpp.

References QLabel::text().\index{KPasswordDialog@{KPassword\-Dialog}!addLine@{addLine}}
\index{addLine@{addLine}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::add\-Line ({\bf QString} {\em key}, {\bf QString} {\em value})}\label{classKPasswordDialog_a6}


Adds a line of information to the dialog. 



Definition at line 482 of file kpassdlg.cpp.

References QGrid\-Layout::add\-Widget(), and QLabel::set\-Alignment().\index{KPasswordDialog@{KPassword\-Dialog}!setAllowEmptyPasswords@{setAllowEmptyPasswords}}
\index{setAllowEmptyPasswords@{setAllowEmptyPasswords}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Allow\-Empty\-Passwords (bool {\em allowed})}\label{classKPasswordDialog_a7}


Allow empty passwords? - Default: false \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 658 of file kpassdlg.cpp.

References allow\-Empty\-Passwords().\index{KPasswordDialog@{KPassword\-Dialog}!allowEmptyPasswords@{allowEmptyPasswords}}
\index{allowEmptyPasswords@{allowEmptyPasswords}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KPassword\-Dialog::allow\-Empty\-Passwords () const}\label{classKPasswordDialog_a8}


Allow empty passwords? \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 664 of file kpassdlg.cpp.

Referenced by set\-Allow\-Empty\-Passwords().\index{KPasswordDialog@{KPassword\-Dialog}!setMinimumPasswordLength@{setMinimumPasswordLength}}
\index{setMinimumPasswordLength@{setMinimumPasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Minimum\-Password\-Length (int {\em min\-Length})}\label{classKPasswordDialog_a9}


Minimum acceptable password length. 

Default: If empty passwords are forbidden, 1; Otherwise, 0.

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


Definition at line 668 of file kpassdlg.cpp.

References minimum\-Password\-Length().\index{KPasswordDialog@{KPassword\-Dialog}!minimumPasswordLength@{minimumPasswordLength}}
\index{minimumPasswordLength@{minimumPasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::minimum\-Password\-Length () const}\label{classKPasswordDialog_a10}


Minimum acceptable password length. 

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


Definition at line 673 of file kpassdlg.cpp.

Referenced by set\-Minimum\-Password\-Length().\index{KPasswordDialog@{KPassword\-Dialog}!setMaximumPasswordLength@{setMaximumPasswordLength}}
\index{setMaximumPasswordLength@{setMaximumPasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Maximum\-Password\-Length (int {\em max\-Length})}\label{classKPasswordDialog_a11}


Maximum acceptable password length. 

Limited to 199. Default: No limit, i.e. -1

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


Definition at line 677 of file kpassdlg.cpp.

References maximum\-Password\-Length(), and KPassword\-Edit::set\-Max\-Password\-Length().\index{KPasswordDialog@{KPassword\-Dialog}!maximumPasswordLength@{maximumPasswordLength}}
\index{maximumPasswordLength@{maximumPasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::maximum\-Password\-Length () const}\label{classKPasswordDialog_a12}


Maximum acceptable password length. 

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


Definition at line 689 of file kpassdlg.cpp.

Referenced by set\-Maximum\-Password\-Length(), and set\-Reasonable\-Password\-Length().\index{KPasswordDialog@{KPassword\-Dialog}!setReasonablePasswordLength@{setReasonablePasswordLength}}
\index{setReasonablePasswordLength@{setReasonablePasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Reasonable\-Password\-Length (int {\em reasonable\-Length})}\label{classKPasswordDialog_a13}


Password length that is expected to be reasonably safe. 

Default: 8 - the standard UNIX password length

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


Definition at line 695 of file kpassdlg.cpp.

References maximum\-Password\-Length().\index{KPasswordDialog@{KPassword\-Dialog}!reasonablePasswordLength@{reasonablePasswordLength}}
\index{reasonablePasswordLength@{reasonablePasswordLength}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::reasonable\-Password\-Length () const}\label{classKPasswordDialog_a14}


Password length that is expected to be reasonably safe. 

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


Definition at line 704 of file kpassdlg.cpp.\index{KPasswordDialog@{KPassword\-Dialog}!setPasswordStrengthWarningLevel@{setPasswordStrengthWarningLevel}}
\index{setPasswordStrengthWarningLevel@{setPasswordStrengthWarningLevel}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::set\-Password\-Strength\-Warning\-Level (int {\em warning\-Level})}\label{classKPasswordDialog_a15}


Set the password strength level below which a warning is given Value is in the range 0 to 99. 

Empty passwords score 0; non-empty passwords score up to 100, depending on their length and whether they contain numbers, mixed case letters and punctuation.

Default: 1 - warn if the password has no discernable strength whatsoever \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em warning\-Level:}]The level below which a warning should be given. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 709 of file kpassdlg.cpp.\index{KPasswordDialog@{KPassword\-Dialog}!passwordStrengthWarningLevel@{passwordStrengthWarningLevel}}
\index{passwordStrengthWarningLevel@{passwordStrengthWarningLevel}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::password\-Strength\-Warning\-Level () const}\label{classKPasswordDialog_a16}


Password strength level below which a warning is given \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 715 of file kpassdlg.cpp.\index{KPasswordDialog@{KPassword\-Dialog}!password@{password}}
\index{password@{password}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ KPassword\-Dialog::password () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPasswordDialog_a17}


Returns the password entered. 

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

Definition at line 334 of file kpassdlg.h.

Referenced by get\-New\-Password(), and get\-Password().\index{KPasswordDialog@{KPassword\-Dialog}!clearPassword@{clearPassword}}
\index{clearPassword@{clearPassword}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::clear\-Password ()}\label{classKPasswordDialog_a18}


Clears the password input field. 

You might want to use this after the user failed to enter the correct password. \begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 461 of file kpassdlg.cpp.

References KPassword\-Edit::erase().\index{KPasswordDialog@{KPassword\-Dialog}!keep@{keep}}
\index{keep@{keep}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KPassword\-Dialog::keep () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPasswordDialog_a19}


Returns true if the user wants to keep the password. 



Definition at line 346 of file kpassdlg.h.

Referenced by get\-Password().\index{KPasswordDialog@{KPassword\-Dialog}!getPassword@{getPassword}}
\index{getPassword@{getPassword}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::get\-Password ({\bf QCString} \& {\em password}, {\bf QString} {\em prompt}, int $\ast$ {\em keep} = {\tt 0L})\hspace{0.3cm}{\tt  [static]}}\label{classKPasswordDialog_e0}


Pops up the dialog, asks the user for a password, and returns it. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em password}]The password is returned in this reference parameter. \item[{\em prompt}]A prompt for the password. This can be a few lines of information. The text is word broken to fit nicely in the dialog. \item[{\em keep}]Enable/disable a checkbox controlling password keeping. If you pass a null pointer, or a pointer to the value 0, the checkbox is not shown. If you pass a pointer to a nonzero value, the checkbox is shown and the result is stored in $\ast$keep. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Result code: Accepted or Rejected. \end{Desc}


Definition at line 553 of file kpassdlg.cpp.

References QDialog::exec(), keep(), KPassword\-Dialog(), password(), and Password.\index{KPasswordDialog@{KPassword\-Dialog}!getNewPassword@{getNewPassword}}
\index{getNewPassword@{getNewPassword}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassword\-Dialog::get\-New\-Password ({\bf QCString} \& {\em password}, {\bf QString} {\em prompt})\hspace{0.3cm}{\tt  [static]}}\label{classKPasswordDialog_e1}


Pops up the dialog, asks the user for a password and returns it. 

The user has to enter the password twice to make sure it was entered correctly.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em password}]The password is returned in this reference parameter. \item[{\em prompt}]A prompt for the password. This can be a few lines of information. The text is word broken to fit nicely in the dialog. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Result code: Accepted or Rejected. \end{Desc}


Definition at line 570 of file kpassdlg.cpp.

References QDialog::exec(), KPassword\-Dialog(), and password().\index{KPasswordDialog@{KPassword\-Dialog}!disableCoreDumps@{disableCoreDumps}}
\index{disableCoreDumps@{disableCoreDumps}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::disable\-Core\-Dumps ()\hspace{0.3cm}{\tt  [static]}}\label{classKPasswordDialog_e2}


Static helper function that disables core dumps. 



Definition at line 582 of file kpassdlg.cpp.\index{KPasswordDialog@{KPassword\-Dialog}!slotOk@{slotOk}}
\index{slotOk@{slotOk}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::slot\-Ok ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKPasswordDialog_j0}


Activated when the Ok button has been clicked. 

The {\bf QDialog::accept()} is activated. 

Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j6})}.

Definition at line 509 of file kpassdlg.cpp.

References QDialog::accept(), check\-Password(), KPassword\-Edit::password(), KMessage\-Box::sorry(), and KMessage\-Box::warning\-Yes\-No().\index{KPasswordDialog@{KPassword\-Dialog}!slotCancel@{slotCancel}}
\index{slotCancel@{slotCancel}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassword\-Dialog::slot\-Cancel ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKPasswordDialog_j1}


Activated when the Cancel button has been clicked. 

The {\bf QDialog::reject()} is activated in regular mode and QDialog::done( Cancel ) when in message box mode. 

Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j11})}.

Definition at line 540 of file kpassdlg.cpp.

References QDialog::reject().\index{KPasswordDialog@{KPassword\-Dialog}!checkPassword@{checkPassword}}
\index{checkPassword@{checkPassword}!KPasswordDialog@{KPassword\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KPassword\-Dialog::check\-Password (const char $\ast$)\hspace{0.3cm}{\tt  [inline, protected, virtual]}}\label{classKPasswordDialog_b0}


Virtual function that can be overridden to provide password checking in derived classes. 

It should return {\tt true} if the password is valid, {\tt false} otherwise. 

Definition at line 391 of file kpassdlg.h.

Referenced by slot\-Ok().

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