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

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

class TQDropEventJBridge : public TQDropEvent
{
public:
	TQDropEventJBridge(const TQPoint& arg1,TQEvent::Type arg2) : TQDropEvent(arg1,arg2) {};
	TQDropEventJBridge(const TQPoint& arg1) : TQDropEvent(arg1) {};
	~TQDropEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

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

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

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QDropEvent_data(JNIEnv* env, jobject obj, jstring f)
{
	TQByteArray _qbyteArray;
static TQCString* _qstring_f = 0;
	_qbyteArray = ((TQDropEvent*) QtSupport::getQt(env, obj))->data((const char*) QtSupport::toCharString(env, f, &_qstring_f));
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDropEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDropEvent_finalize(env, obj);
	return;
}

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QDropEvent_encodedData(JNIEnv* env, jobject obj, jstring arg1)
{
	TQByteArray _qbyteArray;
static TQCString* _qstring_arg1 = 0;
	_qbyteArray = ((TQDropEvent*) QtSupport::getQt(env, obj))->encodedData((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDropEvent_newTQDropEvent__Lorg_trinitydesktop_qt_QPoint_2I(JNIEnv* env, jobject obj, jobject pos, jint typ)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDropEventJBridge((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (TQEvent::Type) typ));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDropEvent_pos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQPoint *) &((TQDropEvent*) QtSupport::getQt(env, obj))->pos(), "org.trinitydesktop.qt.TQPoint");
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDropEvent_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMimeSource*)(TQDropEvent*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDropEvent_source(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQDropEvent*) QtSupport::getQt(env, obj))->source(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QDropEvent_mimeSource(JNIEnv* env, jobject obj)
{
	return (jlong) (TQMimeSource*) (TQDropEvent*) QtSupport::getQt(env, obj);
}

