//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstrlist.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qdragobject.h>
#include <qcstring.h>

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

class QUriDragJBridge : public QUriDrag
{
public:
	QUriDragJBridge(QStrList arg1,QWidget* arg2,const char* arg3) : QUriDrag(arg1,arg2,arg3) {};
	QUriDragJBridge(QStrList arg1,QWidget* arg2) : QUriDrag(arg1,arg2) {};
	QUriDragJBridge(QStrList arg1) : QUriDrag(arg1) {};
	QUriDragJBridge(QWidget* arg1,const char* arg2) : QUriDrag(arg1,arg2) {};
	QUriDragJBridge(QWidget* arg1) : QUriDrag(arg1) {};
	QUriDragJBridge() : QUriDrag() {};
	~QUriDragJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QUriDrag",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUriDrag_canDecode(JNIEnv* env, jclass cls, jobject e)
{
	(void) cls;
	jboolean xret = (jboolean) QUriDragJBridge::canDecode((const QMimeSource*) QtSupport::mimeSource(env, e));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QUriDrag_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QUriDrag*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (QUriDrag*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUriDrag_localFileToUri(JNIEnv* env, jclass cls, jstring arg1)
{
	QCString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QUriDragJBridge::localFileToUri((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQCString(env, &_qstring);
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_newQUriDrag__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject dragSource, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((QWidget*) QtSupport::getQt(env, dragSource), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_newQUriDrag___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray uris)
{
static QStrList* _qlist_uris = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((QStrList)*(QStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_newQUriDrag___3Ljava_lang_String_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobjectArray uris, jobject dragSource)
{
static QStrList* _qlist_uris = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((QStrList)*(QStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris), (QWidget*) QtSupport::getQt(env, dragSource)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_newQUriDrag___3Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray uris, jobject dragSource, jstring name)
{
static QStrList* _qlist_uris = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((QStrList)*(QStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris), (QWidget*) QtSupport::getQt(env, dragSource), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_setFileNames(JNIEnv* env, jobject obj, jobjectArray fnames)
{
static QStringList* _qlist_fnames = 0;
	((QUriDrag*) QtSupport::getQt(env, obj))->setFileNames((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, fnames, &_qlist_fnames));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_setFilenames(JNIEnv* env, jobject obj, jobjectArray fnames)
{
static QStringList* _qlist_fnames = 0;
	((QUriDrag*) QtSupport::getQt(env, obj))->setFilenames((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, fnames, &_qlist_fnames));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_setUnicodeUris(JNIEnv* env, jobject obj, jobjectArray uuris)
{
static QStringList* _qlist_uuris = 0;
	((QUriDrag*) QtSupport::getQt(env, obj))->setUnicodeUris((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, uuris, &_qlist_uuris));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_setUris(JNIEnv* env, jobject obj, jobjectArray uris)
{
static QStrList* _qlist_uris = 0;
	((QUriDrag*) QtSupport::getQt(env, obj))->setUris((QStrList)*(QStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUriDrag_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 = QUriDragJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUriDrag_unicodeUriToUri(JNIEnv* env, jclass cls, jstring arg1)
{
	QCString  _qstring;
	(void) cls;
static QString* _qstring_arg1 = 0;
	_qstring = QUriDragJBridge::unicodeUriToUri((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQCString(env, &_qstring);
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUriDrag_decode(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static QStrList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new QStrList();
	}
	(void) cls;
	jboolean result = (jboolean) QUriDragJBridge::decode(QtSupport::mimeSource(env, e), *_qlist_i);
	QtSupport::arrayWithQStrList(env, _qlist_i, i);
	return result;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUriDrag_decodeToUnicodeUris(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static QStringList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new QStringList();
	}
	(void) cls;
	jboolean result = (jboolean) QUriDragJBridge::decodeToUnicodeUris(QtSupport::mimeSource(env, e), *_qlist_i);
	QtSupport::arrayWithQStringList(env, _qlist_i, i);
	return result;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUriDrag_decodeLocalFiles(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static QStringList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new QStringList();
	}
	(void) cls;
	jboolean result = (jboolean) QUriDragJBridge::decodeLocalFiles(QtSupport::mimeSource(env, e), *_qlist_i);
	QtSupport::arrayWithQStringList(env, _qlist_i, i);
	return result;
}
	
