//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeconfigdata.h>
#include <tqcstring.h>

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

class KEntryKeyJBridge : public KEntryKey
{
public:
	KEntryKeyJBridge(const TQCString& arg1,const TQCString& arg2) : KEntryKey(arg1,arg2) {};
	KEntryKeyJBridge(const TQCString& arg1) : KEntryKey(arg1) {};
	KEntryKeyJBridge() : KEntryKey() {};
	~KEntryKeyJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEntryKey_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KEntryKey_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEntryKey_newKEntryKey__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _group)
{
static TQCString* _qcstring__group = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEntryKeyJBridge((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, _group, &_qcstring__group)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEntryKey_newKEntryKey__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _group, jstring _key)
{
static TQCString* _qcstring__group = 0;
static TQCString* _qcstring__key = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEntryKeyJBridge((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, _group, &_qcstring__group), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, _key, &_qcstring__key)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

