//Auto-generated by kalyptus. DO NOT EDIT.
#include <kconfigdata.h>
#include <qcstring.h>

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KEntryKey_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KEntryKey_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KEntryKey_newKEntryKey__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _group)
{
static QCString* _qcstring__group = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KEntryKeyJBridge((const QCString&)*(QCString*) QtSupport::toQCString(env, _group, &_qcstring__group)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

