/***************************************************************************
                            KListViewItem.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 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 <klistview.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KListViewItem.h>

class KListViewItemJBridge : public KListViewItem
{
public:
	KListViewItemJBridge(QListView* parent) : KListViewItem(parent) {}
	KListViewItemJBridge(QListViewItem* parent) : KListViewItem(parent) {}
	KListViewItemJBridge(QListView* parent, QListViewItem* after) : KListViewItem(parent, after) {}
	KListViewItemJBridge(QListViewItem* parent, QListViewItem* after) : KListViewItem(parent, after) {}
	KListViewItemJBridge(QListView* parent, QString arg1, QString arg2, QString arg3, QString arg4, QString arg5, QString arg6, QString arg7, QString arg8) : KListViewItem(parent, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {}
	KListViewItemJBridge(QListViewItem* parent, QString arg1, QString arg2, QString arg3, QString arg4, QString arg5, QString arg6, QString arg7, QString arg8) : KListViewItem(parent, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {}
	KListViewItemJBridge(QListView* parent, QListViewItem* after, QString arg1, QString arg2, QString arg3, QString arg4, QString arg5, QString arg6, QString arg7, QString arg8) : KListViewItem(parent, after, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {}
	KListViewItemJBridge(QListViewItem* parent, QListViewItem* after, QString arg1, QString arg2, QString arg3, QString arg4, QString arg5, QString arg6, QString arg7, QString arg8) : KListViewItem(parent, after, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {}
	~KListViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};


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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListView_2Lorg_kde_qt_QListViewItem_2(JNIEnv *env, jobject obj, jobject parent, jobject after)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListViewItem_2Lorg_kde_qt_QListViewItem_2(JNIEnv *env, jobject obj, jobject parent, jobject after)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListViewItem*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring arg1, jstring arg2, jstring arg3, jstring arg4, jstring arg5, jstring arg6, jstring arg7, jstring arg8)
{
static QString * _qstring_arg8 = 0;
static QString * _qstring_arg7 = 0;
static QString * _qstring_arg6 = 0;
static QString * _qstring_arg5 = 0;
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QString) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4), (QString) * (QString *) QtSupport::toQString(env, arg5, &_qstring_arg5), (QString) * (QString *) QtSupport::toQString(env, arg6, &_qstring_arg6), (QString) * (QString *) QtSupport::toQString(env, arg7, &_qstring_arg7), (QString) * (QString *) QtSupport::toQString(env, arg8, &_qstring_arg8)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), QString::null, QString::null, QString::null, QString::null, QString::null, QString::null, QString::null));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring arg1, jstring arg2, jstring arg3, jstring arg4, jstring arg5, jstring arg6, jstring arg7, jstring arg8)
{
static QString * _qstring_arg8 = 0;
static QString * _qstring_arg7 = 0;
static QString * _qstring_arg6 = 0;
static QString * _qstring_arg5 = 0;
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListViewItem*) QtSupport::getQt(env, parent), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QString) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4), (QString) * (QString *) QtSupport::toQString(env, arg5, &_qstring_arg5), (QString) * (QString *) QtSupport::toQString(env, arg6, &_qstring_arg6), (QString) * (QString *) QtSupport::toQString(env, arg7, &_qstring_arg7), (QString) * (QString *) QtSupport::toQString(env, arg8, &_qstring_arg8)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListViewItem*) QtSupport::getQt(env, parent), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), QString::null, QString::null, QString::null, QString::null, QString::null, QString::null, QString::null));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListView_2Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jobject after, jstring arg1, jstring arg2, jstring arg3, jstring arg4, jstring arg5, jstring arg6, jstring arg7, jstring arg8)
{
static QString * _qstring_arg8 = 0;
static QString * _qstring_arg7 = 0;
static QString * _qstring_arg6 = 0;
static QString * _qstring_arg5 = 0;
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QString) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4), (QString) * (QString *) QtSupport::toQString(env, arg5, &_qstring_arg5), (QString) * (QString *) QtSupport::toQString(env, arg6, &_qstring_arg6), (QString) * (QString *) QtSupport::toQString(env, arg7, &_qstring_arg7), (QString) * (QString *) QtSupport::toQString(env, arg8, &_qstring_arg8)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListView_2Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jobject after, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), QString::null, QString::null, QString::null, QString::null, QString::null, QString::null, QString::null));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListViewItem_2Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jobject after, jstring arg1, jstring arg2, jstring arg3, jstring arg4, jstring arg5, jstring arg6, jstring arg7, jstring arg8)
{
static QString * _qstring_arg8 = 0;
static QString * _qstring_arg7 = 0;
static QString * _qstring_arg6 = 0;
static QString * _qstring_arg5 = 0;
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListViewItem*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QString) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4), (QString) * (QString *) QtSupport::toQString(env, arg5, &_qstring_arg5), (QString) * (QString *) QtSupport::toQString(env, arg6, &_qstring_arg6), (QString) * (QString *) QtSupport::toQString(env, arg7, &_qstring_arg7), (QString) * (QString *) QtSupport::toQString(env, arg8, &_qstring_arg8)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_newKListViewItem__Lorg_kde_qt_QListViewItem_2Lorg_kde_qt_QListViewItem_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jobject after, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KListViewItemJBridge((QListViewItem*) QtSupport::getQt(env, parent), (QListViewItem*) QtSupport::getQt(env, after), (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), QString::null, QString::null, QString::null, QString::null, QString::null, QString::null, QString::null));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KListViewItem*)QtSupport::getQt(env, obj))->parent() == (QListViewItem *) 0) {
		delete (KListViewItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KListViewItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KListViewItem_backgroundColor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((KListViewItem*) QtSupport::getQt(env, obj))->backgroundColor(), "org.kde.qt.QColor");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KListViewItem_paintCell(JNIEnv *env, jobject obj, jobject p, jobject cg, jint column, jint width, jint alignment)
{
	((KListViewItem*) QtSupport::getQt(env, obj))->paintCell((QPainter*) QtSupport::getQt(env, p), (QColorGroup&) *(QColorGroup *) QtSupport::getQt(env, cg), (int) column, (int) width, (int) alignment);
	return;
}

