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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/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 QString& arg4) : KParts::URLArgs(arg1,arg2,arg3,arg4) {};
	URLArgsJBridge(bool arg1,int arg2,int arg3) : KParts::URLArgs(arg1,arg2,arg3) {};
};

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_URLArgs_newURLArgs__Lorg_kde_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_kde_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_kde_koala_URLArgs_newURLArgs__ZIILjava_lang_String_2(JNIEnv* env, jobject obj, jboolean reload, jint xOffset, jint yOffset, jstring serviceType)
{
static QString* _qstring_serviceType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new URLArgsJBridge((bool) reload, (int) xOffset, (int) yOffset, (const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

