//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsqlform.h>
#include <qstring.h>

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

class QSqlFormJBridge : public QSqlForm
{
public:
	QSqlFormJBridge(QObject* arg1,const char* arg2) : QSqlForm(arg1,arg2) {};
	QSqlFormJBridge(QObject* arg1) : QSqlForm(arg1) {};
	QSqlFormJBridge() : QSqlForm() {};
	void public_readFields() {
		QSqlForm::readFields();
		return;
	}
	void public_writeFields() {
		QSqlForm::writeFields();
		return;
	}
	void public_clear() {
		QSqlForm::clear();
		return;
	}
	void public_clearValues() {
		QSqlForm::clearValues();
		return;
	}
	void protected_insert(QWidget* arg1,QSqlField* arg2) {
		QSqlForm::insert(arg1,arg2);
		return;
	}
	void protected_remove(QWidget* arg1) {
		QSqlForm::remove(arg1);
		return;
	}
	void protected_clearMap() {
		QSqlForm::clearMap();
		return;
	}
	~QSqlFormJBridge() {QtSupport::qtKeyDeleted(this);}
	void writeFields() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QSqlForm","writeFields")) {
			QSqlForm::writeFields();
		}
		return;
	}
	void writeField(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"writeField",(void*)arg1,"org.kde.qt.QWidget")) {
			QSqlForm::writeField(arg1);
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QSqlForm","clear")) {
			QSqlForm::clear();
		}
		return;
	}
	void readFields() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QSqlForm","readFields")) {
			QSqlForm::readFields();
		}
		return;
	}
	void remove(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"remove",(void*)arg1,"org.kde.qt.QWidget")) {
			QSqlForm::remove(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void setRecord(QSqlRecord* arg1) {
		if (!QtSupport::eventDelegate(this,"setRecord",(void*)arg1,"org.kde.qt.QSqlRecord")) {
			QSqlForm::setRecord(arg1);
		}
		return;
	}
	void readField(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"readField",(void*)arg1,"org.kde.qt.QWidget")) {
			QSqlForm::readField(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QSqlForm",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlForm_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlForm_fieldToWidget(JNIEnv* env, jobject obj, jobject field)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlForm*) QtSupport::getQt(env, obj))->fieldToWidget((QSqlField*) QtSupport::getQt(env, field)), "org.kde.qt.QWidget");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_insert__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject widget, jstring field)
{
static QString* _qstring_field = 0;
	((QSqlForm*) QtSupport::getQt(env, obj))->insert((QWidget*) QtSupport::getQt(env, widget), (const QString&)*(QString*) QtSupport::toQString(env, field, &_qstring_field));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_insert__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QSqlField_2(JNIEnv* env, jobject obj, jobject widget, jobject field)
{
	((QSqlFormJBridge*) QtSupport::getQt(env, obj))->protected_insert((QWidget*) QtSupport::getQt(env, widget), (QSqlField*) QtSupport::getQt(env, field));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_installPropertyMap(JNIEnv* env, jobject obj, jobject map)
{
	((QSqlForm*) QtSupport::getQt(env, obj))->installPropertyMap((QSqlPropertyMap*) QtSupport::getQt(env, map));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlForm_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlForm*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_newQSqlForm__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlFormJBridge((QObject*) 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_kde_qt_QSqlForm_readField(JNIEnv* env, jobject obj, jobject widget)
{
	((QSqlForm*) QtSupport::getQt(env, obj))->readField((QWidget*) QtSupport::getQt(env, widget));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring field)
{
static QString* _qstring_field = 0;
	((QSqlForm*) QtSupport::getQt(env, obj))->remove((const QString&)*(QString*) QtSupport::toQString(env, field, &_qstring_field));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_remove__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject widget)
{
	((QSqlFormJBridge*) QtSupport::getQt(env, obj))->protected_remove((QWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_setRecord(JNIEnv* env, jobject obj, jobject buf)
{
	((QSqlForm*) QtSupport::getQt(env, obj))->setRecord((QSqlRecord*) QtSupport::getQt(env, buf));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlForm_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QSqlFormJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlForm_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QSqlFormJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlForm_widgetToField(JNIEnv* env, jobject obj, jobject widget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlForm*) QtSupport::getQt(env, obj))->widgetToField((QWidget*) QtSupport::getQt(env, widget)), "org.kde.qt.QSqlField");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlForm_widget(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlForm*) QtSupport::getQt(env, obj))->widget((uint) i), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlForm_writeField(JNIEnv* env, jobject obj, jobject widget)
{
	((QSqlForm*) QtSupport::getQt(env, obj))->writeField((QWidget*) QtSupport::getQt(env, widget));
	return;
}

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

