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

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

class QIconDragItemJBridge : public QIconDragItem
{
public:
	QIconDragItemJBridge() : QIconDragItem() {};
	~QIconDragItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QIconDragItem_data(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((QIconDragItem*) QtSupport::getQt(env, obj))->data();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconDragItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QIconDragItem_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconDragItem_setData(JNIEnv* env, jobject obj, jbyteArray d)
{
static QByteArray* _qbyteArray_d = 0;
	((QIconDragItem*) QtSupport::getQt(env, obj))->setData((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, d, &_qbyteArray_d));
	return;
}

