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

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

class TDEGlobalJBridge : public TDEGlobal
{
public:
	TDEGlobalJBridge() : TDEGlobal() {};
	~TDEGlobalJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_activeInstance(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::activeInstance(), "org.trinitydesktop.koala.TDEInstanceInterface");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_config(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::config(), "org.trinitydesktop.koala.TDEConfig");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_dirs(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::dirs(), "org.trinitydesktop.koala.TDEStandardDirs");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEGlobal_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_iconLoader(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::iconLoader(), "org.trinitydesktop.koala.TDEIconLoader");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_instance(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::instance(), "org.trinitydesktop.koala.TDEInstanceInterface");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_locale(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::locale(), "org.trinitydesktop.koala.TDELocale");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_setActiveInstance(JNIEnv* env, jclass cls, jobject d)
{
	(void) cls;
	TDEGlobalJBridge::setActiveInstance((TDEInstance*) QtSupport::getQt(env, d));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEGlobal_sharedConfig(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::sharedConfig(), "org.trinitydesktop.koala.TDESharedConfig");
	return xret;
}

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

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

