class KPasswordDialog


Table of contents
Modules
kdeui Classes
All Classes
Module kdeui
Namespace global
Class KPasswordDialog
Inherits KDialog

A dialog for requesting a password and optionaly a login from the end user.

Usage Exemple

Requesting a simple password, assynchronous

KPasswordDialog *dlg = new KPasswordDialog( parent );
dlg->setPrompt( i18n( "Enter a password" );
connect( dlg, SIGNAL( gotPassword( const QString& , bool ) ) , this, SLOT( setPassword( const QString &) ) );
connect( dlg, SIGNAL( rejected() ) , this, SLOT( slotCancel() ) );
dlg->show();

Requesting a login and a password, synchronous

KPasswordDialog dlg( parent , KPasswordDialog.showUsername );
dlg.setPrompt( i18n( "Enter a login and a password" );
if( !dlg.exec() )
return; //the user canceled
use( dlg.username() , dlg.password() );

dialog for requesting login and password from the end user



enums

enum details

methods