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

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

class KInstanceJBridge : public KInstance
{
public:
	KInstanceJBridge(const TQCString& arg1) : KInstance(arg1) {};
	KInstanceJBridge(const KAboutData* arg1) : KInstance(arg1) {};
	KInstanceJBridge(KInstance* arg1) : KInstance(arg1) {};
	void protected_setConfigName(const TQString& arg1) {
		KInstance::setConfigName(arg1);
		return;
	}
	~KInstanceJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_aboutData(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->aboutData(), "org.kde.koala.KAboutData");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_config(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->config(), "org.kde.koala.KConfig");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_dirs(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->dirs(), "org.kde.koala.KStandardDirs");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KInstance_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KInstance_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_iconLoader(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->iconLoader(), "org.kde.koala.KIconLoader");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KInstance_instanceName(JNIEnv* env, jobject obj)
{
	TQCString  _qstring;
	_qstring = ((KInstance*) QtSupport::getQt(env, obj))->instanceName();
	return QtSupport::fromQCString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_mimeSourceFactory(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->mimeSourceFactory(), "org.kde.koala.KMimeSourceFactory");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KInstance_newIconLoader(JNIEnv* env, jobject obj)
{
	((KInstance*) QtSupport::getQt(env, obj))->newIconLoader();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KInstance_newKInstance__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring instanceName)
{
static TQCString* _qcstring_instanceName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KInstanceJBridge((const TQCString&)*(TQCString*) QtSupport::toQCString(env, instanceName, &_qcstring_instanceName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KInstance_newKInstance__Lorg_kde_koala_KAboutData_2(JNIEnv* env, jobject obj, jobject aboutData)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KInstanceJBridge((const KAboutData*) QtSupport::getQt(env, aboutData)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KInstance_setConfigName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((KInstanceJBridge*) QtSupport::getQt(env, obj))->protected_setConfigName((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KInstance_sharedConfig(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KInstance*) QtSupport::getQt(env, obj))->sharedConfig(), "org.kde.koala.KSharedConfig");
	return xret;
}

