//Auto-generated by kalyptus. DO NOT EDIT.
#include <qpixmap.h>
#include <qstring.h>
#include <qpoint.h>
#include <qdragobject.h>
#include <qcstring.h>
#include <qmime.h>

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDragObject_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QDragObject*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDragObject_dragCopy(JNIEnv* env, jobject obj)
{
	((QDragObject*) QtSupport::getQt(env, obj))->dragCopy();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDragObject_dragLink(JNIEnv* env, jobject obj)
{
	((QDragObject*) QtSupport::getQt(env, obj))->dragLink();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDragObject_dragMove(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDragObject*) QtSupport::getQt(env, obj))->dragMove();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDragObject_drag(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDragObject*) QtSupport::getQt(env, obj))->drag();
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QDragObject_encodedData(JNIEnv* env, jobject obj, jstring arg1)
{
	QByteArray _qbyteArray;
static QCString* _qstring_arg1 = 0;
	_qbyteArray = ((QMimeSource*)(QDragObject*) QtSupport::getQt(env, obj))->encodedData((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDragObject_format__(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QMimeSource*)(QDragObject*) QtSupport::getQt(env, obj))->format();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDragObject_format__I(JNIEnv* env, jobject obj, jint n)
{
	const char* _qstring;
	_qstring = ((QMimeSource*)(QDragObject*) QtSupport::getQt(env, obj))->format((int) n);
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDragObject_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QDragObject*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDragObject_pixmapHotSpot(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QDragObject*) QtSupport::getQt(env, obj))->pixmapHotSpot()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDragObject_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((QDragObject*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDragObject_provides(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QMimeSource*)(QDragObject*) QtSupport::getQt(env, obj))->provides((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDragObject_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QMimeSource*)(QDragObject*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDragObject_setPixmap__Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QDragObject*) QtSupport::getQt(env, obj))->setPixmap((QPixmap)*(QPixmap*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDragObject_setPixmap__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1, jobject hotspot)
{
	((QDragObject*) QtSupport::getQt(env, obj))->setPixmap((QPixmap)*(QPixmap*) QtSupport::getQt(env, arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, hotspot));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDragObject_setTarget(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QDragObject::setTarget((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDragObject_source(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QDragObject*) QtSupport::getQt(env, obj))->source(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDragObject_target(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QDragObject::target(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDragObject_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QDragObject::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDragObject_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QDragObject::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QDragObject_mimeSource(JNIEnv* env, jobject obj)
{
	return (jlong) (QMimeSource*) (QDragObject*) QtSupport::getQt(env, obj);
}

