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

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

class URLArgsJBridge : public KParts::URLArgs
{
public:
	URLArgsJBridge() : KParts::URLArgs() {};
	URLArgsJBridge(const KParts::URLArgs& arg1) : KParts::URLArgs(arg1) {};
	URLArgsJBridge(bool arg1,int arg2,int arg3,const TQString& arg4) : KParts::URLArgs(arg1,arg2,arg3,arg4) {};
	URLArgsJBridge(bool arg1,int arg2,int arg3) : KParts::URLArgs(arg1,arg2,arg3) {};
};

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_URLArgs_doPost(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::URLArgs*) QtSupport::getQt(env, obj))->doPost();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_URLArgs_forcesNewWindow(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::URLArgs*) QtSupport::getQt(env, obj))->forcesNewWindow();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_URLArgs_lockHistory(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::URLArgs*) QtSupport::getQt(env, obj))->lockHistory();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_URLArgs_newTab(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::URLArgs*) QtSupport::getQt(env, obj))->newTab();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_newURLArgs__Lorg_trinitydesktop_koala_URLArgs_2(JNIEnv* env, jobject obj, jobject args)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new URLArgsJBridge((const KParts::URLArgs&)*(const KParts::URLArgs*) QtSupport::getQt(env, args)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_newURLArgs__ZII(JNIEnv* env, jobject obj, jboolean reload, jint xOffset, jint yOffset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new URLArgsJBridge((bool) reload, (int) xOffset, (int) yOffset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_newURLArgs__ZIILjava_lang_String_2(JNIEnv* env, jobject obj, jboolean reload, jint xOffset, jint yOffset, jstring serviceType)
{
static TQString* _qstring_serviceType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new URLArgsJBridge((bool) reload, (int) xOffset, (int) yOffset, (const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_URLArgs_redirectedRequest(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::URLArgs*) QtSupport::getQt(env, obj))->redirectedRequest();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_setContentType(JNIEnv* env, jobject obj, jstring contentType)
{
static TQString* _qstring_contentType = 0;
	((KParts::URLArgs*) QtSupport::getQt(env, obj))->setContentType((const TQString&)*(TQString*) QtSupport::toTQString(env, contentType, &_qstring_contentType));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_setForcesNewWindow(JNIEnv* env, jobject obj, jboolean forcesNewWindow)
{
	((KParts::URLArgs*) QtSupport::getQt(env, obj))->setForcesNewWindow((bool) forcesNewWindow);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_setLockHistory(JNIEnv* env, jobject obj, jboolean lock)
{
	((KParts::URLArgs*) QtSupport::getQt(env, obj))->setLockHistory((bool) lock);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_setNewTab(JNIEnv* env, jobject obj, jboolean newTab)
{
	((KParts::URLArgs*) QtSupport::getQt(env, obj))->setNewTab((bool) newTab);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_URLArgs_setRedirectedRequest(JNIEnv* env, jobject obj, jboolean redirected)
{
	((KParts::URLArgs*) QtSupport::getQt(env, obj))->setRedirectedRequest((bool) redirected);
	return;
}

