//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstrlist.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqdragobject.h>
#include <tqcstring.h>

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

class QUriDragJBridge : public QUriDrag
{
public:
	QUriDragJBridge(TQStrList arg1,TQWidget* arg2,const char* arg3) : TQUriDrag(arg1,arg2,arg3) {};
	QUriDragJBridge(TQStrList arg1,TQWidget* arg2) : TQUriDrag(arg1,arg2) {};
	QUriDragJBridge(TQStrList arg1) : TQUriDrag(arg1) {};
	QUriDragJBridge(TQWidget* arg1,const char* arg2) : TQUriDrag(arg1,arg2) {};
	QUriDragJBridge(TQWidget* arg1) : TQUriDrag(arg1) {};
	QUriDragJBridge() : TQUriDrag() {};
	~QUriDragJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.TQUriDrag",object,event)) {
			return TQObject::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 TQMimeSource*) QtSupport::mimeSource(env, e));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUriDrag_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQUriDrag*) 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) && ((TQUriDrag*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (TQUriDrag*)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)
{
	TQCString  _qstring;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qstring = QUriDragJBridge::localFileToUri((const TQString&)*(TQString*) 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*)((TQUriDrag*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
	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((TQWidget*) 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 TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((TQWidget*) 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 TQStrList* _qlist_uris = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((TQStrList)*(TQStrList*) 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 TQStrList* _qlist_uris = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((TQStrList)*(TQStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris), (TQWidget*) 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 TQStrList* _qlist_uris = 0;
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUriDragJBridge((TQStrList)*(TQStrList*) QtSupport::toQStrList(env, uris, &_qlist_uris), (TQWidget*) 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 TQStringList* _qlist_fnames = 0;
	((TQUriDrag*) QtSupport::getQt(env, obj))->setFileNames((const TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, fnames, &_qlist_fnames));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUriDrag_setUris(JNIEnv* env, jobject obj, jobjectArray uris)
{
static TQStrList* _qlist_uris = 0;
	((TQUriDrag*) QtSupport::getQt(env, obj))->setUris((TQStrList)*(TQStrList*) 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)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _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)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _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)
{
	TQCString  _qstring;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qstring = QUriDragJBridge::unicodeUriToUri((const TQString&)*(TQString*) 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)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _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)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _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 TQStrList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new TQStrList();
	}
	(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 TQStringList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new TQStringList();
	}
	(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 TQStringList * _qlist_i = 0;
	if (_qlist_i == 0) {
		_qlist_i = new TQStringList();
	}
	(void) cls;
	jboolean result = (jboolean) QUriDragJBridge::decodeLocalFiles(QtSupport::mimeSource(env, e), *_qlist_i);
	QtSupport::arrayWithQStringList(env, _qlist_i, i);
	return result;
}
	
