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

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

class QXmlSimpleReaderJBridge : public QXmlSimpleReader
{
public:
	QXmlSimpleReaderJBridge() : QXmlSimpleReader() {};
	~QXmlSimpleReaderJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_DTDHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->DTDHandler(), "org.kde.qt.QXmlDTDHandlerInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_contentHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->contentHandler(), "org.kde.qt.QXmlContentHandlerInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_declHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->declHandler(), "org.kde.qt.QXmlDeclHandlerInterface");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QXmlSimpleReader_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_entityResolver(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->entityResolver(), "org.kde.qt.QXmlEntityResolverInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_errorHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->errorHandler(), "org.kde.qt.QXmlErrorHandlerInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlSimpleReader_feature__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QXmlSimpleReader*) QtSupport::getQt(env, obj))->feature((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlSimpleReader_hasFeature(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QXmlSimpleReader*) QtSupport::getQt(env, obj))->hasFeature((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlSimpleReader_hasProperty(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QXmlSimpleReader*) QtSupport::getQt(env, obj))->hasProperty((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlSimpleReader_lexicalHandler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QXmlSimpleReader*) QtSupport::getQt(env, obj))->lexicalHandler(), "org.kde.qt.QXmlLexicalHandlerInterface");
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setContentHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setContentHandler((QXmlContentHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setDTDHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setDTDHandler((QXmlDTDHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setDeclHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setDeclHandler((QXmlDeclHandler*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setEntityResolver(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setEntityResolver((QXmlEntityResolver*) QtSupport::getQt(env, handler));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setErrorHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setErrorHandler((QXmlErrorHandler*) QtSupport::getQt(env, handler));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlSimpleReader_setLexicalHandler(JNIEnv* env, jobject obj, jobject handler)
{
	((QXmlSimpleReader*) QtSupport::getQt(env, obj))->setLexicalHandler((QXmlLexicalHandler*) QtSupport::getQt(env, handler));
	return;
}

