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

#include <qtjava/QtSupport.h>
#include <qtjava/QUrl.h>

class QUrlJBridge : public QUrl
{
public:
	QUrlJBridge() : QUrl() {};
	QUrlJBridge(const QString& arg1) : QUrl(arg1) {};
	QUrlJBridge(const QUrl& arg1) : QUrl(arg1) {};
	QUrlJBridge(const QUrl& arg1,const QString& arg2,bool arg3) : QUrl(arg1,arg2,arg3) {};
	QUrlJBridge(const QUrl& arg1,const QString& arg2) : QUrl(arg1,arg2) {};
	void protected_reset() {
		QUrl::reset();
		return;
	}
	bool protected_parse(const QString& arg1) {
		return (bool) QUrl::parse(arg1);
	}
	~QUrlJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_addPath(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((QUrl*) QtSupport::getQt(env, obj))->addPath((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_cdUp(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->cdUp();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_decode(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
static QString* _qstring_url = 0;
	QUrlJBridge::decode((QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, url, &_qstring_url));
	QtSupport::fromQStringToStringBuffer(env, _qstring_url, url);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QUrl_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_encode(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
static QString* _qstring_url = 0;
	QUrlJBridge::encode((QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, url, &_qstring_url));
	QtSupport::fromQStringToStringBuffer(env, _qstring_url, url);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasHost(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasHost();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasPassword(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasPassword();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasPath(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasPath();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasPort(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasPort();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasRef(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasRef();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_hasUser(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->hasUser();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_isLocalFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->isLocalFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_isRelativeUrl(JNIEnv* env, jclass cls, jstring url)
{
	(void) cls;
static QString* _qstring_url = 0;
	jboolean xret = (jboolean) QUrlJBridge::isRelativeUrl((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_newQUrl__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static QString* _qstring_url = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUrlJBridge((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_newQUrl__Lorg_kde_qt_QUrlInterface_2(JNIEnv* env, jobject obj, jobject url)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUrlJBridge((const QUrl&)*(const QUrl*) QtSupport::getQt(env, url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_newQUrl__Lorg_kde_qt_QUrlInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject url, jstring relUrl)
{
static QString* _qstring_relUrl = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUrlJBridge((const QUrl&)*(const QUrl*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, relUrl, &_qstring_relUrl)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_newQUrl__Lorg_kde_qt_QUrlInterface_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject url, jstring relUrl, jboolean checkSlash)
{
static QString* _qstring_relUrl = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUrlJBridge((const QUrl&)*(const QUrl*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, relUrl, &_qstring_relUrl), (bool) checkSlash));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_op_1equals__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static QString* _qstring_url = 0;
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->operator==((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_op_1equals__Lorg_kde_qt_QUrlInterface_2(JNIEnv* env, jobject obj, jobject url)
{
	jboolean xret = (jboolean) ((QUrl*) QtSupport::getQt(env, obj))->operator==((const QUrl&)*(const QUrl*) QtSupport::getQt(env, url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrl_parse(JNIEnv* env, jobject obj, jstring url)
{
static QString* _qstring_url = 0;
	jboolean xret = (jboolean) ((QUrlJBridge*) QtSupport::getQt(env, obj))->protected_parse((const QString&)*(QString*) QtSupport::toQString(env, url, &_qstring_url));
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUrl_path__Z(JNIEnv* env, jobject obj, jboolean correct)
{
	QString  _qstring;
	_qstring = ((QUrl*) QtSupport::getQt(env, obj))->path((bool) correct);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QUrl_port(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QUrl*) QtSupport::getQt(env, obj))->port();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_reset(JNIEnv* env, jobject obj)
{
	((QUrlJBridge*) QtSupport::getQt(env, obj))->protected_reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setEncodedPathAndQuery(JNIEnv* env, jobject obj, jstring enc)
{
static QString* _qstring_enc = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setEncodedPathAndQuery((const QString&)*(QString*) QtSupport::toQString(env, enc, &_qstring_enc));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setFileName(JNIEnv* env, jobject obj, jstring txt)
{
static QString* _qstring_txt = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setFileName((const QString&)*(QString*) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setHost(JNIEnv* env, jobject obj, jstring user)
{
static QString* _qstring_user = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setHost((const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setPassword(JNIEnv* env, jobject obj, jstring pass)
{
static QString* _qstring_pass = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setPassword((const QString&)*(QString*) QtSupport::toQString(env, pass, &_qstring_pass));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setPath(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setPath((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setPort(JNIEnv* env, jobject obj, jint port)
{
	((QUrl*) QtSupport::getQt(env, obj))->setPort((int) port);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setProtocol(JNIEnv* env, jobject obj, jstring protocol)
{
static QString* _qstring_protocol = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setProtocol((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setQuery(JNIEnv* env, jobject obj, jstring txt)
{
static QString* _qstring_txt = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setQuery((const QString&)*(QString*) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setRef(JNIEnv* env, jobject obj, jstring txt)
{
static QString* _qstring_txt = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setRef((const QString&)*(QString*) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrl_setUser(JNIEnv* env, jobject obj, jstring user)
{
static QString* _qstring_user = 0;
	((QUrl*) QtSupport::getQt(env, obj))->setUser((const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUrl_toString__Z(JNIEnv* env, jobject obj, jboolean encodedPath)
{
	QString  _qstring;
	_qstring = ((QUrl*) QtSupport::getQt(env, obj))->toString((bool) encodedPath);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QUrl_toString__ZZ(JNIEnv* env, jobject obj, jboolean encodedPath, jboolean forcePrependProtocol)
{
	QString  _qstring;
	_qstring = ((QUrl*) QtSupport::getQt(env, obj))->toString((bool) encodedPath, (bool) forcePrependProtocol);
	return QtSupport::fromQString(env, &_qstring);
}

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

