//Auto-generated by kalyptus. DO NOT EDIT.
#include <krootprop.h>
#include <tqfont.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqcolor.h>

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootProp_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KRootProp_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KRootProp_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KRootProp_newKRootProp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rProp)
{
static TQString* _qstring_rProp = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KRootPropJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, rProp, &_qstring_rProp)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KRootProp_readColorEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
static TQString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(((KRootProp*) QtSupport::getQt(env, obj))->readColorEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey))), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KRootProp_readColorEntry__Ljava_lang_String_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jstring rKey, jobject pDefault)
{
static TQString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(((KRootProp*) QtSupport::getQt(env, obj))->readColorEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey), (const TQColor*) QtSupport::getQt(env, pDefault))), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KRootProp_readEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
	TQString  _qstring;
static TQString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->readEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey));
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KRootProp_readFontEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring rKey)
{
static TQString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((KRootProp*) QtSupport::getQt(env, obj))->readFontEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey))), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KRootProp_readFontEntry__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jstring rKey, jobject pDefault)
{
static TQString* _qstring_rKey = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((KRootProp*) QtSupport::getQt(env, obj))->readFontEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey), (const TQFont*) QtSupport::getQt(env, pDefault))), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KRootProp_removeEntry(JNIEnv* env, jobject obj, jstring rKey)
{
	TQString  _qstring;
static TQString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->removeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey));
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KRootProp_writeEntry__Ljava_lang_String_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jstring rKey, jobject rColor)
{
	TQString  _qstring;
static TQString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, rColor));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KRootProp_writeEntry__Ljava_lang_String_2Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jstring rKey, jobject rFont)
{
	TQString  _qstring;
static TQString* _qstring_rKey = 0;
	_qstring = ((KRootProp*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, rKey, &_qstring_rKey), (const TQFont&)*(const TQFont*) QtSupport::getQt(env, rFont));
	return QtSupport::fromTQString(env, &_qstring);
}

