org.kde.koala
public class PasswordDialog extends KDialogBase
UNKNOWN: dialog for requesting login and password from the end user.
Constructor Summary | |
---|---|
protected | PasswordDialog(Class dummy) |
PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent, String name)
Create a password dialog. | |
PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, QWidget parent) | |
PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal) | |
PasswordDialog(String prompt, String user, boolean enableKeep) | |
PasswordDialog(String prompt, String user) |
Method Summary | |
---|---|
void | addCommentLine(String label, String comment)
Adds a comment line to the dialog.
|
String | className() |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment, String label)
A convienence static method for obtaining authorization
information from the end user. |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment) |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption) |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly) |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt) |
static int | getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep) |
boolean | keepPassword()
Determines whether supplied authorization should
persist even after the application has been closed. |
QMetaObject | metaObject() |
String | password()
Returns the password entered by the user. |
void | setKeepPassword(boolean b)
Check or uncheck the "keep password" checkbox.
|
void | setPassword(String password)
Presets the password. |
void | setPrompt(String prompt)
Sets the prompt to show to the user. |
void | setUserReadOnly(boolean readOnly)
Sets the username field read-only and sets the
focus to the password field. |
String | username()
Returns the username entered by the user. |
Parameters: prompt instructional text to be shown. user username, if known initially. enableKeep if true, shows checkbox that makes password persistent until KDE is shutdown. modal if true, the dialog will be modal (default:true). parent the parent widget (default:NULL). name the dialog name (default:NULL).
UNKNOWN: Create a password dialog.
Parameters: label label for comment (ex:"Command:") comment the actual comment text.
UNKNOWN: Adds a comment line to the dialog.
Parameters: user username pass password keep pointer to flag that indicates whether to keep password (can be null) prompt text to display to user. readOnly make the username field read-only. caption set the title bar to given text. comment extra comment to display to user. label optinal label for extra comment.
Returns: Accepted/Rejected based on the user choice.
UNKNOWN: A convienence static method for obtaining authorization information from the end user.
Returns: true to keep the password
UNKNOWN: Determines whether supplied authorization should persist even after the application has been closed.
Returns: the password
UNKNOWN: Returns the password entered by the user.
UNKNOWN: Check or uncheck the "keep password" checkbox.
Parameters: password the password to set
UNKNOWN: Presets the password.
Parameters: prompt instructional text to be shown.
UNKNOWN: Sets the prompt to show to the user.
Parameters: readOnly true to set the user field to read-only
UNKNOWN: Sets the username field read-only and sets the focus to the password field.
Returns: the user name
UNKNOWN: Returns the username entered by the user.