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

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlReader_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) ((QXmlReader*) 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 jboolean JNICALL
Java_org_kde_qt_QXmlReader_hasFeature(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QXmlReader*) QtSupport::getQt(env, obj))->hasFeature((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

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

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

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

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

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

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

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

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

