//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqfontdatabase.h>
#include <tqfont.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class TQFontDatabaseJBridge : public TQFontDatabase
{
public:
	TQFontDatabaseJBridge() : TQFontDatabase() {};
	~TQFontDatabaseJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QFontDatabase_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_families__(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQFontDatabase*) QtSupport::getQt(env, obj))->families();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_families__I(JNIEnv* env, jobject obj, jint arg1)
{
	TQStringList  _qlist;
	_qlist = ((TQFontDatabase*) QtSupport::getQt(env, obj))->families((TQFont::Script) arg1);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_families__Z(JNIEnv* env, jobject obj, jboolean arg1)
{
	TQStringList  _qlist;
	_qlist = ((TQFontDatabase*) QtSupport::getQt(env, obj))->families((bool) arg1);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_font__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jint arg3)
{
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((TQFontDatabase*) QtSupport::getQt(env, obj))->font((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2), (int) arg3)), "org.trinitydesktop.qt.TQFont", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
static TQString* _qstring_arg4 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((TQFontDatabase*) QtSupport::getQt(env, obj))->font((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2), (int) arg3, (const TQString&)*(TQString*) QtSupport::toTQString(env, arg4, &_qstring_arg4))), "org.trinitydesktop.qt.TQFont", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_isBitmapScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((TQFontDatabase*) QtSupport::getQt(env, obj))->isBitmapScalable((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_isFixedPitch__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((TQFontDatabase*) QtSupport::getQt(env, obj))->isFixedPitch((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_isScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((TQFontDatabase*) QtSupport::getQt(env, obj))->isScalable((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_isSmoothlyScalable__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((TQFontDatabase*) QtSupport::getQt(env, obj))->isSmoothlyScalable((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

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

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

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

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

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

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_pointSizes__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	TQValueList<int> _qintArray;
static TQString* _qstring_arg1 = 0;
	_qintArray = ((TQFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_pointSizes__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	TQValueList<int> _qintArray;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	_qintArray = ((TQFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_pointSizes__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
	TQValueList<int> _qintArray;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
static TQString* _qstring_arg3 = 0;
	_qintArray = ((TQFontDatabase*) QtSupport::getQt(env, obj))->pointSizes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3));
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_scriptName(JNIEnv* env, jclass cls, jint arg1)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQFontDatabaseJBridge::scriptName((TQFont::Script) arg1);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_scriptSample(JNIEnv* env, jclass cls, jint arg1)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQFontDatabaseJBridge::scriptSample((TQFont::Script) arg1);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_smoothSizes__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	TQValueList<int> _qintArray;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	_qintArray = ((TQFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_smoothSizes__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
	TQValueList<int> _qintArray;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
static TQString* _qstring_arg3 = 0;
	_qintArray = ((TQFontDatabase*) QtSupport::getQt(env, obj))->smoothSizes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3));
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jintArray JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_standardSizes(JNIEnv* env, jclass cls)
{
	TQValueList<int> _qintArray;
	(void) cls;
	_qintArray = TQFontDatabaseJBridge::standardSizes();
	return QtSupport::fromTQIntValueList(env, &_qintArray);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_styleString(JNIEnv* env, jobject obj, jobject arg1)
{
	TQString  _qstring;
	_qstring = ((TQFontDatabase*) QtSupport::getQt(env, obj))->styleString((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_styles__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	TQStringList  _qlist;
static TQString* _qstring_arg1 = 0;
	_qlist = ((TQFontDatabase*) QtSupport::getQt(env, obj))->styles((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDatabase_styles__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
	TQStringList  _qlist;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	_qlist = ((TQFontDatabase*) QtSupport::getQt(env, obj))->styles((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

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

