//Auto-generated by kalyptus. DO NOT EDIT.
#include <kprotocolmanager.h>
#include <kio/global.h>
#include <qstring.h>
#include <kurl.h>

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

class KProtocolManagerJBridge : public KProtocolManager
{
public:
	KProtocolManagerJBridge() : KProtocolManager() {};
	~KProtocolManagerJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_autoResume(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::autoResume();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProtocolManager_badProxy(JNIEnv* env, jclass cls, jstring proxy)
{
	(void) cls;
static QString* _qstring_proxy = 0;
	KProtocolManagerJBridge::badProxy((const QString&)*(QString*) QtSupport::toQString(env, proxy, &_qstring_proxy));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_cacheControl(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::cacheControl();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_cacheDir(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::cacheDir();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProtocolManager_config(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KProtocolManagerJBridge::config(), "org.kde.koala.KConfig");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_connectTimeout(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::connectTimeout();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_defaultUserAgent__(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::defaultUserAgent();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_defaultUserAgent__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring keys)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_keys = 0;
	_qstring = KProtocolManagerJBridge::defaultUserAgent((const QString&)*(QString*) QtSupport::toQString(env, keys, &_qstring_keys));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProtocolManager_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KProtocolManager_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProtocolManager_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KProtocolManager*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_markPartial(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::markPartial();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_maxCacheAge(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::maxCacheAge();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_maxCacheSize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::maxCacheSize();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_minimumKeepSize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::minimumKeepSize();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_noProxyFor(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::noProxyFor();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_persistentConnections(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::persistentConnections();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_persistentProxyConnection(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::persistentProxyConnection();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_proxyAuthMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::proxyAuthMode();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_proxyConfigScript(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::proxyConfigScript();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_proxyConnectTimeout(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::proxyConnectTimeout();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_proxyForURL(JNIEnv* env, jclass cls, jobject url)
{
	QString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::proxyForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_proxyFor(JNIEnv* env, jclass cls, jstring protocol)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_protocol = 0;
	_qstring = KProtocolManagerJBridge::proxyFor((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_proxyType(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::proxyType();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_readTimeout(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::readTimeout();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProtocolManager_reparseConfiguration(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KProtocolManagerJBridge::reparseConfiguration();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProtocolManager_responseTimeout(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KProtocolManagerJBridge::responseTimeout();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_slaveProtocol(JNIEnv* env, jclass cls, jobject url, jobject proxy)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_proxy = 0;
	_qstring = KProtocolManagerJBridge::slaveProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, proxy, &_qstring_proxy));
	QtSupport::fromQStringToStringBuffer(env, _qstring_proxy, proxy);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_useCache(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::useCache();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_useProxy(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::useProxy();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolManager_useReverseProxy(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KProtocolManagerJBridge::useReverseProxy();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProtocolManager_userAgentForHost(JNIEnv* env, jclass cls, jstring hostname)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_hostname = 0;
	_qstring = KProtocolManagerJBridge::userAgentForHost((const QString&)*(QString*) QtSupport::toQString(env, hostname, &_qstring_hostname));
	return QtSupport::fromQString(env, &_qstring);
}

