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

import org.trinitydesktop.qt.Qt;

public class TQSqlError implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TQSqlError(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 TQSqlError(String driverText, String databaseText, int type, int number) {
		newTQSqlError(driverText,databaseText,type,number);
	}
	private native void newTQSqlError(String driverText, String databaseText, int type, int number);
	public TQSqlError(String driverText, String databaseText, int type) {
		newTQSqlError(driverText,databaseText,type);
	}
	private native void newTQSqlError(String driverText, String databaseText, int type);
	public TQSqlError(String driverText, String databaseText) {
		newTQSqlError(driverText,databaseText);
	}
	private native void newTQSqlError(String driverText, String databaseText);
	public TQSqlError(String driverText) {
		newTQSqlError(driverText);
	}
	private native void newTQSqlError(String driverText);
	public TQSqlError() {
		newTQSqlError();
	}
	private native void newTQSqlError();
	public TQSqlError(TQSqlError other) {
		newTQSqlError(other);
	}
	private native void newTQSqlError(TQSqlError 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();
}
