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

#include <qtjava/QtSupport.h>
#include <qtjava/TQTranslator.h>

class TQTranslatorJBridge : public TQTranslator
{
public:
	TQTranslatorJBridge(TQObject* arg1,const char* arg2) : TQTranslator(arg1,arg2) {};
	TQTranslatorJBridge(TQObject* arg1) : TQTranslator(arg1) {};
	TQTranslatorJBridge() : TQTranslator() {};
	~TQTranslatorJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQTranslator",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTranslator_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_clear(JNIEnv* env, jobject obj)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring comment)
{
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
static TQCString* _qstring_comment = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QTranslator_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQTranslator*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (TQTranslator*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQTranslatorMessage(((TQTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2))), "org.trinitydesktop.qt.TQTranslatorMessage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
static TQCString* _qstring_arg3 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQTranslatorMessage(((TQTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3))), "org.trinitydesktop.qt.TQTranslatorMessage", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_sourceText = 0;
	_qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring comment)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_sourceText = 0;
static TQCString* _qstring_comment = 0;
	_qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_insert__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring translation)
{
static TQCString* _qstring_context = 0;
static TQCString* _qstring_sourceText = 0;
static TQString* _qstring_translation = 0;
	((TQTranslator*) QtSupport::getQt(env, obj))->insert((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const TQString&)*(TQString*) QtSupport::toTQString(env, translation, &_qstring_translation));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_insert__Lorg_trinitydesktop_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->insert((const TQTranslatorMessage&)*(const TQTranslatorMessage*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory)
{
static TQString* _qstring_filename = 0;
static TQString* _qstring_directory = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters)
{
static TQString* _qstring_filename = 0;
static TQString* _qstring_directory = 0;
static TQString* _qstring_search_delimiters = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters, jstring suffix)
{
static TQString* _qstring_filename = 0;
static TQString* _qstring_directory = 0;
static TQString* _qstring_search_delimiters = 0;
static TQString* _qstring_suffix = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_load___3CI(JNIEnv* env, jobject obj, jcharArray data, jint len)
{
static TQByteArray* _qbytearray_data = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTranslator_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_newTQTranslator__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_remove__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText)
{
static TQCString* _qstring_context = 0;
static TQCString* _qstring_sourceText = 0;
	((TQTranslator*) QtSupport::getQt(env, obj))->remove((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_remove__Lorg_trinitydesktop_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->remove((const TQTranslatorMessage&)*(const TQTranslatorMessage*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_save__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTranslator_save__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring filename, jint mode)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (TQTranslator::SaveMode) mode);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_squeeze__(JNIEnv* env, jobject obj)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->squeeze();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_squeeze__I(JNIEnv* env, jobject obj, jint arg1)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->squeeze((TQTranslator::SaveMode) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTranslator_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTranslator_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTranslator_unsqueeze(JNIEnv* env, jobject obj)
{
	((TQTranslator*) QtSupport::getQt(env, obj))->unsqueeze();
	return;
}

