//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <kparts/part.h>
#include <kurl.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/ReadOnlyPart.h>

JNIEXPORT jstring JNICALL
Java_org_kde_koala_ReadOnlyPart_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_closeStream(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->closeStream();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_closeURL(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->closeURL();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_isProgressInfoEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->isProgressInfoEnabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_ReadOnlyPart_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_openStream(JNIEnv* env, jobject obj, jstring mimeType, jobject url)
{
static QString* _qstring_mimeType = 0;
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->openStream((const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType), (const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_openURL(JNIEnv* env, jobject obj, jobject url)
{
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->openURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadOnlyPart_setProgressInfoEnabled(JNIEnv* env, jobject obj, jboolean show)
{
	((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->setProgressInfoEnabled((bool) show);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadOnlyPart_showProgressInfo(JNIEnv* env, jobject obj, jboolean show)
{
	((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->showProgressInfo((bool) show);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_ReadOnlyPart_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->url()), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadOnlyPart_writeStream(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->writeStream((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

