//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qpixmap.h>
#include <qstring.h>
#include <kfiledetailview.h>

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

class KFileListViewItemJBridge : public KFileListViewItem
{
public:
	KFileListViewItemJBridge(QListView* arg1,const QString& arg2,const QPixmap& arg3,KFileItem* arg4) : KFileListViewItem(arg1,arg2,arg3,arg4) {};
	KFileListViewItemJBridge(QListView* arg1,KFileItem* arg2) : KFileListViewItem(arg1,arg2) {};
	KFileListViewItemJBridge(QListView* arg1,const QString& arg2,const QPixmap& arg3,KFileItem* arg4,QListViewItem* arg5) : KFileListViewItem(arg1,arg2,arg3,arg4,arg5) {};
	~KFileListViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileListViewItem_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileListViewItem_fileInfo(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileListViewItem*) QtSupport::getQt(env, obj))->fileInfo(), "org.kde.koala.KFileItem");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_init(JNIEnv* env, jobject obj)
{
	((KFileListViewItem*) QtSupport::getQt(env, obj))->init();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileListViewItem_key(JNIEnv* env, jobject obj, jint arg1, jboolean arg2)
{
	QString  _qstring;
	_qstring = ((KFileListViewItem*) QtSupport::getQt(env, obj))->key((int) arg1, (bool) arg2);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_newKFileListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_newKFileListViewItem__Lorg_kde_qt_QListView_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KFileItem_2Lorg_kde_qt_QListViewItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi, jobject after)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileListViewItemJBridge((QListView*) QtSupport::getQt(env, parent), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi), (QListViewItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileListViewItem_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((KFileListViewItem*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileListViewItem_setKey(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	((KFileListViewItem*) QtSupport::getQt(env, obj))->setKey((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return;
}

