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

tdeui

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

#include <kpassdlg.h>

Inherits TQLineEdit.

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) TDE_DEPRECATED
 
 ~KPasswordEdit ()
 
TQString 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 geert.nosp@m.j@kd.nosp@m.e.org

The widget uses the user's global "echo mode" setting.

Definition at line 38 of file kpassdlg.h.

Member Enumeration Documentation

◆ EchoModes

enum KPasswordEdit::EchoModes

Definition at line 44 of file kpassdlg.h.

Constructor & Destructor Documentation

◆ KPasswordEdit() [1/4]

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 80 of file kpassdlg.cpp.

◆ KPasswordEdit() [2/4]

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 109 of file kpassdlg.cpp.

◆ KPasswordEdit() [3/4]

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 116 of file kpassdlg.cpp.

◆ KPasswordEdit() [4/4]

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 102 of file kpassdlg.cpp.

◆ ~KPasswordEdit()

KPasswordEdit::~KPasswordEdit ( )

Destructs the widget.

Definition at line 136 of file kpassdlg.cpp.

Member Function Documentation

◆ erase()

void KPasswordEdit::erase ( )

Erases the current password.

Definition at line 144 of file kpassdlg.cpp.

◆ event()

bool KPasswordEdit::event ( TQEvent *  e)
protectedvirtual

Definition at line 171 of file kpassdlg.cpp.

◆ focusInEvent()

void KPasswordEdit::focusInEvent ( TQFocusEvent *  e)
protectedvirtual

Definition at line 167 of file kpassdlg.cpp.

◆ insert

void KPasswordEdit::insert ( const TQString &  str)
virtualslot

Reimplementation.

Definition at line 159 of file kpassdlg.cpp.

◆ keyPressEvent()

void KPasswordEdit::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Definition at line 163 of file kpassdlg.cpp.

◆ maxPasswordLength()

int KPasswordEdit::maxPasswordLength ( ) const

Returns the current maximum password length.

Since
3.4

Definition at line 154 of file kpassdlg.cpp.

◆ password()

TQString KPasswordEdit::password ( ) const

Returns the password.

Definition at line 140 of file kpassdlg.cpp.

◆ setMaxPasswordLength()

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
newLengthThe new maximum password length
Since
3.4

Definition at line 149 of file kpassdlg.cpp.

Member Data Documentation

◆ PassLen

const int KPasswordEdit::PassLen = 200
static

Definition at line 87 of file kpassdlg.h.


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.9.4
This website is maintained by Timothy Pearson.