//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QFocusEvent;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QLineEdit;

/**

 The widget uses the user's global "echo mode" setting.
 		@author Geert Jansen <geertj@kde.org>

		@short A safe password input widget.

*/
public class KPasswordEdit extends QLineEdit  {
	protected KPasswordEdit(Class dummy){super((Class) null);}
	public static final int OneStar = 0;
	public static final int ThreeStars = 1;
	public static final int NoEcho = 2;

	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a password input widget using the user's global "echo mode" setting.
		     		@short    Constructs a password input widget using the user's global "echo mode" setting.
	*/
	public KPasswordEdit(QWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(parent,name);
	}
	private native void newKPasswordEdit(QWidget parent, String name);
	public KPasswordEdit(QWidget parent) {
		super((Class) null);
		newKPasswordEdit(parent);
	}
	private native void newKPasswordEdit(QWidget parent);
	public KPasswordEdit() {
		super((Class) null);
		newKPasswordEdit();
	}
	private native void newKPasswordEdit();
	/**	
		 Constructs a password input widget using echoMode as "echo mode".
		 Note that echoMode is a QLineEdit.EchoMode.
				@short    Constructs a password input widget using echoMode as "echo mode".
	*/
	public KPasswordEdit(int echoMode, QWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(echoMode,parent,name);
	}
	private native void newKPasswordEdit(int echoMode, QWidget parent, String name);
	/**	
		 Returns the password. The memory is freed in the destructor
		 so you should make a copy.
		     		@short    Returns the password.
	*/
	public native String password();
	/**	
		 Erases the current password.
		     		@short    Erases the current password.
	*/
	public native void erase();
	/**	
		 Set the current maximum password length.  If a password longer than the limit
		 specified is currently entered, it is truncated accordingly.
			 The length is capped to lie between 0 and 199 inclusive.
			@param newLength : The new maximum password length
				@short    Set the current maximum password length.
	*/
	public native void setMaxPasswordLength(int newLength);
	/**	
		 Returns the current maximum password length.
				@short    Returns the current maximum password length.
	*/
	public native int maxPasswordLength();
	/**	
		 Reimplementation
		     		@short    Reimplementation
	*/
	public native void insert(String arg1);
	protected native void keyPressEvent(QKeyEvent arg1);
	protected native void focusInEvent(QFocusEvent e);
	public native boolean event(QEvent e);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
