/***************************************************************************
                            QFontDatabase.cpp -  description
                             -------------------
    begin                : Tue Mar  5 13:44:57 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar  5 13:44:57 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qfontdatabase.h>
#include <qstring.h>
#include <qcstring.h>

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

class QFontDatabaseJBridge : public QFontDatabase
{
public:
	QFontDatabaseJBridge() : QFontDatabase() {}
};


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 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_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((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (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_2(JNIEnv *env, jobject obj, jstring arg1, jstring arg2)
{
	QValueList<int> _qintArray;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
	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((QFont&) *(QFont *) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFont (((QFontDatabase*) QtSupport::getQt(env, obj))->font((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) arg3)), "org.kde.qt.QFont", TRUE);
}

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->italic((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->bold((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jint) ((QFontDatabase*) QtSupport::getQt(env, obj))->weight((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
}

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 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_arg2 = 0;
static QString * _qstring_arg1 = 0;
	_qlist = ((QFontDatabase*) QtSupport::getQt(env, obj))->styles((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
	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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	_qintArray = ((QFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

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_arg4 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFont (((QFontDatabase*) QtSupport::getQt(env, obj))->font((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (int) arg3, (QString&) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4))), "org.kde.qt.QFont", TRUE);
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isScalable((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->italic((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jboolean) ((QFontDatabase*) QtSupport::getQt(env, obj))->bold((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	return (jint) ((QFontDatabase*) QtSupport::getQt(env, obj))->weight((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
}

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

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

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

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QFontDatabase_qwsAddDiskFont(JNIEnv *env, jclass obj, jobject qdf)
//{
//	QFontDatabaseJBridge::qwsAddDiskFont((QDiskFont*) QtSupport::getQt(env, qdf));
//	return;
//}

