//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdatastream.h>
#include <qstring.h>
#include <kprotocolinfo.h>
#include <qstringlist.h>
#include <kurl.h>

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

class KProtocolInfoJBridge : public KProtocolInfo
{
public:
	KProtocolInfoJBridge(const QString& arg1) : KProtocolInfo(arg1) {};
	KProtocolInfoJBridge(QDataStream& 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_kde_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_kde_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_kde_koala_KProtocolInfo_canDeleteRecursive__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canDeleteRecursive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_canDeleteRecursive__Lorg_kde_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_kde_koala_KProtocolInfo_canRenameFromFile__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canRenameFromFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_canRenameFromFile__Lorg_kde_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_kde_koala_KProtocolInfo_canRenameToFile__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfoJBridge*) QtSupport::getQt(env, obj))->protected_canRenameToFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_canRenameToFile__Lorg_kde_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_kde_koala_KProtocolInfo_capabilities(JNIEnv* env, jclass cls, jstring protocol)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_protocol = 0;
	_qlist = KProtocolInfoJBridge::capabilities((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KProtocolInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KProtocolInfo_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_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.kde.koala.KProtocolInfo");
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_isFilterProtocol__Lorg_kde_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_kde_koala_KProtocolInfo_isHelperProtocol__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static QString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isHelperProtocol((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_isHelperProtocol__Lorg_kde_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_kde_koala_KProtocolInfo_isKnownProtocol__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static QString* _qstring_protocol = 0;
	jboolean xret = (jboolean) KProtocolInfoJBridge::isKnownProtocol((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProtocolInfo_isKnownProtocol__Lorg_kde_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_kde_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_kde_koala_KProtocolInfo_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProtocolInfo*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

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

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

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_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_kde_koala_KProtocolInfo_protocolClass(JNIEnv* env, jclass cls, jstring protocol)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_protocol = 0;
	_qstring = KProtocolInfoJBridge::protocolClass((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProtocolInfo_protocols(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = KProtocolInfoJBridge::protocols();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_koala_KProtocolInfo_uriParseMode(JNIEnv* env, jclass cls, jstring protocol)
{
	(void) cls;
static QString* _qstring_protocol = 0;
	jint xret = (jint) KProtocolInfoJBridge::uriParseMode((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return xret;
}

