//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tdeparts/part.h>
#include <kurl.h>
#include <tqcstring.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/ReadOnlyPart.h>

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_ReadOnlyPart_closeStream(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->closeStream();
	return xret;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_ReadOnlyPart_setProgressInfoEnabled(JNIEnv* env, jobject obj, jboolean show)
{
	((KParts::ReadOnlyPart*) QtSupport::getQt(env, obj))->setProgressInfoEnabled((bool) show);
	return;
}

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

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

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

