//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeprotocolmanager.h>
#include <tdeio/global.h>
#include <tqstring.h>
#include <kurl.h>

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_cacheDir(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::cacheDir();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_defaultUserAgent__(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::defaultUserAgent();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_defaultUserAgent__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring keys)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_keys = 0;
	_qstring = KProtocolManagerJBridge::defaultUserAgent((const TQString&)*(TQString*) QtSupport::toTQString(env, keys, &_qstring_keys));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KProtocolManager_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KProtocolManager_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KProtocolManager_noProxyFor(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::noProxyFor();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_proxyConfigScript(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KProtocolManagerJBridge::proxyConfigScript();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_proxyFor(JNIEnv* env, jclass cls, jstring protocol)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_protocol = 0;
	_qstring = KProtocolManagerJBridge::proxyFor((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_slaveProtocol(JNIEnv* env, jclass cls, jobject url, jobject proxy)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_proxy = 0;
	_qstring = KProtocolManagerJBridge::slaveProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, proxy, &_qstring_proxy));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_proxy, proxy);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolManager_userAgentForHost(JNIEnv* env, jclass cls, jstring hostname)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_hostname = 0;
	_qstring = KProtocolManagerJBridge::userAgentForHost((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname));
	return QtSupport::fromTQString(env, &_qstring);
}

