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

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

class QXmlInputSourceJBridge : public QXmlInputSource
{
public:
	QXmlInputSourceJBridge() : QXmlInputSource() {};
	QXmlInputSourceJBridge(QIODevice* arg1) : QXmlInputSource(arg1) {};
	QXmlInputSourceJBridge(QFile& arg1) : QXmlInputSource(arg1) {};
	QXmlInputSourceJBridge(QTextStream& arg1) : QXmlInputSource(arg1) {};
	void public_fetchData() {
		QXmlInputSource::fetchData();
		return;
	}
	void public_reset() {
		QXmlInputSource::reset();
		return;
	}
	QString protected_fromRawData(const QByteArray& arg1,bool arg2) {
		return (QString) QXmlInputSource::fromRawData(arg1,arg2);
	}
	QString protected_fromRawData(const QByteArray& arg1) {
		return (QString) QXmlInputSource::fromRawData(arg1);
	}
	~QXmlInputSourceJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlInputSource_data(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QXmlInputSource*) QtSupport::getQt(env, obj))->data();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QXmlInputSource_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_fetchData(JNIEnv* env, jobject obj)
{
	((QXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->public_fetchData();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlInputSource_fromRawData___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
	QString  _qstring;
static QByteArray* _qbyteArray_data = 0;
	_qstring = ((QXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->protected_fromRawData((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlInputSource_fromRawData___3BZ(JNIEnv* env, jobject obj, jbyteArray data, jboolean beginning)
{
	QString  _qstring;
static QByteArray* _qbyteArray_data = 0;
	_qstring = ((QXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->protected_fromRawData((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (bool) beginning);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_newQXmlInputSource__Lorg_kde_qt_QFile_2(JNIEnv* env, jobject obj, jobject file)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QXmlInputSourceJBridge((QFile&)*(QFile*) QtSupport::getQt(env, file)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_newQXmlInputSource__Lorg_kde_qt_QTextStream_2(JNIEnv* env, jobject obj, jobject stream)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QXmlInputSourceJBridge((QTextStream&)*(QTextStream*) QtSupport::getQt(env, stream)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jchar JNICALL
Java_org_kde_qt_QXmlInputSource_next(JNIEnv* env, jobject obj)
{
	QChar  _qchar;
	_qchar = ((QXmlInputSource*) QtSupport::getQt(env, obj))->next();
	return (jchar) QtSupport::fromQChar(env, (QChar*) &_qchar);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_reset(JNIEnv* env, jobject obj)
{
	((QXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->public_reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_setData__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dat)
{
static QString* _qstring_dat = 0;
	((QXmlInputSource*) QtSupport::getQt(env, obj))->setData((const QString&)*(QString*) QtSupport::toQString(env, dat, &_qstring_dat));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlInputSource_setData___3B(JNIEnv* env, jobject obj, jbyteArray dat)
{
static QByteArray* _qbyteArray_dat = 0;
	((QXmlInputSource*) QtSupport::getQt(env, obj))->setData((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, dat, &_qbyteArray_dat));
	return;
}

