//Auto-generated by kalyptus. DO NOT EDIT.
#include <kfiletreeview.h>
#include <qpoint.h>

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

class KFileTreeViewToolTipJBridge : public KFileTreeViewToolTip
{
public:
	KFileTreeViewToolTipJBridge(QListView* arg1) : KFileTreeViewToolTip(arg1) {};
	void protected_maybeTip(const QPoint& arg1) {
		KFileTreeViewToolTip::maybeTip(arg1);
		return;
	}
	~KFileTreeViewToolTipJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeViewToolTip_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileTreeViewToolTip_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeViewToolTip_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KFileTreeViewToolTip*)QtSupport::getQt(env, obj))->parentWidget() == 0) {
		delete (KFileTreeViewToolTip*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeViewToolTip_maybeTip(JNIEnv* env, jobject obj, jobject arg1)
{
	((KFileTreeViewToolTipJBridge*) QtSupport::getQt(env, obj))->protected_maybeTip((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeViewToolTip_newKFileTreeViewToolTip(JNIEnv* env, jobject obj, jobject view)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileTreeViewToolTipJBridge((QListView*) QtSupport::getQt(env, view)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

