• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KPasswordEdit Class Reference

A safe password input widget. More...

#include <kpassdlg.h>

Inheritance diagram for KPasswordEdit:

Inheritance graph
[legend]

List of all members.


Public Types

enum  EchoModes { OneStar, ThreeStars, NoEcho }

Public Slots

virtual void insert (const QString &)

Public Member Functions

void erase ()
 KPasswordEdit (QWidget *parent, const char *name, int echoMode) KDE_DEPRECATED
 KPasswordEdit (EchoModes echoMode, QWidget *parent, const char *name)
 KPasswordEdit (EchoMode echoMode, QWidget *parent, const char *name)
 KPasswordEdit (QWidget *parent=0, const char *name=0)
int maxPasswordLength () const
const char * password () const
void setMaxPasswordLength (int newLength)
 ~KPasswordEdit ()

Static Public Attributes

static const int PassLen = 200

Protected Member Functions

virtual bool event (QEvent *e)
virtual void focusInEvent (QFocusEvent *e)
virtual void keyPressEvent (QKeyEvent *)

Detailed Description

A safe password input widget.

Author:
Geert Jansen <geertj@kde.org>
The widget uses the user's global "echo mode" setting.

Definition at line 39 of file kpassdlg.h.


Member Enumeration Documentation

enum KPasswordEdit::EchoModes

Enumerator:
OneStar 
ThreeStars 
NoEcho 

Definition at line 45 of file kpassdlg.h.


Constructor & Destructor Documentation

KPasswordEdit::KPasswordEdit ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructs a password input widget using the user's global "echo mode" setting.

Definition at line 105 of file kpassdlg.cpp.

KPasswordEdit::KPasswordEdit ( EchoMode  echoMode,
QWidget *  parent,
const char *  name 
)

Constructs a password input widget using echoMode as "echo mode".

Note that echoMode is a QLineEdit::EchoMode.

Since:
3.0

Definition at line 136 of file kpassdlg.cpp.

KPasswordEdit::KPasswordEdit ( EchoModes  echoMode,
QWidget *  parent,
const char *  name 
)

Constructs a password input widget using echoMode as "echo mode".

Note that echoMode is a KPasswordEdit::EchoModes.

Since:
3.2

Definition at line 130 of file kpassdlg.cpp.

KPasswordEdit::KPasswordEdit ( QWidget *  parent,
const char *  name,
int  echoMode 
)

Deprecated:
, will be removed in KDE 4.0 Creates a password input widget using echoMode as "echo mode".

Definition at line 124 of file kpassdlg.cpp.

KPasswordEdit::~KPasswordEdit (  ) 

Destructs the widget.

Definition at line 154 of file kpassdlg.cpp.


Member Function Documentation

void KPasswordEdit::erase (  ) 

Erases the current password.

Definition at line 178 of file kpassdlg.cpp.

bool KPasswordEdit::event ( QEvent *  e  )  [protected, virtual]

Definition at line 223 of file kpassdlg.cpp.

void KPasswordEdit::focusInEvent ( QFocusEvent *  e  )  [protected, virtual]

Definition at line 185 of file kpassdlg.cpp.

void KPasswordEdit::insert ( const QString &  txt  )  [virtual, slot]

Reimplementation.

Reimplemented from QLineEdit.

Definition at line 161 of file kpassdlg.cpp.

void KPasswordEdit::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Reimplemented from QLineEdit.

Definition at line 195 of file kpassdlg.cpp.

int KPasswordEdit::maxPasswordLength (  )  const

Returns the current maximum password length.

Since:
3.4

Definition at line 295 of file kpassdlg.cpp.

const char* KPasswordEdit::password (  )  const [inline]

Returns the password.

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

Definition at line 82 of file kpassdlg.h.

void KPasswordEdit::setMaxPasswordLength ( int  newLength  ) 

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.

Parameters:
newLength,: The new maximum password length
Since:
3.4

Definition at line 282 of file kpassdlg.cpp.


Member Data Documentation

const int KPasswordEdit::PassLen = 200 [static]

Definition at line 89 of file kpassdlg.h.


The documentation for this class was generated from the following files:
  • kpassdlg.h
  • kpassdlg.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal