You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
6.4 KiB
145 lines
6.4 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
11 years ago
|
package org.trinitydesktop.koala;
|
||
15 years ago
|
|
||
11 years ago
|
import org.trinitydesktop.qt.Qt;
|
||
|
import org.trinitydesktop.qt.TQMetaObject;
|
||
|
import org.trinitydesktop.qt.QtSupport;
|
||
|
import org.trinitydesktop.qt.TQWidget;
|
||
15 years ago
|
|
||
|
/**
|
||
|
|
||
|
A dialog for requesting a login and a password from the end user.
|
||
11 years ago
|
TDEIO-Slave authors are encouraged to use SlaveBase.openPassDlg
|
||
15 years ago
|
instead of directly instantiating this dialog.
|
||
|
@short dialog for requesting login and password from the end user.
|
||
|
|
||
|
*/
|
||
|
public class PasswordDialog extends KDialogBase {
|
||
|
protected PasswordDialog(Class dummy){super((Class) null);}
|
||
13 years ago
|
public native TQMetaObject metaObject();
|
||
15 years ago
|
public native String className();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Create a password dialog.
|
||
|
@param prompt instructional text to be shown.
|
||
|
@param user username, if known initially.
|
||
|
@param enableKeep if true, shows checkbox that makes password persistent until KDE is shutdown.
|
||
|
@param modal if true, the dialog will be modal (default:true).
|
||
|
@param parent the parent widget (default:NULL).
|
||
|
@param name the dialog name (default:NULL).
|
||
|
@short Create a password dialog.
|
||
|
*/
|
||
13 years ago
|
public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, TQWidget parent, String name) {
|
||
15 years ago
|
super((Class) null);
|
||
|
newPasswordDialog(prompt,user,enableKeep,modal,parent,name);
|
||
|
}
|
||
13 years ago
|
private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, TQWidget parent, String name);
|
||
|
public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, TQWidget parent) {
|
||
15 years ago
|
super((Class) null);
|
||
|
newPasswordDialog(prompt,user,enableKeep,modal,parent);
|
||
|
}
|
||
13 years ago
|
private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal, TQWidget parent);
|
||
15 years ago
|
public PasswordDialog(String prompt, String user, boolean enableKeep, boolean modal) {
|
||
|
super((Class) null);
|
||
|
newPasswordDialog(prompt,user,enableKeep,modal);
|
||
|
}
|
||
|
private native void newPasswordDialog(String prompt, String user, boolean enableKeep, boolean modal);
|
||
|
public PasswordDialog(String prompt, String user, boolean enableKeep) {
|
||
|
super((Class) null);
|
||
|
newPasswordDialog(prompt,user,enableKeep);
|
||
|
}
|
||
|
private native void newPasswordDialog(String prompt, String user, boolean enableKeep);
|
||
|
public PasswordDialog(String prompt, String user) {
|
||
|
super((Class) null);
|
||
|
newPasswordDialog(prompt,user);
|
||
|
}
|
||
|
private native void newPasswordDialog(String prompt, String user);
|
||
11 years ago
|
/**
|
||
15 years ago
|
Sets the prompt to show to the user.
|
||
|
@param prompt instructional text to be shown.
|
||
|
@short Sets the prompt to show to the user.
|
||
|
*/
|
||
|
public native void setPrompt(String prompt);
|
||
11 years ago
|
/**
|
||
15 years ago
|
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.
|
||
|
@param label label for comment (ex:"Command:")
|
||
|
@param comment the actual comment text.
|
||
|
@short Adds a comment line to the dialog.
|
||
|
*/
|
||
|
public native void addCommentLine(String label, String comment);
|
||
11 years ago
|
/**
|
||
15 years ago
|
Returns the password entered by the user.
|
||
|
@return the password
|
||
11 years ago
|
|
||
15 years ago
|
@short Returns the password entered by the user.
|
||
|
*/
|
||
|
public native String password();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Returns the username entered by the user.
|
||
|
@return the user name
|
||
11 years ago
|
|
||
15 years ago
|
@short Returns the username entered by the user.
|
||
|
*/
|
||
|
public native String username();
|
||
11 years ago
|
/**
|
||
15 years ago
|
Determines whether supplied authorization should
|
||
|
persist even after the application has been closed.
|
||
|
@return true to keep the password
|
||
11 years ago
|
|
||
15 years ago
|
@short Determines whether supplied authorization should persist even after the application has been closed.
|
||
|
*/
|
||
|
public native boolean keepPassword();
|
||
11 years ago
|
/**
|
||
15 years ago
|
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.
|
||
|
@short Check or uncheck the "keep password" checkbox.
|
||
|
*/
|
||
|
public native void setKeepPassword(boolean b);
|
||
11 years ago
|
/**
|
||
15 years ago
|
Sets the username field read-only and sets the
|
||
|
focus to the password field.
|
||
|
@param readOnly true to set the user field to read-only
|
||
|
@short Sets the username field read-only and sets the focus to the password field.
|
||
|
*/
|
||
|
public native void setUserReadOnly(boolean readOnly);
|
||
11 years ago
|
/**
|
||
15 years ago
|
Presets the password.
|
||
|
@param password the password to set
|
||
|
@short Presets the password.
|
||
|
*/
|
||
|
public native void setPassword(String password);
|
||
11 years ago
|
/**
|
||
15 years ago
|
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).
|
||
|
@param knownLogins map of known logins: the keys are usernames, the values are passwords.
|
||
|
@short Presets a number of login+password pairs that the user can choose from.
|
||
|
*/
|
||
13 years ago
|
// void setKnownLogins(const TQMap<TQString, TQString>& arg1); >>>> NOT CONVERTED
|
||
11 years ago
|
/**
|
||
15 years ago
|
A convienence static method for obtaining authorization
|
||
|
information from the end user.
|
||
|
@param user username
|
||
|
@param pass password
|
||
|
@param keep pointer to flag that indicates whether to keep password (can be null)
|
||
|
@param prompt text to display to user.
|
||
|
@param readOnly make the username field read-only.
|
||
|
@param caption set the title bar to given text.
|
||
|
@param comment extra comment to display to user.
|
||
|
@param label optinal label for extra comment.
|
||
|
@return Accepted/Rejected based on the user choice.
|
||
11 years ago
|
|
||
15 years ago
|
@short A convienence static method for obtaining authorization information from the end user.
|
||
|
*/
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment, String label);
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption, String comment);
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly, String caption);
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt, boolean readOnly);
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep, String prompt);
|
||
|
public static native int getNameAndPassword(StringBuffer user, StringBuffer pass, boolean[] keep);
|
||
|
}
|