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

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

class KFileIconViewItemJBridge : public KFileIconViewItem
{
public:
	KFileIconViewItemJBridge(QIconView* arg1,const QString& arg2,const QPixmap& arg3,KFileItem* arg4) : KFileIconViewItem(arg1,arg2,arg3,arg4) {};
	KFileIconViewItemJBridge(QIconView* arg1,KFileItem* arg2) : KFileIconViewItem(arg1,arg2) {};
	~KFileIconViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileIconViewItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileIconViewItem_finalize(env, obj);
	return;
}

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

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

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

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

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

