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

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQFocusEvent;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQLineEdit;

/**

 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 TQLineEdit  {
	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 TQMetaObject 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(TQWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(parent,name);
	}
	private native void newKPasswordEdit(TQWidget parent, String name);
	public KPasswordEdit(TQWidget parent) {
		super((Class) null);
		newKPasswordEdit(parent);
	}
	private native void newKPasswordEdit(TQWidget 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 TQLineEdit.EchoMode.
				@short    Constructs a password input widget using echoMode as "echo mode".
	*/
	public KPasswordEdit(int echoMode, TQWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(echoMode,parent,name);
	}
	private native void newKPasswordEdit(int echoMode, TQWidget 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(TQKeyEvent arg1);
	protected native void focusInEvent(TQFocusEvent e);
	public native boolean event(TQEvent 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();
}
