//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsqlform.h>
#include <tqstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQSqlForm.h>

class TQSqlFormJBridge : public TQSqlForm
{
public:
	TQSqlFormJBridge(TQObject* arg1,const char* arg2) : TQSqlForm(arg1,arg2) {};
	TQSqlFormJBridge(TQObject* arg1) : TQSqlForm(arg1) {};
	TQSqlFormJBridge() : TQSqlForm() {};
	void public_readFields() {
		TQSqlForm::readFields();
		return;
	}
	void public_writeFields() {
		TQSqlForm::writeFields();
		return;
	}
	void public_clear() {
		TQSqlForm::clear();
		return;
	}
	void public_clearValues() {
		TQSqlForm::clearValues();
		return;
	}
	void protected_insert(TQWidget* arg1,TQSqlField* arg2) {
		TQSqlForm::insert(arg1,arg2);
		return;
	}
	void protected_remove(TQWidget* arg1) {
		TQSqlForm::remove(arg1);
		return;
	}
	void protected_clearMap() {
		TQSqlForm::clearMap();
		return;
	}
	~TQSqlFormJBridge() {QtSupport::qtKeyDeleted(this);}
	void writeFields() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQSqlForm","writeFields")) {
			TQSqlForm::writeFields();
		}
		return;
	}
	void writeField(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"writeField",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQSqlForm::writeField(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQSqlForm","clear")) {
			TQSqlForm::clear();
		}
		return;
	}
	void readFields() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQSqlForm","readFields")) {
			TQSqlForm::readFields();
		}
		return;
	}
	void remove(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"remove",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQSqlForm::remove(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void setRecord(TQSqlRecord* arg1) {
		if (!QtSupport::eventDelegate(this,"setRecord",(void*)arg1,"org.trinitydesktop.qt.TQSqlRecord")) {
			TQSqlForm::setRecord(arg1);
		}
		return;
	}
	void readField(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"readField",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQSqlForm::readField(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQSqlForm",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlForm_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQSqlForm*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_clearMap(JNIEnv* env, jobject obj)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->protected_clearMap();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_clearValues__(JNIEnv* env, jobject obj)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->public_clearValues();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_clearValues__Z(JNIEnv* env, jobject obj, jboolean nullify)
{
	((TQSqlForm*) QtSupport::getQt(env, obj))->clearValues((bool) nullify);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_clear(JNIEnv* env, jobject obj)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->public_clear();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlForm_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlForm*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSqlForm_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlForm_fieldToWidget(JNIEnv* env, jobject obj, jobject field)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlForm*) QtSupport::getQt(env, obj))->fieldToWidget((TQSqlField*) QtSupport::getQt(env, field)), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQSqlForm*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (TQSqlForm*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_insert__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject widget, jstring field)
{
static TQString* _qstring_field = 0;
	((TQSqlForm*) QtSupport::getQt(env, obj))->insert((TQWidget*) QtSupport::getQt(env, widget), (const TQString&)*(TQString*) QtSupport::toTQString(env, field, &_qstring_field));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_insert__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QSqlField_2(JNIEnv* env, jobject obj, jobject widget, jobject field)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->protected_insert((TQWidget*) QtSupport::getQt(env, widget), (TQSqlField*) QtSupport::getQt(env, field));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_installPropertyMap(JNIEnv* env, jobject obj, jobject map)
{
	((TQSqlForm*) QtSupport::getQt(env, obj))->installPropertyMap((TQSqlPropertyMap*) QtSupport::getQt(env, map));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlForm_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlForm_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlForm*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_newTQSqlForm__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlFormJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_newTQSqlForm__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlFormJBridge((TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_newTQSqlForm__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlFormJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_readField(JNIEnv* env, jobject obj, jobject widget)
{
	((TQSqlForm*) QtSupport::getQt(env, obj))->readField((TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_readFields(JNIEnv* env, jobject obj)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->public_readFields();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring field)
{
static TQString* _qstring_field = 0;
	((TQSqlForm*) QtSupport::getQt(env, obj))->remove((const TQString&)*(TQString*) QtSupport::toTQString(env, field, &_qstring_field));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_remove__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject widget)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->protected_remove((TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_setRecord(JNIEnv* env, jobject obj, jobject buf)
{
	((TQSqlForm*) QtSupport::getQt(env, obj))->setRecord((TQSqlRecord*) QtSupport::getQt(env, buf));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlForm_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQSqlFormJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlForm_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQSqlFormJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlForm_widgetToField(JNIEnv* env, jobject obj, jobject widget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlForm*) QtSupport::getQt(env, obj))->widgetToField((TQWidget*) QtSupport::getQt(env, widget)), "org.trinitydesktop.qt.TQSqlField");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlForm_widget(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlForm*) QtSupport::getQt(env, obj))->widget((uint) i), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_writeField(JNIEnv* env, jobject obj, jobject widget)
{
	((TQSqlForm*) QtSupport::getQt(env, obj))->writeField((TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlForm_writeFields(JNIEnv* env, jobject obj)
{
	((TQSqlFormJBridge*) QtSupport::getQt(env, obj))->public_writeFields();
	return;
}

