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

#include <qtjava/QtSupport.h>
#include <qtjava/TQDropSite.h>

class TQDropSiteJBridge : public TQDropSite
{
public:
	TQDropSiteJBridge(TQWidget* arg1) : TQDropSite(arg1) {};
	~TQDropSiteJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDropSite_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDropSite_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDropSite_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQDropSite*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDropSite_newTQDropSite(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDropSiteJBridge((TQWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

