• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

KPasswordEdit Class Reference

A safe password input widget. More...

#include <kpassdlg.h>

Inheritance diagram for KPasswordEdit:
TQLineEdit

List of all members.

Public Types

enum  EchoModes { OneStar, ThreeStars, NoEcho }

Public Slots

virtual void insert (const TQString &)

Public Member Functions

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

Static Public Attributes

static const int PassLen = 200

Protected Member Functions

virtual void keyPressEvent (TQKeyEvent *)
virtual void focusInEvent (TQFocusEvent *e)
virtual bool event (TQEvent *e)

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.


Constructor & Destructor Documentation

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

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

Definition at line 82 of file kpassdlg.cpp.

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

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

Note that echoMode is a TQLineEdit::EchoMode.

Since:
3.0

Definition at line 111 of file kpassdlg.cpp.

KPasswordEdit::KPasswordEdit ( EchoModes  echoMode,
TQWidget *  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 118 of file kpassdlg.cpp.

KPasswordEdit::KPasswordEdit ( TQWidget *  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 104 of file kpassdlg.cpp.

KPasswordEdit::~KPasswordEdit (  ) 

Destructs the widget.

Definition at line 138 of file kpassdlg.cpp.


Member Function Documentation

void KPasswordEdit::erase (  ) 

Erases the current password.

Definition at line 150 of file kpassdlg.cpp.

void KPasswordEdit::insert ( const TQString &  str  )  [virtual, slot]

Reimplementation.

Reimplemented from TQLineEdit.

Definition at line 165 of file kpassdlg.cpp.

int KPasswordEdit::maxPasswordLength (  )  const

Returns the current maximum password length.

Since:
3.4

Definition at line 160 of file kpassdlg.cpp.

const char * KPasswordEdit::password (  )  const

Returns the password.

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

Definition at line 142 of file kpassdlg.cpp.

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.

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

Definition at line 155 of file kpassdlg.cpp.


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

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.6.3
This website is maintained by Timothy Pearson.