class KNewPasswordDialog |
|
A password input dialog.
This dialog asks the user to enter a password. Usage Exemple
KNewPasswordDialog *dlg = new KNewPasswordDialog( parent ); dlg->setPrompt( i18n( "Enter a password" ); connect( dlg, SIGNAL( newPassword( const QString& ) ) , this, SLOT( setPassword( const QString &) ) ); connect( dlg, SIGNAL( rejected() ) , this, SLOT( slotCancel() ) ); dlg->show();
KNewPasswordDialog dlg( parent ); dlg.setPrompt( i18n( "Enter a password" ); if( dlg.exec() ) setPassword( dlg.password() );
Author Geert Jansen |
|
Constructs a password dialog.
parent - Passed to lower level constructor. |
|
|
Internal |
|
Allow empty passwords?
Returns true if minimumPasswordLength() == 0 |
|
Virtual function that can be overridden to provide password checking in derived classes. It should return true if the password is valid, false otherwise. |
|
Maximum acceptable password length. |
|
Minimum acceptable password length. |
|
The dialog has been accepted, and the new password is password |
|
Returns the password entered. |
|
Password strength level below which a warning is given |
|
Returns the pixmap that appears next to the prompt in the dialog |
|
Returns the password prompt. |
|
Password length that is expected to be reasonably safe. |
|
Allow empty passwords? - Default: true
same as setMinimumPasswordLength( allowed ? 0 : 1 ) |
|
Maximum acceptable password length.
maxLength: - The new maximum password length. |
|
Minimum acceptable password length.
Default: 0 minLength: - The new minimum password length |
|
Set the password strength level below which a warning is given
Value is in the range 0 to 99. Empty passwords score 0;
non-empty passwords score up to 100, depending on their length and whether they
contain numbers, mixed case letters and punctuation.
Default: 1 - warn if the password has no discernable strength whatsoever warningLevel: - The level below which a warning should be given. |
|
Sets the pixmap that appears next to the prompt in the dialog. The default pixmap represent a simple key.
the recommended size is KIconLoader.SizeHuge |
|
Sets the password prompt. |
|
Password length that is expected to be reasonably safe.
Used to compute the strength level Default: 8 - the standard UNIX password length reasonableLength: - The new reasonable password length. |