//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatastream.h>
#include <tqstring.h>
#include <kprotocolinfo.h>
#include <tqstringlist.h>
#include <kurl.h>

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

class KProtocolInfoJBridge : public KProtocolInfo
{
public:
	KProtocolInfoJBridge(const TQString& arg1) : KProtocolInfo(arg1) {};
	KProtocolInfoJBridge(TQDataStream& arg1,int arg2) : KProtocolInfo(arg1,arg2) {};
	bool protected_canRenameFromFile() {
		return (bool) KProtocolInfo::canRenameFromFile();
	}
	bool protected_canRenameToFile() {
		return (bool) KProtocolInfo::canRenameToFile();
	}
	bool protected_canDeleteRecursive() {
		return (bool) KProtocolInfo::canDeleteRecursive();
	}
	static KProtocolInfo* protected_findProtocol(const KURL& arg1) {
		return (KProtocolInfo*) KProtocolInfo::findProtocol(arg1);
	}
	~KProtocolInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canCopyFromFile(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::canCopyFromFile((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canCopyToFile(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::canCopyToFile((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canDeleteRecursive__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canDeleteRecursive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canDeleteRecursive__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::canDeleteRecursive((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canRenameFromFile__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canRenameFromFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canRenameFromFile__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::canRenameFromFile((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canRenameToFile__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canRenameToFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_canRenameToFile__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::canRenameToFile((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_capabilities(JNIEnv* env, jclass cls, jstring protocol)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_protocol = 0;
	_qlist = KProtocolInfoJBridge::capabilities((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_determineMimetypeFromExtension(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::determineMimetypeFromExtension((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KProtocolInfo_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_findProtocol(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KProtocolInfoJBridge::protected_findProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url)), "org.trinitydesktop.koala.KProtocolInfo");
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_inputType(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jint xret = (jint) KProtocolInfoJBridge::inputType((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isFilterProtocol__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isFilterProtocol((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isFilterProtocol__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isFilterProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isHelperProtocol__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isHelperProtocol((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isHelperProtocol__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isHelperProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isKnownProtocol__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isKnownProtocol((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isKnownProtocol__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isKnownProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isSourceProtocol(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isSourceProtocol((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfo*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_listing(JNIEnv* env, jclass cls, jobject url)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KProtocolInfoJBridge::listing((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_load(JNIEnv* env, jobject obj, jobject arg1)
{
	((KProtocolInfo*) QtSupport::getQt(env, obj))->load((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_maxSlaves(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jint xret = (jint) KProtocolInfoJBridge::maxSlaves((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KProtocolInfo*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_newKProtocolInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KProtocolInfoJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_newKProtocolInfo__Lorg_trinitydesktop_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KProtocolInfoJBridge((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_outputType(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jint xret = (jint) KProtocolInfoJBridge::outputType((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_protocols(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KProtocolInfoJBridge::protocols();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_save(JNIEnv* env, jobject obj, jobject arg1)
{
	((KProtocolInfo*) QtSupport::getQt(env, obj))->save((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_showFilePreview(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::showFilePreview((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsDeleting(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsDeleting((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsLinking(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsLinking((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsListing(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsListing((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsMakeDir(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsMakeDir((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsMoving(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsMoving((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsReading(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsReading((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_supportsWriting(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jboolean xret = (jboolean) KProtocolInfoJBridge::supportsWriting((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KProtocolInfo_uriParseMode(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jint xret = (jint) KProtocolInfoJBridge::uriParseMode((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return xret;
}

