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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadWritePart_isModified(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->isModified();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadWritePart_isReadWrite(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->isReadWrite();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadWritePart_queryClose(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->queryClose();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadWritePart_save(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->save();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadWritePart_setModified__(JNIEnv* env, jobject obj)
{
	((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->setModified();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadWritePart_setModified__Z(JNIEnv* env, jobject obj, jboolean modified)
{
	((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->setModified((bool) modified);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadWritePart_setReadWrite__(JNIEnv* env, jobject obj)
{
	((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->setReadWrite();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_ReadWritePart_setReadWrite__Z(JNIEnv* env, jobject obj, jboolean readwrite)
{
	((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->setReadWrite((bool) readwrite);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_ReadWritePart_waitSaveComplete(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::ReadWritePart*) QtSupport::getQt(env, obj))->waitSaveComplete();
	return xret;
}

