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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KRootPixmap_color(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColor *) &((KRootPixmap*) QtSupport::getQt(env, obj))->color(), "org.kde.qt.QColor");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootPixmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KRootPixmap_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootPixmap_newKRootPixmap__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject target, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KRootPixmapJBridge((QWidget*) 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_kde_koala_KRootPixmap_newKRootPixmap__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject target, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KRootPixmapJBridge((QWidget*) QtSupport::getQt(env, target), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KRootPixmap_newKRootPixmap__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject target, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KRootPixmapJBridge((QWidget*) QtSupport::getQt(env, target), (QObject*) 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_kde_koala_KRootPixmap_opacity(JNIEnv* env, jobject obj)
{
	jdouble xret = (jdouble) ((KRootPixmap*) QtSupport::getQt(env, obj))->opacity();
	return xret;
}

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

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

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

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

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

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

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

