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

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

class TQIconDragItemJBridge : public TQIconDragItem
{
public:
	TQIconDragItemJBridge() : TQIconDragItem() {};
	~TQIconDragItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QIconDragItem_data(JNIEnv* env, jobject obj)
{
	TQByteArray _qbyteArray;
	_qbyteArray = ((TQIconDragItem*) QtSupport::getQt(env, obj))->data();
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QIconDragItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QIconDragItem_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QIconDragItem_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQIconDragItem*) QtSupport::getQt(env, obj))->operator==((const TQIconDragItem&)*(const TQIconDragItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QIconDragItem_setData(JNIEnv* env, jobject obj, jbyteArray d)
{
static TQByteArray* _qbyteArray_d = 0;
	((TQIconDragItem*) QtSupport::getQt(env, obj))->setData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, d, &_qbyteArray_d));
	return;
}

