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

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

class BrowserRunJBridge : public KParts::BrowserRun
{
public:
	BrowserRunJBridge(const KURL& arg1,const KParts::URLArgs& arg2,KParts::ReadOnlyPart* arg3,TQWidget* arg4,bool arg5,bool arg6) : KParts::BrowserRun(arg1,arg2,arg3,arg4,arg5,arg6) {};
	BrowserRunJBridge(const KURL& arg1,const KParts::URLArgs& arg2,KParts::ReadOnlyPart* arg3,TQWidget* 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(TDEIO::Job* arg1) {
		KParts::BrowserRun::handleError(arg1);
		return;
	}
	void protected_slotBrowserScanFinished(TDEIO::Job* arg1) {
		KParts::BrowserRun::slotBrowserScanFinished(arg1);
		return;
	}
	void protected_slotBrowserMimetype(TDEIO::Job* arg1,const TQString& arg2) {
		KParts::BrowserRun::slotBrowserMimetype(arg1,arg2);
		return;
	}
	void protected_slotCopyToTempFileResult(TDEIO::Job* arg1) {
		KParts::BrowserRun::slotCopyToTempFileResult(arg1);
		return;
	}
	void protected_slotStatResult(TDEIO::Job* arg1) {
		KParts::BrowserRun::slotStatResult(arg1);
		return;
	}
	void slotStatResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotStatResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			BrowserRun::slotStatResult(arg1);
		}
		return;
	}
	void scanFile() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.BrowserRun","scanFile")) {
			BrowserRun::scanFile();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void init() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.BrowserRun","init")) {
			BrowserRun::init();
		}
		return;
	}
	void killJob() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.BrowserRun","killJob")) {
			KRun::killJob();
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void handleError(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"handleError",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			BrowserRun::handleError(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.BrowserRun",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_BrowserRun_handleError(JNIEnv* env, jobject obj, jobject job)
{
	((BrowserRunJBridge*) QtSupport::getQt(env, obj))->protected_handleError((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserRun_newBrowserRun__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_URLArgs_2Lorg_trinitydesktop_koala_ReadOnlyPart_2Lorg_trinitydesktop_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), (TQWidget*) QtSupport::getQt(env, window), (bool) removeReferrer, (bool) trustedSource));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserRun_newBrowserRun__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_URLArgs_2Lorg_trinitydesktop_koala_ReadOnlyPart_2Lorg_trinitydesktop_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), (TQWidget*) QtSupport::getQt(env, window), (bool) removeReferrer, (bool) trustedSource, (bool) hideErrorDialog));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

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

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

