//Auto-generated by kalyptus. DO NOT EDIT.
#include <kurifilter.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <kurl.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KURIFilter.h>

class KURIFilterJBridge : public KURIFilter
{
public:
	KURIFilterJBridge() : KURIFilter() {};
	void protected_loadPlugins() {
		KURIFilter::loadPlugins();
		return;
	}
	~KURIFilterJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURIFilter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KURIFilter_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject uri)
{
static TQString* _qstring_uri = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, uri, &_qstring_uri));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_uri, uri);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Ljava_lang_StringBuffer_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static TQString* _qstring_uri = 0;
static TQStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, uri, &_qstring_uri), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_uri, uri);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Lorg_trinitydesktop_koala_KURIFilterData_2(JNIEnv* env, jobject obj, jobject data)
{
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURIFilterData&)*(KURIFilterData*) QtSupport::getQt(env, data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Lorg_trinitydesktop_koala_KURIFilterData_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject data, jobjectArray filters)
{
static TQStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURIFilterData&)*(KURIFilterData*) QtSupport::getQt(env, data), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jobject obj, jobject uri)
{
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURL&)*(KURL*) QtSupport::getQt(env, uri));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filterURI__Lorg_trinitydesktop_koala_KURL_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static TQStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURL&)*(KURL*) QtSupport::getQt(env, uri), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filteredURI__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri)
{
	TQString  _qstring;
static TQString* _qstring_uri = 0;
	_qstring = ((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filteredURI__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri, jobjectArray filters)
{
	TQString  _qstring;
static TQString* _qstring_uri = 0;
static TQStringList* _qlist_filters = 0;
	_qstring = ((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filteredURI__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jobject obj, jobject uri)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const KURL&)*(const KURL*) QtSupport::getQt(env, uri))), "org.trinitydesktop.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURIFilter_filteredURI__Lorg_trinitydesktop_koala_KURL_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static TQStringList* _qlist_filters = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const KURL&)*(const KURL*) QtSupport::getQt(env, uri), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters))), "org.trinitydesktop.koala.KURL", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURIFilter_loadPlugins(JNIEnv* env, jobject obj)
{
	((KURIFilterJBridge*) QtSupport::getQt(env, obj))->protected_loadPlugins();
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURIFilter_pluginNames(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KURIFilter*) QtSupport::getQt(env, obj))->pluginNames();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURIFilter_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KURIFilterJBridge::self(), "org.trinitydesktop.koala.KURIFilter");
	return xret;
}

