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

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

class KAboutTranslatorJBridge : public KAboutTranslator
{
public:
	KAboutTranslatorJBridge(const TQString& arg1,const TQString& arg2) : KAboutTranslator(arg1,arg2) {};
	KAboutTranslatorJBridge(const TQString& arg1) : KAboutTranslator(arg1) {};
	KAboutTranslatorJBridge() : KAboutTranslator() {};
	~KAboutTranslatorJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KAboutTranslator_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KAboutTranslator_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutTranslator_emailAddress(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KAboutTranslator*) QtSupport::getQt(env, obj))->emailAddress();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutTranslator_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KAboutTranslator*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAboutTranslator_newKAboutTranslator__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAboutTranslatorJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAboutTranslator_newKAboutTranslator__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring emailAddress)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_emailAddress = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAboutTranslatorJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toQString(env, emailAddress, &_qstring_emailAddress)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

