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

kdeui

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) 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 geert.nosp@m.j@kd.nosp@m.e.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 108 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 139 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 133 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 127 of file kpassdlg.cpp.

KPasswordEdit::~KPasswordEdit ( )

Destructs the widget.

Definition at line 157 of file kpassdlg.cpp.

Member Function Documentation

void KPasswordEdit::erase ( )

Erases the current password.

Definition at line 181 of file kpassdlg.cpp.

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

Reimplementation.

Definition at line 164 of file kpassdlg.cpp.

int KPasswordEdit::maxPasswordLength ( ) const

Returns the current maximum password length.

Since
3.4

Definition at line 298 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
newLengthThe new maximum password length
Since
3.4

Definition at line 285 of file kpassdlg.cpp.


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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |