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

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

class TQXmlSimpleReaderJBridge : public TQXmlSimpleReader
{
public:
	TQXmlSimpleReaderJBridge() : TQXmlSimpleReader() {};
	~TQXmlSimpleReaderJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlSimpleReader_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QXmlSimpleReader_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlSimpleReader_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) ((TQXmlSimpleReader*) 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 void JNICALL
Java_org_trinitydesktop_qt_QXmlSimpleReader_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQXmlSimpleReader*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlSimpleReader_parseContinue(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQXmlSimpleReader*) QtSupport::getQt(env, obj))->parseContinue();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlSimpleReader_parse__Lorg_trinitydesktop_qt_QXmlInputSource_2Z(JNIEnv* env, jobject obj, jobject input, jboolean incremental)
{
	jboolean xret = (jboolean) ((TQXmlSimpleReader*) QtSupport::getQt(env, obj))->parse((const TQXmlInputSource*) QtSupport::getQt(env, input), (bool) incremental);
	return xret;
}

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

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

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

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

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

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

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

