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

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

class QSqlIndexJBridge : public QSqlIndex
{
public:
	QSqlIndexJBridge(const QString& arg1,const QString& arg2) : QSqlIndex(arg1,arg2) {};
	QSqlIndexJBridge(const QString& arg1) : QSqlIndex(arg1) {};
	QSqlIndexJBridge() : QSqlIndex() {};
	QSqlIndexJBridge(const QSqlIndex& arg1) : QSqlIndex(arg1) {};
	~QSqlIndexJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_cursorName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->cursorName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlIndex_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlIndex_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlIndex_fromStringList(JNIEnv* env, jclass cls, jobjectArray l, jobject cursor)
{
	(void) cls;
static QStringList* _qlist_l = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlIndex(QSqlIndexJBridge::fromStringList((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, l, &_qlist_l), (const QSqlCursor*) QtSupport::getQt(env, cursor))), "org.kde.qt.QSqlIndex", TRUE);
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_name(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlIndex_newQSqlIndex__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring cursorName)
{
static QString* _qstring_cursorName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlIndexJBridge((const QString&)*(QString*) QtSupport::toQString(env, cursorName, &_qstring_cursorName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlIndex_setCursorName(JNIEnv* env, jobject obj, jstring cursorName)
{
static QString* _qstring_cursorName = 0;
	((QSqlIndex*) QtSupport::getQt(env, obj))->setCursorName((const QString&)*(QString*) QtSupport::toQString(env, cursorName, &_qstring_cursorName));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlIndex_setName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((QSqlIndex*) QtSupport::getQt(env, obj))->setName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlIndex_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	QStringList  _qlist;
static QString* _qstring_prefix = 0;
	_qlist = ((QSqlIndex*) QtSupport::getQt(env, obj))->toStringList((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlIndex_toStringList__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring prefix, jboolean verbose)
{
	QStringList  _qlist;
static QString* _qstring_prefix = 0;
	_qlist = ((QSqlIndex*) QtSupport::getQt(env, obj))->toStringList((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix), (bool) verbose);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_toString__(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_toString__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	QString  _qstring;
static QString* _qstring_prefix = 0;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->toString((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_toString__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix, jstring sep)
{
	QString  _qstring;
static QString* _qstring_prefix = 0;
static QString* _qstring_sep = 0;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->toString((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix), (const QString&)*(QString*) QtSupport::toQString(env, sep, &_qstring_sep));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlIndex_toString__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring prefix, jstring sep, jboolean verbose)
{
	QString  _qstring;
static QString* _qstring_prefix = 0;
static QString* _qstring_sep = 0;
	_qstring = ((QSqlIndex*) QtSupport::getQt(env, obj))->toString((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix), (const QString&)*(QString*) QtSupport::toQString(env, sep, &_qstring_sep), (bool) verbose);
	return QtSupport::fromQString(env, &_qstring);
}

