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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_DTDHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->DTDHandler(), "org.trinitydesktop.qt.TQXmlDTDHandlerInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_contentHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->contentHandler(), "org.trinitydesktop.qt.TQXmlContentHandlerInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_declHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->declHandler(), "org.trinitydesktop.qt.TQXmlDeclHandlerInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_entityResolver(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->entityResolver(), "org.trinitydesktop.qt.TQXmlEntityResolverInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_errorHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->errorHandler(), "org.trinitydesktop.qt.TQXmlErrorHandlerInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlReader_feature__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQXmlReader*) QtSupport::getQt(env, obj))->feature((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlReader_feature__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring name, jbooleanArray ok)
{
static TQString* _qstring_name = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jboolean xret = (jboolean) ((TQXmlReader*) QtSupport::getQt(env, obj))->feature((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlReader_hasFeature(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQXmlReader*) QtSupport::getQt(env, obj))->hasFeature((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlReader_hasProperty(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQXmlReader*) QtSupport::getQt(env, obj))->hasProperty((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QXmlReader_lexicalHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQXmlReader*) QtSupport::getQt(env, obj))->lexicalHandler(), "org.trinitydesktop.qt.TQXmlLexicalHandlerInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlReader_parse(JNIEnv* env, jobject obj, jobject input)
{
	jboolean xret = (jboolean) ((TQXmlReader*) QtSupport::getQt(env, obj))->parse((const TQXmlInputSource&)*(const TQXmlInputSource*) QtSupport::getQt(env, input));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setContentHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setContentHandler((TQXmlContentHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setDTDHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setDTDHandler((TQXmlDTDHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setDeclHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setDeclHandler((TQXmlDeclHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setEntityResolver(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setEntityResolver((TQXmlEntityResolver*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setErrorHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setErrorHandler((TQXmlErrorHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setFeature(JNIEnv* env, jobject obj, jstring name, jboolean value)
{
static TQString* _qstring_name = 0;
	((TQXmlReader*) QtSupport::getQt(env, obj))->setFeature((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlReader_setLexicalHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((TQXmlReader*) QtSupport::getQt(env, obj))->setLexicalHandler((TQXmlLexicalHandler*) QtSupport::getQt(env, handler));
	return;
}

