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

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

class KFileTreeViewItemJBridge : public KFileTreeViewItem
{
public:
	KFileTreeViewItemJBridge(KFileTreeViewItem* arg1,KFileItem* arg2,KFileTreeBranch* arg3) : KFileTreeViewItem(arg1,arg2,arg3) {};
	KFileTreeViewItemJBridge(KFileTreeView* arg1,KFileItem* arg2,KFileTreeBranch* arg3) : KFileTreeViewItem(arg1,arg2,arg3) {};
	~KFileTreeViewItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_alreadyListed(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileTreeViewItem*) QtSupport::getQt(env, obj))->alreadyListed();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_branch(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileTreeViewItem*) QtSupport::getQt(env, obj))->branch(), "org.trinitydesktop.koala.KFileTreeBranch");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileTreeViewItem_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_isDir(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileTreeViewItem*) QtSupport::getQt(env, obj))->isDir();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_newKFileTreeViewItem__Lorg_trinitydesktop_koala_KFileTreeViewItem_2Lorg_trinitydesktop_koala_KFileItem_2Lorg_trinitydesktop_koala_KFileTreeBranch_2(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileTreeViewItemJBridge((KFileTreeViewItem*) QtSupport::getQt(env, arg1), (KFileItem*) QtSupport::getQt(env, arg2), (KFileTreeBranch*) QtSupport::getQt(env, arg3)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_newKFileTreeViewItem__Lorg_trinitydesktop_koala_KFileTreeView_2Lorg_trinitydesktop_koala_KFileItem_2Lorg_trinitydesktop_koala_KFileTreeBranch_2(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileTreeViewItemJBridge((KFileTreeView*) QtSupport::getQt(env, arg1), (KFileItem*) QtSupport::getQt(env, arg2), (KFileTreeBranch*) QtSupport::getQt(env, arg3)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_path(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KFileTreeViewItem*) QtSupport::getQt(env, obj))->path();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_setListed(JNIEnv* env, jobject obj, jboolean wasListed)
{
	((KFileTreeViewItem*) QtSupport::getQt(env, obj))->setListed((bool) wasListed);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileTreeViewItem_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KFileTreeViewItem*) QtSupport::getQt(env, obj))->url()), "org.trinitydesktop.koala.KURL", TRUE);
	return xret;
}

