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

KDE3Support

K3PasswordEdit Class Reference

A safe password input widget. More...

#include <k3passworddialog.h>

Inheritance diagram for K3PasswordEdit:

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 ()
 K3PasswordEdit (EchoModes echoMode, QWidget *parent=0)
 K3PasswordEdit (EchoMode echoMode, QWidget *parent=0)
 K3PasswordEdit (QWidget *parent=0)
int maxPasswordLength () const
const char * password () const
void setMaxPasswordLength (int newLength)
 ~K3PasswordEdit ()

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.
Deprecated:
use KLineEdit with KLineEdit::setPasswordMode(true)

Definition at line 41 of file k3passworddialog.h.


Member Enumeration Documentation

enum K3PasswordEdit::EchoModes

Enumerator:
OneStar 
ThreeStars 
NoEcho 

Definition at line 47 of file k3passworddialog.h.


Constructor & Destructor Documentation

K3PasswordEdit::K3PasswordEdit ( QWidget *  parent = 0  )  [explicit]

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

Definition at line 102 of file k3passworddialog.cpp.

K3PasswordEdit::K3PasswordEdit ( EchoMode  echoMode,
QWidget *  parent = 0 
) [explicit]

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

Note that echoMode is a QLineEdit::EchoMode.

Definition at line 124 of file k3passworddialog.cpp.

K3PasswordEdit::K3PasswordEdit ( EchoModes  echoMode,
QWidget *  parent = 0 
) [explicit]

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

Note that echoMode is a K3PasswordEdit::EchoModes.

Definition at line 118 of file k3passworddialog.cpp.

K3PasswordEdit::~K3PasswordEdit (  ) 

Destructs the widget.

Definition at line 142 of file k3passworddialog.cpp.


Member Function Documentation

void K3PasswordEdit::erase (  ) 

Erases the current password.

Definition at line 171 of file k3passworddialog.cpp.

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

Definition at line 216 of file k3passworddialog.cpp.

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

Definition at line 178 of file k3passworddialog.cpp.

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

Reimplementation.

Reimplemented from QLineEdit.

Definition at line 154 of file k3passworddialog.cpp.

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

Reimplemented from QLineEdit.

Definition at line 188 of file k3passworddialog.cpp.

int K3PasswordEdit::maxPasswordLength (  )  const

Returns the current maximum password length.

Definition at line 285 of file k3passworddialog.cpp.

const char * K3PasswordEdit::password (  )  const

Returns the password.

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

Definition at line 149 of file k3passworddialog.cpp.

void K3PasswordEdit::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

Definition at line 272 of file k3passworddialog.cpp.


Member Data Documentation

const int K3PasswordEdit::PassLen = 200 [static]

Definition at line 83 of file k3passworddialog.h.


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

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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