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

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

class QXmlNamespaceSupportJBridge : public QXmlNamespaceSupport
{
public:
	QXmlNamespaceSupportJBridge() : QXmlNamespaceSupport() {};
	~QXmlNamespaceSupportJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QXmlNamespaceSupport_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_popContext(JNIEnv* env, jobject obj)
{
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->popContext();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_prefix(JNIEnv* env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString* _qstring_arg1 = 0;
	_qstring = ((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefix((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_prefixes__(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefixes();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_prefixes__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	_qlist = ((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefixes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_processName(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2, jobject arg3, jobject arg4)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg3 = 0;
static QString* _qstring_arg4 = 0;
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->processName((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2, (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, arg3, &_qstring_arg3), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, arg4, &_qstring_arg4));
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg3, arg3);
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg4, arg4);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_pushContext(JNIEnv* env, jobject obj)
{
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->pushContext();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_reset(JNIEnv* env, jobject obj)
{
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_setPrefix(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->setPrefix((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_splitName(JNIEnv* env, jobject obj, jstring arg1, jobject arg2, jobject arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->splitName((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, arg2, &_qstring_arg2), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, arg3, &_qstring_arg3));
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg2, arg2);
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg3, arg3);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_uri(JNIEnv* env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString* _qstring_arg1 = 0;
	_qstring = ((QXmlNamespaceSupport*) QtSupport::getQt(env, obj))->uri((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

