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

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

class TQSqlIndexJBridge : public TQSqlIndex
{
public:
	TQSqlIndexJBridge(const TQString& arg1,const TQString& arg2) : TQSqlIndex(arg1,arg2) {};
	TQSqlIndexJBridge(const TQString& arg1) : TQSqlIndex(arg1) {};
	TQSqlIndexJBridge() : TQSqlIndex() {};
	TQSqlIndexJBridge(const TQSqlIndex& arg1) : TQSqlIndex(arg1) {};
	~TQSqlIndexJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_append__Lorg_trinitydesktop_qt_QSqlField_2(JNIEnv* env, jobject obj, jobject field)
{
	((TQSqlIndex*) QtSupport::getQt(env, obj))->append((const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_append__Lorg_trinitydesktop_qt_QSqlField_2Z(JNIEnv* env, jobject obj, jobject field, jboolean desc)
{
	((TQSqlIndex*) QtSupport::getQt(env, obj))->append((const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field), (bool) desc);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_cursorName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->cursorName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSqlIndex_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_fromStringList(JNIEnv* env, jclass cls, jobjectArray l, jobject cursor)
{
	(void) cls;
static TQStringList* _qlist_l = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(TQSqlIndexJBridge::fromStringList((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, l, &_qlist_l), (const TQSqlCursor*) QtSupport::getQt(env, cursor))), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_isDescending(JNIEnv* env, jobject obj, jint i)
{
	jboolean xret = (jboolean) ((TQSqlIndex*) QtSupport::getQt(env, obj))->isDescending((int) i);
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_newTQSqlIndex__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring cursorName)
{
static TQString* _qstring_cursorName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlIndexJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, cursorName, &_qstring_cursorName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_newTQSqlIndex__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring cursorName, jstring name)
{
static TQString* _qstring_cursorName = 0;
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlIndexJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, cursorName, &_qstring_cursorName), (const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_newTQSqlIndex__Lorg_trinitydesktop_qt_QSqlIndex_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlIndexJBridge((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_setCursorName(JNIEnv* env, jobject obj, jstring cursorName)
{
static TQString* _qstring_cursorName = 0;
	((TQSqlIndex*) QtSupport::getQt(env, obj))->setCursorName((const TQString&)*(TQString*) QtSupport::toTQString(env, cursorName, &_qstring_cursorName));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_setDescending(JNIEnv* env, jobject obj, jint i, jboolean desc)
{
	((TQSqlIndex*) QtSupport::getQt(env, obj))->setDescending((int) i, (bool) desc);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_setName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((TQSqlIndex*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	TQStringList  _qlist;
static TQString* _qstring_prefix = 0;
	_qlist = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toStringList((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toStringList__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring prefix, jboolean verbose)
{
	TQStringList  _qlist;
static TQString* _qstring_prefix = 0;
	_qlist = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toStringList((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (bool) verbose);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toString__(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toString__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toString__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix, jstring sep)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_sep = 0;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlIndex_toString__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring prefix, jstring sep, jboolean verbose)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_sep = 0;
	_qstring = ((TQSqlIndex*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep), (bool) verbose);
	return QtSupport::fromTQString(env, &_qstring);
}

