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

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

class KFileIconViewItemJBridge : public KFileIconViewItem
{
public:
	KFileIconViewItemJBridge(TQIconView* arg1,const TQString& arg2,const TQPixmap& arg3,KFileItem* arg4) : KFileIconViewItem(arg1,arg2,arg3,arg4) {};
	KFileIconViewItemJBridge(TQIconView* arg1,KFileItem* arg2) : KFileIconViewItem(arg1,arg2) {};
	~KFileIconViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileIconViewItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileIconViewItem_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileIconViewItem_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQIconViewItem*)(KFileIconViewItem*)QtSupport::getQt(env, obj))->iconView() == 0) {
		delete (KFileIconViewItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

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

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

