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

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

class QSqlPropertyMapJBridge : public QSqlPropertyMap
{
public:
	QSqlPropertyMapJBridge() : QSqlPropertyMap() {};
	~QSqlPropertyMapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlPropertyMap_defaultMap(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlPropertyMapJBridge::defaultMap(), "org.kde.qt.QSqlPropertyMap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlPropertyMap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QSqlPropertyMap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_insert(JNIEnv* env, jobject obj, jstring classname, jstring property)
{
static QString* _qstring_classname = 0;
static QString* _qstring_property = 0;
	((QSqlPropertyMap*) QtSupport::getQt(env, obj))->insert((const QString&)*(QString*) QtSupport::toQString(env, classname, &_qstring_classname), (const QString&)*(QString*) QtSupport::toQString(env, property, &_qstring_property));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_installDefaultMap(JNIEnv* env, jclass cls, jobject map)
{
	(void) cls;
	QSqlPropertyMapJBridge::installDefaultMap((QSqlPropertyMap*) QtSupport::getQt(env, map));
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlPropertyMap_property(JNIEnv* env, jobject obj, jobject widget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((QSqlPropertyMap*) QtSupport::getQt(env, obj))->property((QWidget*) QtSupport::getQt(env, widget))), "org.kde.qt.QVariant", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_remove(JNIEnv* env, jobject obj, jstring classname)
{
static QString* _qstring_classname = 0;
	((QSqlPropertyMap*) QtSupport::getQt(env, obj))->remove((const QString&)*(QString*) QtSupport::toQString(env, classname, &_qstring_classname));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_setProperty(JNIEnv* env, jobject obj, jobject widget, jobject value)
{
	((QSqlPropertyMap*) QtSupport::getQt(env, obj))->setProperty((QWidget*) QtSupport::getQt(env, widget), (const QVariant&)*(const QVariant*) QtSupport::getQt(env, value));
	return;
}

