//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqpixmap.h>
#include <tqstring.h>
#include <tdefiledetailview.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KFileListViewItem.h>

class KFileListViewItemJBridge : public KFileListViewItem
{
public:
	KFileListViewItemJBridge(TQListView* arg1,const TQString& arg2,const TQPixmap& arg3,KFileItem* arg4) : KFileListViewItem(arg1,arg2,arg3,arg4) {};
	KFileListViewItemJBridge(TQListView* arg1,KFileItem* arg2) : KFileListViewItem(arg1,arg2) {};
	KFileListViewItemJBridge(TQListView* arg1,const TQString& arg2,const TQPixmap& arg3,KFileItem* arg4,TQListViewItem* arg5) : KFileListViewItem(arg1,arg2,arg3,arg4,arg5) {};
	~KFileListViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileListViewItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileListViewItem_finalize(env, obj);
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileListViewItem_newKFileListViewItem__Lorg_trinitydesktop_qt_QListView_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileListViewItemJBridge((TQListView*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileListViewItem_newKFileListViewItem__Lorg_trinitydesktop_qt_QListView_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_koala_KFileItem_2Lorg_trinitydesktop_qt_QListViewItem_2(JNIEnv* env, jobject obj, jobject parent, jstring text, jobject icon, jobject fi, jobject after)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileListViewItemJBridge((TQListView*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (KFileItem*) QtSupport::getQt(env, fi), (TQListViewItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

