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

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

class KWindowInfoJBridge : public KWindowInfo
{
public:
	KWindowInfoJBridge(TQWidget* arg1,const char* arg2) : KWindowInfo(arg1,arg2) {};
	KWindowInfoJBridge(TQWidget* arg1) : KWindowInfo(arg1) {};
	void protected_display(const TQString& arg1,const TQPixmap& arg2) {
		KWindowInfo::display(arg1,arg2);
		return;
	}
	void protected_save() {
		KWindowInfo::save();
		return;
	}
	void protected_restore() {
		KWindowInfo::restore();
		return;
	}
	~KWindowInfoJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void restore() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KWindowInfo","restore")) {
			KWindowInfo::restore();
		}
		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 save() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KWindowInfo","save")) {
			KWindowInfo::save();
		}
		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.koala.KWindowInfo",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_autoDelete(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KWindowInfo*) QtSupport::getQt(env, obj))->autoDelete();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_display(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static TQString* _qstring_text = 0;
	((KWindowInfoJBridge*) QtSupport::getQt(env, obj))->protected_display((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KWindowInfo_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_message__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->message((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_message__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring text, jint timeout)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->message((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) timeout);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_message__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->message((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_message__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jstring text, jobject pix, jint timeout)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->message((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix), (int) timeout);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_newKWindowInfo__Lorg_trinitydesktop_qt_QWidget_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 KWindowInfoJBridge((TQWidget*) 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_koala_KWindowInfo_permanent__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->permanent((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_permanent__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static TQString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->permanent((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_restore(JNIEnv* env, jobject obj)
{
	((KWindowInfoJBridge*) QtSupport::getQt(env, obj))->protected_restore();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_save(JNIEnv* env, jobject obj)
{
	((KWindowInfoJBridge*) QtSupport::getQt(env, obj))->protected_save();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_setAutoDelete(JNIEnv* env, jobject obj, jboolean enable)
{
	((KWindowInfo*) QtSupport::getQt(env, obj))->setAutoDelete((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_showMessage__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject window, jstring text)
{
	(void) cls;
static TQString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((TQWidget*) QtSupport::getQt(env, window), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_showMessage__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2I(JNIEnv* env, jclass cls, jobject window, jstring text, jint timeout)
{
	(void) cls;
static TQString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((TQWidget*) QtSupport::getQt(env, window), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) timeout);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_showMessage__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jclass cls, jobject window, jstring text, jobject pix)
{
	(void) cls;
static TQString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((TQWidget*) QtSupport::getQt(env, window), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KWindowInfo_showMessage__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jclass cls, jobject window, jstring text, jobject pix, jint timeout)
{
	(void) cls;
static TQString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((TQWidget*) QtSupport::getQt(env, window), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix), (int) timeout);
	return;
}

