//Auto-generated by kalyptus. DO NOT EDIT.
#include <qpalette.h>
#include <qbrush.h>
#include <qcolor.h>
#include <qnamespace.h>

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

class QPaletteJBridge : public QPalette
{
public:
	QPaletteJBridge() : QPalette() {};
	QPaletteJBridge(const QColor& arg1) : QPalette(arg1) {};
	QPaletteJBridge(const QColor& arg1,const QColor& arg2) : QPalette(arg1,arg2) {};
	QPaletteJBridge(const QColorGroup& arg1,const QColorGroup& arg2,const QColorGroup& arg3) : QPalette(arg1,arg2,arg3) {};
	QPaletteJBridge(const QPalette& arg1) : QPalette(arg1) {};
	~QPaletteJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_active(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColorGroup *) &((QPalette*) QtSupport::getQt(env, obj))->active(), "org.kde.qt.QColorGroup");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPalette_backgroundRoleFromMode(JNIEnv* env, jclass cls, jint mode)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QPaletteJBridge::backgroundRoleFromMode((Qt::BackgroundMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_brush(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QBrush *) &((QPalette*) QtSupport::getQt(env, obj))->brush((QPalette::ColorGroup) arg1, (QColorGroup::ColorRole) arg2), "org.kde.qt.QBrush");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_color(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColor *) &((QPalette*) QtSupport::getQt(env, obj))->color((QPalette::ColorGroup) arg1, (QColorGroup::ColorRole) arg2), "org.kde.qt.QColor");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_copy(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPalette(((QPalette*) QtSupport::getQt(env, obj))->copy()), "org.kde.qt.QPalette", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_disabled(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColorGroup *) &((QPalette*) QtSupport::getQt(env, obj))->disabled(), "org.kde.qt.QColorGroup");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QPalette_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QPalette*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPalette_foregroundRoleFromMode(JNIEnv* env, jclass cls, jint mode)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QPaletteJBridge::foregroundRoleFromMode((Qt::BackgroundMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_inactive(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColorGroup *) &((QPalette*) QtSupport::getQt(env, obj))->inactive(), "org.kde.qt.QColorGroup");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPalette_isCopyOf(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QPalette*) QtSupport::getQt(env, obj))->isCopyOf((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_newQPalette__Lorg_kde_qt_QColorGroup_2Lorg_kde_qt_QColorGroup_2Lorg_kde_qt_QColorGroup_2(JNIEnv* env, jobject obj, jobject active, jobject disabled, jobject inactive)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaletteJBridge((const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, active), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, disabled), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, inactive)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_newQPalette__Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject button)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaletteJBridge((const QColor&)*(const QColor*) QtSupport::getQt(env, button)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_newQPalette__Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jobject button, jobject background)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaletteJBridge((const QColor&)*(const QColor*) QtSupport::getQt(env, button), (const QColor&)*(const QColor*) QtSupport::getQt(env, background)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_newQPalette__Lorg_kde_qt_QPalette_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaletteJBridge((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPalette_normal(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QColorGroup *) &((QPalette*) QtSupport::getQt(env, obj))->normal(), "org.kde.qt.QColorGroup");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPalette_op_1equals(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((QPalette*) QtSupport::getQt(env, obj))->operator==((const QPalette&)*(const QPalette*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPalette_op_1not_1equals(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((QPalette*) QtSupport::getQt(env, obj))->operator!=((const QPalette&)*(const QPalette*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPalette_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPalette*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setActive(JNIEnv* env, jobject obj, jobject arg1)
{
	((QPalette*) QtSupport::getQt(env, obj))->setActive((const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setBrush__IILorg_kde_qt_QBrush_2(JNIEnv* env, jobject obj, jint arg1, jint arg2, jobject arg3)
{
	((QPalette*) QtSupport::getQt(env, obj))->setBrush((QPalette::ColorGroup) arg1, (QColorGroup::ColorRole) arg2, (const QBrush&)*(const QBrush*) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setBrush__ILorg_kde_qt_QBrush_2(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	((QPalette*) QtSupport::getQt(env, obj))->setBrush((QColorGroup::ColorRole) arg1, (const QBrush&)*(const QBrush*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setColor__IILorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jint arg1, jint arg2, jobject arg3)
{
	((QPalette*) QtSupport::getQt(env, obj))->setColor((QPalette::ColorGroup) arg1, (QColorGroup::ColorRole) arg2, (const QColor&)*(const QColor*) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setColor__ILorg_kde_qt_QColor_2(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	((QPalette*) QtSupport::getQt(env, obj))->setColor((QColorGroup::ColorRole) arg1, (const QColor&)*(const QColor*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setDisabled(JNIEnv* env, jobject obj, jobject arg1)
{
	((QPalette*) QtSupport::getQt(env, obj))->setDisabled((const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setInactive(JNIEnv* env, jobject obj, jobject arg1)
{
	((QPalette*) QtSupport::getQt(env, obj))->setInactive((const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPalette_setNormal(JNIEnv* env, jobject obj, jobject cg)
{
	((QPalette*) QtSupport::getQt(env, obj))->setNormal((const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg));
	return;
}

