//Auto-generated by kalyptus. DO NOT EDIT.
#include <krootprop.h>
#include <qfont.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qcolor.h>

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

class KRootPropJBridge : public KRootProp
{
public:
	KRootPropJBridge(const QString& arg1) : KRootProp(arg1) {};
	KRootPropJBridge() : KRootProp() {};
	~KRootPropJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_destroy(JNIEnv* env, jobject obj)
{
	((KRootProp*) QtSupport::getQt(env, obj))->destroy();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KRootProp_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KRootProp_listEntries(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KRootProp*) QtSupport::getQt(env, obj))->listEntries();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_newKRootProp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rProp)
{
static QString* _qstring_rProp = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KRootPropJBridge((const QString&)*(QString*) QtSupport::toQString(env, rProp, &_qstring_rProp)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KRootProp_readColorEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
static QString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((KRootProp*) QtSupport::getQt(env, obj))->readColorEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey))), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KRootProp_readColorEntry__Ljava_lang_String_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jstring rKey, jobject pDefault)
{
static QString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((KRootProp*) QtSupport::getQt(env, obj))->readColorEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QColor*) QtSupport::getQt(env, pDefault))), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_readEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->readEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_readEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey, jstring pDefault)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
static QString* _qstring_pDefault = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->readEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QString&)*(QString*) QtSupport::toQString(env, pDefault, &_qstring_pDefault));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KRootProp_readFontEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
static QString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((KRootProp*) QtSupport::getQt(env, obj))->readFontEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey))), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KRootProp_readFontEntry__Ljava_lang_String_2Lorg_kde_qt_QFont_2(JNIEnv* env, jobject obj, jstring rKey, jobject pDefault)
{
static QString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((KRootProp*) QtSupport::getQt(env, obj))->readFontEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QFont*) QtSupport::getQt(env, pDefault))), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KRootProp_readNumEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
static QString* _qstring_rKey = 0;
	jint xret = (jint) ((KRootProp*) QtSupport::getQt(env, obj))->readNumEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KRootProp_readNumEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring rKey, jint nDefault)
{
static QString* _qstring_rKey = 0;
	jint xret = (jint) ((KRootProp*) QtSupport::getQt(env, obj))->readNumEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (int) nDefault);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_removeEntry(JNIEnv* env, jobject obj, jstring rKey)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->removeEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_setProp__(JNIEnv* env, jobject obj)
{
	((KRootProp*) QtSupport::getQt(env, obj))->setProp();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_setProp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rProp)
{
static QString* _qstring_rProp = 0;
	((KRootProp*) QtSupport::getQt(env, obj))->setProp((const QString&)*(QString*) QtSupport::toQString(env, rProp, &_qstring_rProp));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootProp_sync(JNIEnv* env, jobject obj)
{
	((KRootProp*) QtSupport::getQt(env, obj))->sync();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_writeEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring rKey, jint nValue)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (int) nValue);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_writeEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey, jstring rValue)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
static QString* _qstring_rValue = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QString&)*(QString*) QtSupport::toQString(env, rValue, &_qstring_rValue));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_writeEntry__Ljava_lang_String_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jstring rKey, jobject rColor)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QColor&)*(const QColor*) QtSupport::getQt(env, rColor));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRootProp_writeEntry__Ljava_lang_String_2Lorg_kde_qt_QFont_2(JNIEnv* env, jobject obj, jstring rKey, jobject rFont)
{
	QString  _qstring;
static QString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, rKey, &_qstring_rKey), (const QFont&)*(const QFont*) QtSupport::getQt(env, rFont));
	return QtSupport::fromQString(env, &_qstring);
}

