//Auto-generated by kalyptus. DO NOT EDIT.
#include <qfontdatabase.h>
#include <qfont.h>
#include <qstring.h>
#include <qstringlist.h>

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

class QFontDatabaseJBridge : public QFontDatabase
{
public:
	QFontDatabaseJBridge() : QFontDatabase() {};
	~QFontDatabaseJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_bold__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->bold((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_bold__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->bold((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFontDatabase_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QFontDatabase_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_families__(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->families();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_families__I(JNIEnv* env, jobject obj, jint arg1)
{
	QStringList  _qlist;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->families((QFont::Script) arg1);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_families__Z(JNIEnv* env, jobject obj, jboolean arg1)
{
	QStringList  _qlist;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->families((bool) arg1);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_font__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jint arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((QFontDatabase*) QtSupport::getQt(env, obj))->font((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) arg3)), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_font__Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jint arg3, jstring arg4)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg4 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(((QFontDatabase*) QtSupport::getQt(env, obj))->font((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) arg3, (const QString&)*(QString*) QtSupport::toQString(env, arg4, &_qstring_arg4))), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isBitmapScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isBitmapScalable__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isBitmapScalable__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isFixedPitch__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isFixedPitch__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isFixedPitch__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isScalable__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isScalable__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isSmoothlyScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isSmoothlyScalable__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_isSmoothlyScalable__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_italic__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->italic((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFontDatabase_italic__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jboolean xret = (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->italic((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

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

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_pointSizes__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	QValueList<int> _qintArray;
static QString* _qstring_arg1 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_pointSizes__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	QValueList<int> _qintArray;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_pointSizes__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
	QValueList<int> _qintArray;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFontDatabase_scriptName(JNIEnv* env, jclass cls, jint arg1)
{
	QString  _qstring;
	(void) cls;
	_qstring = QFontDatabaseJBridge::scriptName((QFont::Script) arg1);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFontDatabase_scriptSample(JNIEnv* env, jclass cls, jint arg1)
{
	QString  _qstring;
	(void) cls;
	_qstring = QFontDatabaseJBridge::scriptSample((QFont::Script) arg1);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_smoothSizes__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	QValueList<int> _qintArray;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_smoothSizes__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
	QValueList<int> _qintArray;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QFontDatabase_standardSizes(JNIEnv* env, jclass cls)
{
	QValueList<int> _qintArray;
	(void) cls;
	_qintArray = QFontDatabaseJBridge::standardSizes();
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFontDatabase_styleString(JNIEnv* env, jobject obj, jobject arg1)
{
	QString  _qstring;
	_qstring = ((QFontDatabase*) QtSupport::getQt(env, obj))->styleString((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_styles__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->styles((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDatabase_styles__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->styles((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFontDatabase_weight__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
	jint xret = (jint) ((QFontDatabase*) QtSupport::getQt(env, obj))->weight((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFontDatabase_weight__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString* _qstring_arg1 = 0;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg3 = 0;
	jint xret = (jint) ((QFontDatabase*) QtSupport::getQt(env, obj))->weight((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return xret;
}

