KIO::PasswordDialog Class Reference
#include <passdlg.h>
Detailed Description
A dialog for requesting a login and a password from the end user.dialog for requesting login and password from the end user.KIO-Slave authors are encouraged to use SlaveBase::openPassDlg instead of directly instantiating this dialog.
Definition at line 36 of file passdlg.h.
Public Member Functions | |
PasswordDialog (const QString &prompt, const QString &user, bool enableKeep=false, bool modal=true, QWidget *parent=0, const char *name=0) | |
~PasswordDialog () | |
void | setPrompt (const QString &prompt) |
void | addCommentLine (const QString &label, const QString comment) |
QString | password () const |
QString | username () const |
bool | keepPassword () const |
void | setKeepPassword (bool b) |
void | setUserReadOnly (bool readOnly) |
KDE_DEPRECATED void | setEnableUserField (bool enable, bool=false) |
void | setPassword (const QString &password) |
void | setKnownLogins (const QMap< QString, QString > &knownLogins) |
Static Public Member Functions | |
static int | getNameAndPassword (QString &user, QString &pass, bool *keep, const QString &prompt=QString::null, bool readOnly=false, const QString &caption=QString::null, const QString &comment=QString::null, const QString &label=QString::null) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Constructor & Destructor Documentation
|
Create a password dialog.
|
|
Destructor.
|
Member Function Documentation
|
Adds a comment line to the dialog. This function allows you to add one additional comment line to this widget. Calling this function after a comment has already been added will not have any effect.
|
|
A convienence static method for obtaining authorization information from the end user.
|
|
Determines whether supplied authorization should persist even after the application has been closed.
|
|
Returns the password entered by the user.
|
|
Use setUserReadOnly(bool). |
|
Check or uncheck the "keep password" checkbox. This can be used to check it before showing the dialog, to tell the user that the password is stored already (e.g. in the wallet). enableKeep must have been set to true in the constructor. |
|
Presets a number of login+password pairs that the user can choose from. The passwords can be empty if you simply want to offer usernames to choose from. This is incompatible with setUserReadOnly(true).
|
|
Presets the password.
|
|
Sets the prompt to show to the user.
|
|
Sets the username field read-only and sets the focus to the password field.
|
|
Returns the username entered by the user.
|
The documentation for this class was generated from the following file: