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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KURIFilter.h>

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KURIFilter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KURIFilter_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KURIFilter_filterURI__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject uri)
{
static QString* _qstring_uri = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, uri, &_qstring_uri));
	QtSupport::fromQStringToStringBuffer(env, _qstring_uri, uri);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KURIFilter_filterURI__Ljava_lang_StringBuffer_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static QString* _qstring_uri = 0;
static QStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, uri, &_qstring_uri), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	QtSupport::fromQStringToStringBuffer(env, _qstring_uri, uri);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KURIFilter_filterURI__Lorg_kde_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_kde_koala_KURIFilter_filterURI__Lorg_kde_koala_KURIFilterData_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject data, jobjectArray filters)
{
static QStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURIFilterData&)*(KURIFilterData*) QtSupport::getQt(env, data), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KURIFilter_filterURI__Lorg_kde_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_kde_koala_KURIFilter_filterURI__Lorg_kde_koala_KURL_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static QStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KURIFilter*) QtSupport::getQt(env, obj))->filterURI((KURL&)*(KURL*) QtSupport::getQt(env, uri), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KURIFilter_filteredURI__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri)
{
	QString  _qstring;
static QString* _qstring_uri = 0;
	_qstring = ((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const QString&)*(QString*) QtSupport::toQString(env, uri, &_qstring_uri));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KURIFilter_filteredURI__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri, jobjectArray filters)
{
	QString  _qstring;
static QString* _qstring_uri = 0;
static QStringList* _qlist_filters = 0;
	_qstring = ((KURIFilter*) QtSupport::getQt(env, obj))->filteredURI((const QString&)*(QString*) QtSupport::toQString(env, uri, &_qstring_uri), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURIFilter_filteredURI__Lorg_kde_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.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURIFilter_filteredURI__Lorg_kde_koala_KURL_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject uri, jobjectArray filters)
{
static QStringList* _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 QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters))), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KURIFilter_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KURIFilter_pluginNames(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KURIFilter*) QtSupport::getQt(env, obj))->pluginNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

