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

import org.kde.qt.Qt;

public class QSqlError implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QSqlError(Class dummy){}

	public static final int None = 0;
	public static final int Connection = 1;
	public static final int Statement = 2;
	public static final int Transaction = 3;
	public static final int Unknown = 4;

	public QSqlError(String driverText, String databaseText, int type, int number) {
		newQSqlError(driverText,databaseText,type,number);
	}
	private native void newQSqlError(String driverText, String databaseText, int type, int number);
	public QSqlError(String driverText, String databaseText, int type) {
		newQSqlError(driverText,databaseText,type);
	}
	private native void newQSqlError(String driverText, String databaseText, int type);
	public QSqlError(String driverText, String databaseText) {
		newQSqlError(driverText,databaseText);
	}
	private native void newQSqlError(String driverText, String databaseText);
	public QSqlError(String driverText) {
		newQSqlError(driverText);
	}
	private native void newQSqlError(String driverText);
	public QSqlError() {
		newQSqlError();
	}
	private native void newQSqlError();
	public QSqlError(QSqlError other) {
		newQSqlError(other);
	}
	private native void newQSqlError(QSqlError other);
	public native String driverText();
	public native void setDriverText(String driverText);
	public native String databaseText();
	public native void setDatabaseText(String databaseText);
	public native int type();
	public native void setType(int type);
	public native int number();
	public native void setNumber(int number);
	public native String text();
	public native void showMessage(String msg);
	public native void showMessage();
	/** 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();
}
