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

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

class KGlobalJBridge : public KGlobal
{
public:
	KGlobalJBridge() : KGlobal() {};
	~KGlobalJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_activeInstance(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::activeInstance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_charsets(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::charsets(), "org.kde.koala.KCharsets");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_config(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::config(), "org.kde.koala.KConfig");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGlobal_deleteStaticDeleters(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KGlobalJBridge::deleteStaticDeleters();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_dirs(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::dirs(), "org.kde.koala.KStandardDirs");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGlobal_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KGlobal_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_iconLoader(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::iconLoader(), "org.kde.koala.KIconLoader");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_instance(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_locale(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::locale(), "org.kde.koala.KLocale");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KGlobal_registerStaticDeleter(JNIEnv* env, jclass cls, jobject d)
{
	(void) cls;
	KGlobalJBridge::registerStaticDeleter((KStaticDeleterBase*) QtSupport::getQt(env, d));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGlobal_setActiveInstance(JNIEnv* env, jclass cls, jobject d)
{
	(void) cls;
	KGlobalJBridge::setActiveInstance((KInstance*) QtSupport::getQt(env, d));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobal_sharedConfig(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KGlobalJBridge::sharedConfig(), "org.kde.koala.KSharedConfig");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KGlobal_staticQString(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_str = 0;
	_qstring = KGlobalJBridge::staticQString((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGlobal_unregisterStaticDeleter(JNIEnv* env, jclass cls, jobject d)
{
	(void) cls;
	KGlobalJBridge::unregisterStaticDeleter((KStaticDeleterBase*) QtSupport::getQt(env, d));
	return;
}

