//Auto-generated by kalyptus. DO NOT EDIT.
#include <kservice.h>
#include <kparts/browserrun.h>
#include <kparts/browserextension.h>
#include <qstring.h>
#include <kurl.h>

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

class BrowserRunJBridge : public KParts::BrowserRun
{
public:
	BrowserRunJBridge(const KURL& arg1,const KParts::URLArgs& arg2,KParts::ReadOnlyPart* arg3,QWidget* arg4,bool arg5,bool arg6) : KParts::BrowserRun(arg1,arg2,arg3,arg4,arg5,arg6) {};
	BrowserRunJBridge(const KURL& arg1,const KParts::URLArgs& arg2,KParts::ReadOnlyPart* arg3,QWidget* arg4,bool arg5,bool arg6,bool arg7) : KParts::BrowserRun(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	void protected_scanFile() {
		KParts::BrowserRun::scanFile();
		return;
	}
	void protected_init() {
		KParts::BrowserRun::init();
		return;
	}
	void protected_handleError(KIO::Job* arg1) {
		KParts::BrowserRun::handleError(arg1);
		return;
	}
	void protected_slotBrowserScanFinished(KIO::Job* arg1) {
		KParts::BrowserRun::slotBrowserScanFinished(arg1);
		return;
	}
	void protected_slotBrowserMimetype(KIO::Job* arg1,const QString& arg2) {
		KParts::BrowserRun::slotBrowserMimetype(arg1,arg2);
		return;
	}
	void protected_slotCopyToTempFileResult(KIO::Job* arg1) {
		KParts::BrowserRun::slotCopyToTempFileResult(arg1);
		return;
	}
	void protected_slotStatResult(KIO::Job* arg1) {
		KParts::BrowserRun::slotStatResult(arg1);
		return;
	}
	void slotStatResult(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotStatResult",(void*)arg1,"org.kde.koala.Job")) {
			BrowserRun::slotStatResult(arg1);
		}
		return;
	}
	void scanFile() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.BrowserRun","scanFile")) {
			BrowserRun::scanFile();
		}
		return;
	}
	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 init() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.BrowserRun","init")) {
			BrowserRun::init();
		}
		return;
	}
	void killJob() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.BrowserRun","killJob")) {
			KRun::killJob();
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void handleError(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"handleError",(void*)arg1,"org.kde.koala.Job")) {
			BrowserRun::handleError(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.BrowserRun",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_BrowserRun_allowExecution(JNIEnv* env, jclass cls, jstring serviceType, jobject url)
{
	(void) cls;
static QString* _qstring_serviceType = 0;
	jboolean xret = (jboolean) BrowserRunJBridge::allowExecution((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_handleError(JNIEnv* env, jobject obj, jobject job)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_handleError((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_BrowserRun_hideErrorDialog(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::BrowserRun*) QtSupport::getQt(env, obj))->hideErrorDialog();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_init(JNIEnv* env, jobject obj)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_init();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_BrowserRun_isExecutable(JNIEnv* env, jclass cls, jstring serviceType)
{
	(void) cls;
static QString* _qstring_serviceType = 0;
	jboolean xret = (jboolean) BrowserRunJBridge::isExecutable((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_BrowserRun_isTextExecutable(JNIEnv* env, jclass cls, jstring serviceType)
{
	(void) cls;
static QString* _qstring_serviceType = 0;
	jboolean xret = (jboolean) BrowserRunJBridge::isTextExecutable((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_newBrowserRun__Lorg_kde_koala_KURL_2Lorg_kde_koala_URLArgs_2Lorg_kde_koala_ReadOnlyPart_2Lorg_kde_qt_QWidget_2ZZ(JNIEnv* env, jobject obj, jobject url, jobject args, jobject part, jobject window, jboolean removeReferrer, jboolean trustedSource)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new BrowserRunJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const KParts::URLArgs&)*(const KParts::URLArgs*) QtSupport::getQt(env, args), (KParts::ReadOnlyPart*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, window), (bool) removeReferrer, (bool) trustedSource));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_newBrowserRun__Lorg_kde_koala_KURL_2Lorg_kde_koala_URLArgs_2Lorg_kde_koala_ReadOnlyPart_2Lorg_kde_qt_QWidget_2ZZZ(JNIEnv* env, jobject obj, jobject url, jobject args, jobject part, jobject window, jboolean removeReferrer, jboolean trustedSource, jboolean hideErrorDialog)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new BrowserRunJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const KParts::URLArgs&)*(const KParts::URLArgs*) QtSupport::getQt(env, args), (KParts::ReadOnlyPart*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, window), (bool) removeReferrer, (bool) trustedSource, (bool) hideErrorDialog));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_save(JNIEnv* env, jobject obj, jobject url, jstring suggestedFilename)
{
static QString* _qstring_suggestedFilename = 0;
	((KParts::BrowserRun*) QtSupport::getQt(env, obj))->save((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, suggestedFilename, &_qstring_suggestedFilename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_scanFile(JNIEnv* env, jobject obj)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_scanFile();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_simpleSave__Lorg_kde_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject url, jstring suggestedFilename)
{
	(void) cls;
static QString* _qstring_suggestedFilename = 0;
	BrowserRunJBridge::simpleSave((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, suggestedFilename, &_qstring_suggestedFilename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_simpleSave__Lorg_kde_koala_KURL_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject url, jstring suggestedFilename, jobject window)
{
	(void) cls;
static QString* _qstring_suggestedFilename = 0;
	BrowserRunJBridge::simpleSave((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, suggestedFilename, &_qstring_suggestedFilename), (QWidget*) QtSupport::getQt(env, window));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_slotBrowserMimetype(JNIEnv* env, jobject obj, jobject job, jstring type)
{
static QString* _qstring_type = 0;
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_slotBrowserMimetype((KIO::Job*) QtSupport::getQt(env, job), (const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_slotBrowserScanFinished(JNIEnv* env, jobject obj, jobject job)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_slotBrowserScanFinished((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_slotCopyToTempFileResult(JNIEnv* env, jobject obj, jobject job)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_slotCopyToTempFileResult((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_BrowserRun_slotStatResult(JNIEnv* env, jobject obj, jobject job)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_slotStatResult((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_BrowserRun_suggestedFilename(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KParts::BrowserRun*) QtSupport::getQt(env, obj))->suggestedFilename();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_BrowserRun_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KParts::BrowserRun*) QtSupport::getQt(env, obj))->url()), "org.kde.koala.KURL", TRUE);
	return xret;
}

