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

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

class KRootPixmapJBridge : public KRootPixmap
{
public:
	KRootPixmapJBridge(TQWidget* arg1,const char* arg2) : KRootPixmap(arg1,arg2) {};
	KRootPixmapJBridge(TQWidget* arg1) : KRootPixmap(arg1) {};
	KRootPixmapJBridge(TQWidget* arg1,TQObject* arg2,const char* arg3) : KRootPixmap(arg1,arg2,arg3) {};
	KRootPixmapJBridge(TQWidget* arg1,TQObject* arg2) : KRootPixmap(arg1,arg2) {};
	void public_start() {
		KRootPixmap::start();
		return;
	}
	void public_stop() {
		KRootPixmap::stop();
		return;
	}
	bool protected_eventFilter(TQObject* arg1,TQEvent* arg2) {
		return (bool) KRootPixmap::eventFilter(arg1,arg2);
	}
	~KRootPixmapJBridge() {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 start() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KRootPixmap","start")) {
			KRootPixmap::start();
		}
		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.KRootPixmap",object,event)) {
			return KRootPixmap::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KRootPixmap","stop")) {
			KRootPixmap::stop();
		}
		return;
	}
};

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_color(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColor *) &((KRootPixmap*) QtSupport::getQt(env, obj))->color(), "org.trinitydesktop.qt.TQColor");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_currentDesktop(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KRootPixmap*) QtSupport::getQt(env, obj))->currentDesktop();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_customPainting(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KRootPixmap*) QtSupport::getQt(env, obj))->customPainting();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KRootPixmap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_enableExports(JNIEnv* env, jobject obj)
{
	((KRootPixmap*) QtSupport::getQt(env, obj))->enableExports();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((KRootPixmapJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((TQObject*) QtSupport::getQt(env, arg1), (TQEvent*) QtSupport::getQt(env, arg2));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_isActive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KRootPixmap*) QtSupport::getQt(env, obj))->isActive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_isAvailable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KRootPixmap*) QtSupport::getQt(env, obj))->isAvailable();
	return xret;
}

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

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

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

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

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

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

JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_opacity(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((KRootPixmap*) QtSupport::getQt(env, obj))->opacity();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_pixmapName(JNIEnv* env, jclass cls, jint desk)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KRootPixmapJBridge::pixmapName((int) desk);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_repaint__(JNIEnv* env, jobject obj)
{
	((KRootPixmap*) QtSupport::getQt(env, obj))->repaint();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_repaint__Z(JNIEnv* env, jobject obj, jboolean force)
{
	((KRootPixmap*) QtSupport::getQt(env, obj))->repaint((bool) force);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_setCustomPainting(JNIEnv* env, jobject obj, jboolean enable)
{
	((KRootPixmap*) QtSupport::getQt(env, obj))->setCustomPainting((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_setFadeEffect(JNIEnv* env, jobject obj, jdouble opacity, jobject color)
{
	((KRootPixmap*) QtSupport::getQt(env, obj))->setFadeEffect((double) opacity, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, color));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_start(JNIEnv* env, jobject obj)
{
	((KRootPixmapJBridge*) QtSupport::getQt(env, obj))->public_start();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KRootPixmap_stop(JNIEnv* env, jobject obj)
{
	((KRootPixmapJBridge*) QtSupport::getQt(env, obj))->public_stop();
	return;
}

