KIO::PasswordDialog Class Reference
A dialog for requesting a login and a password from the end user. dialog for requesting login and password from the end user. More...
#include <passdlg.h>
Inheritance diagram for KIO::PasswordDialog:

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) |
Static Public Member Functions | |
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) |
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.
Constructor & Destructor Documentation
|
Create a password dialog.
|
|
Destructor.
|
Member Function Documentation
|
Sets the prompt to show to the user.
|
|
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.
|
|
Returns the password entered by the user.
|
|
Returns the username entered by the user.
|
|
Determines whether supplied authorization should persist even after the application has been closed.
|
|
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. |
|
Sets the username field read-only and sets the focus to the password field.
|
|
Definition at line 116 of file passdlg.h. References setEnableUserField(). Referenced by setEnableUserField(). |
|
Presets the password.
|
|
A convienence static method for obtaining authorization information from the end user.
|
The documentation for this class was generated from the following file: