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

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

class BrowserExtensionJBridge : public KParts::BrowserExtension
{
public:
	BrowserExtensionJBridge(KParts::ReadOnlyPart* arg1,const char* arg2) : KParts::BrowserExtension(arg1,arg2) {};
	BrowserExtensionJBridge(KParts::ReadOnlyPart* arg1) : KParts::BrowserExtension(arg1) {};
	void setURLArgs(const KParts::URLArgs& arg1) {
		if (!QtSupport::eventDelegate(this,"setURLArgs",(void*)&arg1,"org.trinitydesktop.koala.URLArgs")) {
			BrowserExtension::setURLArgs(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void restoreState(TQDataStream& arg1) {
		if (!QtSupport::eventDelegate(this,"restoreState",(void*)&arg1,"org.trinitydesktop.qt.TQDataStream")) {
			BrowserExtension::restoreState(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 saveState(TQDataStream& arg1) {
		if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.trinitydesktop.qt.TQDataStream")) {
			BrowserExtension::saveState(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.BrowserExtension",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_actionText(JNIEnv* env, jobject obj, jstring name)
{
	TQString  _qstring;
static TQCString* _qstring_name = 0;
	_qstring = ((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->actionText((const char*) QtSupport::toCharString(env, name, &_qstring_name));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_browserInterface(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->browserInterface(), "org.trinitydesktop.koala.BrowserInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_childObject(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)BrowserExtensionJBridge::childObject((TQObject*) QtSupport::getQt(env, arg1)), "org.trinitydesktop.koala.BrowserExtension");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_isActionEnabled(JNIEnv* env, jobject obj, jstring name)
{
static TQCString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->isActionEnabled((const char*) QtSupport::toCharString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_isURLDropHandlingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->isURLDropHandlingEnabled();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_newBrowserExtension__Lorg_trinitydesktop_koala_ReadOnlyPart_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new BrowserExtensionJBridge((KParts::ReadOnlyPart*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_newBrowserExtension__Lorg_trinitydesktop_koala_ReadOnlyPart_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new BrowserExtensionJBridge((KParts::ReadOnlyPart*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_pasteRequest(JNIEnv* env, jobject obj)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->pasteRequest();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_restoreState(JNIEnv* env, jobject obj, jobject stream)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->restoreState((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, stream));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_saveState(JNIEnv* env, jobject obj, jobject stream)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->saveState((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, stream));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_setBrowserInterface(JNIEnv* env, jobject obj, jobject impl)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->setBrowserInterface((KParts::BrowserInterface*) QtSupport::getQt(env, impl));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_setURLArgs(JNIEnv* env, jobject obj, jobject args)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->setURLArgs((const KParts::URLArgs&)*(const KParts::URLArgs*) QtSupport::getQt(env, args));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_setURLDropHandlingEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->setURLDropHandlingEnabled((bool) enable);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_urlArgs(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KParts::URLArgs(((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->urlArgs()), "org.trinitydesktop.koala.URLArgs", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_xOffset(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->xOffset();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_BrowserExtension_yOffset(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KParts::BrowserExtension*) QtSupport::getQt(env, obj))->yOffset();
	return xret;
}

