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

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

class QDropEventJBridge : public QDropEvent
{
public:
	QDropEventJBridge(const QPoint& arg1,QEvent::Type arg2) : QDropEvent(arg1,arg2) {};
	QDropEventJBridge(const QPoint& arg1) : QDropEvent(arg1) {};
	~QDropEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_acceptAction__(JNIEnv* env, jobject obj)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->acceptAction();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_acceptAction__Z(JNIEnv* env, jobject obj, jboolean y)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->acceptAction((bool) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_accept__(JNIEnv* env, jobject obj)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->accept();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_accept__Z(JNIEnv* env, jobject obj, jboolean y)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->accept((bool) y);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDropEvent_action(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDropEvent*) QtSupport::getQt(env, obj))->action();
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QDropEvent_data(JNIEnv* env, jobject obj, jstring f)
{
	QByteArray _qbyteArray;
static QCString* _qstring_f = 0;
	_qbyteArray = ((QDropEvent*) QtSupport::getQt(env, obj))->data((const char*) QtSupport::toCharString(env, f, &_qstring_f));
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDropEvent_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_ignore(JNIEnv* env, jobject obj)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->ignore();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDropEvent_isAccepted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDropEvent*) QtSupport::getQt(env, obj))->isAccepted();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDropEvent_isActionAccepted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDropEvent*) QtSupport::getQt(env, obj))->isActionAccepted();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_newQDropEvent__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject pos)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDropEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_newQDropEvent__Lorg_kde_qt_QPoint_2I(JNIEnv* env, jobject obj, jobject pos, jint typ)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDropEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (QEvent::Type) typ));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDropEvent_pos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QDropEvent*) QtSupport::getQt(env, obj))->pos(), "org.kde.qt.QPoint");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_setAction(JNIEnv* env, jobject obj, jint a)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->setAction((QDropEvent::Action) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDropEvent_setPoint(JNIEnv* env, jobject obj, jobject np)
{
	((QDropEvent*) QtSupport::getQt(env, obj))->setPoint((const QPoint&)*(const QPoint*) QtSupport::getQt(env, np));
	return;
}

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

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

