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

KDE3Support

Public Types | Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
K3PasswordEdit Class Reference

#include <k3passworddialog.h>

Inheritance diagram for K3PasswordEdit:
Inheritance graph
[legend]

Public Types

enum  EchoModes { OneStar, ThreeStars, NoEcho }
 

Public Slots

virtual void insert (const QString &)
 

Public Member Functions

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

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 geert.nosp@m.j@kd.nosp@m.e.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)
protectedvirtual

Definition at line 216 of file k3passworddialog.cpp.

void K3PasswordEdit::focusInEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 178 of file k3passworddialog.cpp.

void K3PasswordEdit::insert ( const QString &  txt)
virtualslot

Reimplementation.

Definition at line 154 of file k3passworddialog.cpp.

void K3PasswordEdit::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

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
newLengthThe 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal