.TH "KPasswordEdit" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPasswordEdit\fP (\fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBKPasswordEdit\fP (EchoMode \fBechoMode\fP, \fBQWidget\fP *parent, const char *name)"
.br
.ti -1c
.RI "\fBKPasswordEdit\fP (EchoModes \fBechoMode\fP, \fBQWidget\fP *parent, const char *name)"
.br
.ti -1c
.RI "\fBKPasswordEdit\fP (\fBQWidget\fP *parent, const char *name, int \fBechoMode\fP) KDE_DEPRECATED"
.br
.ti -1c
.RI "\fB~KPasswordEdit\fP ()"
.br
.ti -1c
.RI "const char * \fBpassword\fP () const "
.br
.ti -1c
.RI "void \fBerase\fP ()"
.br
.ti -1c
.RI "void \fBsetMaxPasswordLength\fP (int newLength)"
.br
.ti -1c
.RI "int \fBmaxPasswordLength\fP () const "
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static const int \fBPassLen\fP = 200"
.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 39 of file kpassdlg.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPasswordEdit::KPasswordEdit (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a password input widget using the user's global 'echo mode' setting. 
.PP
Definition at line 105 of file kpassdlg.cpp.
.PP
References KGlobal::config(), 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'. 
.PP
Note that echoMode is a QLineEdit::EchoMode. 
.PP
\fBSince:\fP
.RS 4
3.0 
.RE
.PP

.PP
Definition at line 135 of file kpassdlg.cpp.
.SS "KPasswordEdit::KPasswordEdit (EchoModes echoMode, \fBQWidget\fP * parent, const char * name)"
.PP
Constructs a password input widget using echoMode as 'echo mode'. 
.PP
Note that echoMode is a KPasswordEdit::EchoModes. 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 129 of file kpassdlg.cpp.
.SS "KPasswordEdit::KPasswordEdit (\fBQWidget\fP * parent, const char * name, int echoMode)"
.PP
\fBDeprecated\fP
.RS 4
, will be removed in \fBKDE\fP 4.0 Creates a password input widget using echoMode as 'echo mode'. 
.RE
.PP

.PP
Definition at line 123 of file kpassdlg.cpp.
.SS "KPasswordEdit::~\fBKPasswordEdit\fP ()"
.PP
Destructs the widget. 
.PP
Definition at line 153 of file kpassdlg.cpp.
.SH "Member Function Documentation"
.PP 
.SS "const char* KPasswordEdit::password () const\fC [inline]\fP"
.PP
Returns the password. 
.PP
The memory is freed in the destructor so you should make a copy. 
.PP
Definition at line 82 of file kpassdlg.h.
.PP
Referenced by KPasswordDialog::slotOk().
.SS "void KPasswordEdit::erase ()"
.PP
Erases the current password. 
.PP
Definition at line 177 of file kpassdlg.cpp.
.PP
References QLineEdit::setText().
.PP
Referenced by KPasswordDialog::clearPassword().
.SS "void KPasswordEdit::setMaxPasswordLength (int newLength)"
.PP
Set the current maximum password length. 
.PP
If a password longer than the limit specified is currently entered, it is truncated accordingly.
.PP
The length is capped to lie between 0 and 199 inclusive.
.PP
\fBParameters:\fP
.RS 4
\fInewLength:\fP The new maximum password length 
.RE
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 280 of file kpassdlg.cpp.
.PP
Referenced by KPasswordDialog::setMaximumPasswordLength().
.SS "int KPasswordEdit::maxPasswordLength () const"
.PP
Returns the current maximum password length. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 293 of file kpassdlg.cpp.
.PP
Referenced by insert().
.SS "void KPasswordEdit::insert (const \fBQString\fP &)\fC [virtual, slot]\fP"
.PP
Reimplementation. 
.PP
Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 160 of file kpassdlg.cpp.
.PP
References QCString::length(), QString::local8Bit(), and maxPasswordLength().

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