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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_customColor(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorDialog::customColor((int) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_customCount(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorDialog::customCount();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorDialog_getColor__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(QColorDialog::getColor()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorDialog_getColor__Lorg_kde_qt_QColor_2(JNIEnv* env, jclass cls, jobject init)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(QColorDialog::getColor((const QColor&)*(const QColor*) QtSupport::getQt(env, init))), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorDialog_getColor__Lorg_kde_qt_QColor_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject init, jobject parent)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(QColorDialog::getColor((const QColor&)*(const QColor*) QtSupport::getQt(env, init), (QWidget*) QtSupport::getQt(env, parent))), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorDialog_getColor__Lorg_kde_qt_QColor_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject init, jobject parent, jstring name)
{
	(void) cls;
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(QColorDialog::getColor((const QColor&)*(const QColor*) QtSupport::getQt(env, init), (QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_getRgba__I(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorDialog::getRgba((QRgb) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_getRgba__I_3Z(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jint xret = (jint) QColorDialog::getRgba((QRgb) arg1,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_getRgba__I_3ZLorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok, jobject parent)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jint xret = (jint) QColorDialog::getRgba((QRgb) arg1,  (bool*) _bool_ok, (QWidget*) QtSupport::getQt(env, parent));
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColorDialog_getRgba__I_3ZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok, jobject parent, jstring name)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
static QCString* _qstring_name = 0;
	jint xret = (jint) QColorDialog::getRgba((QRgb) arg1,  (bool*) _bool_ok, (QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorDialog_setCustomColor(JNIEnv* env, jclass cls, jint arg1, jint arg2)
{
	(void) cls;
	(void) env;
	QColorDialog::setCustomColor((int) arg1, (QRgb) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorDialog_setStandardColor(JNIEnv* env, jclass cls, jint arg1, jint arg2)
{
	(void) cls;
	(void) env;
	QColorDialog::setStandardColor((int) arg1, (QRgb) arg2);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QColorDialog_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QColorDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QColorDialog_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QColorDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

