/***************************************************************************
                            QUrlOperator.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qurloperator.h>
#include <qstring.h>
#include <qcstring.h>

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

class QUrlOperatorJBridge : public QUrlOperator
{
public:
	QUrlOperatorJBridge() : QUrlOperator() {}
	QUrlOperatorJBridge(const QString& urL) : QUrlOperator(urL) {}
	QUrlOperatorJBridge(const QUrlOperator& url) : QUrlOperator(url) {}
	QUrlOperatorJBridge(const QUrlOperator& url, const QString& relUrl, bool checkSlash) : QUrlOperator(url, relUrl, checkSlash) {}
	~QUrlOperatorJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_reset() {
		QUrlOperator::reset();
		return;
	}
	bool  protected_parse(const QString& url) {
		return (bool ) QUrlOperator::parse(url);
	}
	 bool  protected_checkValid() {
		return ( bool ) QUrlOperator::checkValid();
	}
	void protected_clearEntries() {
		QUrlOperator::clearEntries();
		return;
	}
	void protected_getNetworkProtocol() {
		QUrlOperator::getNetworkProtocol();
		return;
	}
	void protected_deleteNetworkProtocol() {
		QUrlOperator::deleteNetworkProtocol();
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};


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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_newQUrlOperator__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 QUrlOperatorJBridge((QString&) * (QString *) QtSupport::toQString(env, urL, &_qstring_urL)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_newQUrlOperator__Lorg_kde_qt_QUrlOperator_2(JNIEnv *env, jobject obj, jobject url)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUrlOperatorJBridge((QUrlOperator&) *(QUrlOperator *) QtSupport::getQt(env, url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_newQUrlOperator__Lorg_kde_qt_QUrlOperator_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 QUrlOperatorJBridge((QUrlOperator&) *(QUrlOperator *) QtSupport::getQt(env, url), (QString&) * (QString *) QtSupport::toQString(env, relUrl, &_qstring_relUrl), (bool) checkSlash));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_newQUrlOperator__Lorg_kde_qt_QUrlOperator_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 QUrlOperatorJBridge((QUrlOperator&) *(QUrlOperator *) QtSupport::getQt(env, url), (QString&) * (QString *) QtSupport::toQString(env, relUrl, &_qstring_relUrl), FALSE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QUrlOperator*)QtSupport::getQt(env, obj))->parent() == (QObject *) 0) {
		delete (QUrlOperator*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_cdUp(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->cdUp();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_listChildren(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->listChildren(), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_mkdir(JNIEnv *env, jobject obj, jstring dirname)
{
static QString * _qstring_dirname = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->mkdir((QString&) * (QString *) QtSupport::toQString(env, dirname, &_qstring_dirname)), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_remove(JNIEnv *env, jobject obj, jstring filename)
{
static QString * _qstring_filename = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->remove((QString&) * (QString *) QtSupport::toQString(env, filename, &_qstring_filename)), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_rename(JNIEnv *env, jobject obj, jstring oldname, jstring newname)
{
static QString * _qstring_newname = 0;
static QString * _qstring_oldname = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->rename((QString&) * (QString *) QtSupport::toQString(env, oldname, &_qstring_oldname), (QString&) * (QString *) QtSupport::toQString(env, newname, &_qstring_newname)), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_get__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring location)
{
static QString * _qstring_location = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->get((QString&) * (QString *) QtSupport::toQString(env, location, &_qstring_location)), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_get__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->get(QString::null), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_put___3BLjava_lang_String_2(JNIEnv *env, jobject obj, jbyteArray data, jstring location)
{
static QString * _qstring_location = 0;
static QByteArray * _qbyteArray_data = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->put((QByteArray&) * (QByteArray *) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QString&) * (QString *) QtSupport::toQString(env, location, &_qstring_location)), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_put___3B(JNIEnv *env, jobject obj, jbyteArray data)
{
static QByteArray * _qbyteArray_data = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->put((QByteArray&) * (QByteArray *) QtSupport::toQByteArray(env, data, &_qbyteArray_data), QString::null), "org.kde.qt.QNetworkOperation");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_copy___3Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobjectArray files, jstring dest, jboolean move)
{
static QString * _qstring_dest = 0;
static QStringList * _qlist_files = 0;
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->copy((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), (QString&) * (QString *) QtSupport::toQString(env, dest, &_qstring_dest), (bool) move);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_copy___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray files, jstring dest)
{
static QString * _qstring_dest = 0;
static QStringList * _qlist_files = 0;
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->copy((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), (QString&) * (QString *) QtSupport::toQString(env, dest, &_qstring_dest), FALSE);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_isDir___3I(JNIEnv *env, jobject obj, jintArray ok)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->isDir( (bool*) QtSupport::toIntPtr(env, ok));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_isDir__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->isDir(0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_setNameFilter(JNIEnv *env, jobject obj, jstring nameFilter)
{
static QString * _qstring_nameFilter = 0;
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->setNameFilter((QString&) * (QString *) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUrlOperator_info(JNIEnv *env, jobject obj, jstring entry)
{
static QString * _qstring_entry = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QUrlInfo (((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->info((QString&) * (QString *) QtSupport::toQString(env, entry, &_qstring_entry))), "org.kde.qt.QUrlInfo", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_stop(JNIEnv *env, jobject obj)
{
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->stop();
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_checkValid(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->protected_checkValid();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_clearEntries(JNIEnv *env, jobject obj)
{
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->protected_clearEntries();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_getNetworkProtocol(JNIEnv *env, jobject obj)
{
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->protected_getNetworkProtocol();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_deleteNetworkProtocol(JNIEnv *env, jobject obj)
{
	((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->protected_deleteNetworkProtocol();
	return;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_hasUser(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->hasUser();
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_hasPassword(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->hasPassword();
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_hasHost(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->hasHost();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QUrlOperator_port(JNIEnv *env, jobject obj)
{
	return (jint) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->port();
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_hasPath(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->hasPath();
}

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_hasRef(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->hasRef();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_isValid(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->isValid();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_isLocalFile(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QUrlOperatorJBridge*) QtSupport::getQt(env, obj))->isLocalFile();
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_decode(JNIEnv *env, jclass obj, jstring url)
{
static QString * _qstring_url = 0;
	QUrlOperatorJBridge::decode((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUrlOperator_encode(JNIEnv *env, jclass obj, jstring url)
{
static QString * _qstring_url = 0;
	QUrlOperatorJBridge::encode((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QUrlOperator_isRelativeUrl(JNIEnv *env, jclass obj, jstring url)
{
static QString * _qstring_url = 0;
	return (jboolean) QUrlOperatorJBridge::isRelativeUrl((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url));
}
