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

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

class TQXmlNamespaceSupportJBridge : public TQXmlNamespaceSupport
{
public:
	TQXmlNamespaceSupportJBridge() : TQXmlNamespaceSupport() {};
	~TQXmlNamespaceSupportJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QXmlNamespaceSupport_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_prefix(JNIEnv* env, jobject obj, jstring arg1)
{
	TQString  _qstring;
static TQString* _qstring_arg1 = 0;
	_qstring = ((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefix((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_prefixes__(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefixes();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_prefixes__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	TQStringList  _qlist;
static TQString* _qstring_arg1 = 0;
	_qlist = ((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->prefixes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_processName(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2, jobject arg3, jobject arg4)
{
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg3 = 0;
static TQString* _qstring_arg4 = 0;
	((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->processName((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) arg2, (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg3, &_qstring_arg3), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg4, &_qstring_arg4));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg3, arg3);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg4, arg4);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_setPrefix(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->setPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_splitName(JNIEnv* env, jobject obj, jstring arg1, jobject arg2, jobject arg3)
{
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
static TQString* _qstring_arg3 = 0;
	((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->splitName((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg2, &_qstring_arg2), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg3, &_qstring_arg3));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg2, arg2);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg3, arg3);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlNamespaceSupport_uri(JNIEnv* env, jobject obj, jstring arg1)
{
	TQString  _qstring;
static TQString* _qstring_arg1 = 0;
	_qstring = ((TQXmlNamespaceSupport*) QtSupport::getQt(env, obj))->uri((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

