//Auto-generated by kalyptus. DO NOT EDIT.
#include <qpixmap.h>
#include <kwindowinfo.h>
#include <qstring.h>

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

class KWindowInfoJBridge : public KWindowInfo
{
public:
	KWindowInfoJBridge(QWidget* arg1,const char* arg2) : KWindowInfo(arg1,arg2) {};
	KWindowInfoJBridge(QWidget* arg1) : KWindowInfo(arg1) {};
	void protected_display(const QString& arg1,const QPixmap& arg2) {
		KWindowInfo::display(arg1,arg2);
		return;
	}
	void protected_save() {
		KWindowInfo::save();
		return;
	}
	void protected_restore() {
		KWindowInfo::restore();
		return;
	}
	~KWindowInfoJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void restore() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KWindowInfo","restore")) {
			KWindowInfo::restore();
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void save() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KWindowInfo","save")) {
			KWindowInfo::save();
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KWindowInfo",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KWindowInfo_display(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static QString* _qstring_text = 0;
	((KWindowInfoJBridge*) QtSupport::getQt(env, obj))->protected_display((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KWindowInfo_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KWindowInfo_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_message__Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static QString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->message((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_newKWindowInfo__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KWindowInfoJBridge((QWidget*) 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_kde_koala_KWindowInfo_permanent__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->permanent((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_permanent__Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jstring text, jobject pix)
{
static QString* _qstring_text = 0;
	((KWindowInfo*) QtSupport::getQt(env, obj))->permanent((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_showMessage__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject window, jstring text)
{
	(void) cls;
static QString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((QWidget*) QtSupport::getQt(env, window), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_showMessage__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv* env, jclass cls, jobject window, jstring text, jobject pix)
{
	(void) cls;
static QString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((QWidget*) QtSupport::getQt(env, window), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KWindowInfo_showMessage__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2I(JNIEnv* env, jclass cls, jobject window, jstring text, jobject pix, jint timeout)
{
	(void) cls;
static QString* _qstring_text = 0;
	KWindowInfoJBridge::showMessage((QWidget*) QtSupport::getQt(env, window), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pix), (int) timeout);
	return;
}

