.TH "KPasswordEdit" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPasswordEdit \- A safe password input widget.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kpassdlg.h>\fP
.PP
Inherits \fBQLineEdit\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBEchoModes\fP { \fBOneStar\fP, \fBThreeStars\fP, \fBNoEcho\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBinsert\fP (const  \fBQString\fP &)"
.br
.RI "\fIReimplementation. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPasswordEdit\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a password input widget using the user's global 'echo mode' setting. \fP"
.ti -1c
.RI "\fBKPasswordEdit\fP (EchoMode \fBechoMode\fP, \fBQWidget\fP *parent, const  char *name)"
.br
.RI "\fIConstructs a password input widget using echoMode as 'echo mode'. \fP"
.ti -1c
.RI "\fBKPasswordEdit\fP (\fBQWidget\fP *parent, const  char *name, int \fBechoMode\fP)"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP, may be removed in \fBKDE\fP 4.0 Creates a password input widget using echoMode as 'echo mode'. \fP"
.ti -1c
.RI "\fB~KPasswordEdit\fP ()"
.br
.RI "\fIDestructs the widget. \fP"
.ti -1c
.RI "const  char * \fBpassword\fP () const "
.br
.RI "\fIReturns the password. \fP"
.ti -1c
.RI "void \fBerase\fP ()"
.br
.RI "\fIErases the current password. \fP"
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "const  int \fBPassLen\fP = 100"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBfocusInEvent\fP (\fBQFocusEvent\fP *e)"
.br
.ti -1c
.RI "virtual bool \fBevent\fP (\fBQEvent\fP *e)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A safe password input widget. 

\fBAuthor:\fP
.RS 4
Geert Jansen <geertj@kde.org>
.RE
.PP
The widget uses the user's global 'echo mode' setting. 
.PP
Definition at line 38 of file kpassdlg.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPasswordEdit::KPasswordEdit (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a password input widget using the user's global 'echo mode' setting. Definition at line 51 of file kpassdlg.cpp.
.PP
References KGlobal::config(), KStdAccel::name(), and KConfigBase::readEntry().
.SS "KPasswordEdit::KPasswordEdit (EchoMode echoMode, \fBQWidget\fP * parent, const char * name)"
.PP
Constructs a password input widget using echoMode as 'echo mode'. \fBVersion:\fP
.RS 4
New in 3.0 
.RE
.PP
Definition at line 74 of file kpassdlg.cpp.
.PP
References KStdAccel::name().
.SS "KPasswordEdit::KPasswordEdit (\fBQWidget\fP * parent, const char * name, int echoMode)"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP, may be removed in \fBKDE\fP 4.0 Creates a password input widget using echoMode as 'echo mode'. Definition at line 68 of file kpassdlg.cpp.
.PP
References KStdAccel::name().
.SS "KPasswordEdit::~\fBKPasswordEdit\fP ()"
.PP
Destructs the widget. Definition at line 89 of file kpassdlg.cpp.
.SH "Member Function Documentation"
.PP 
.SS "const char* KPasswordEdit::password () const\fC [inline]\fP"
.PP
Returns the password. The memory is freed in the destructor so you should make a copy. Definition at line 69 of file kpassdlg.h.
.PP
Referenced by KPasswordDialog::password(), and KPasswordDialog::slotOk().
.SS "void KPasswordEdit::erase ()"
.PP
Erases the current password. Definition at line 111 of file kpassdlg.cpp.
.PP
References QLineEdit::setText().
.SS "void KPasswordEdit::insert (const \fBQString\fP &)\fC [virtual, slot]\fP"
.PP
Reimplementation. Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 96 of file kpassdlg.cpp.
.PP
References QCString::length(), and QString::local8Bit().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
