//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqurl.h>
#include <tqstring.h>

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_addPath(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->addPath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_decode(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
static TQString* _qstring_url = 0;
	TQUrlJBridge::decode((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, url, &_qstring_url));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_url, url);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QUrl_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_encode(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
static TQString* _qstring_url = 0;
	TQUrlJBridge::encode((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, url, &_qstring_url));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_url, url);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrl_isRelativeUrl(JNIEnv* env, jclass cls, jstring url)
{
	(void) cls;
static TQString* _qstring_url = 0;
	jboolean xret = (jboolean) TQUrlJBridge::isRelativeUrl((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_newTQUrl__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static TQString* _qstring_url = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_newTQUrl__Lorg_trinitydesktop_qt_QUrlInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject url, jstring relUrl)
{
static TQString* _qstring_relUrl = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlJBridge((const TQUrl&)*(const TQUrl*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, relUrl, &_qstring_relUrl)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_newTQUrl__Lorg_trinitydesktop_qt_QUrlInterface_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject url, jstring relUrl, jboolean checkSlash)
{
static TQString* _qstring_relUrl = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlJBridge((const TQUrl&)*(const TQUrl*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, relUrl, &_qstring_relUrl), (bool) checkSlash));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrl_op_1equals__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static TQString* _qstring_url = 0;
	jboolean xret = (jboolean) ((TQUrl*) QtSupport::getQt(env, obj))->operator==((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrl_parse(JNIEnv* env, jobject obj, jstring url)
{
static TQString* _qstring_url = 0;
	jboolean xret = (jboolean) ((TQUrlJBridge*) QtSupport::getQt(env, obj))->protected_parse((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url));
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUrl_path__Z(JNIEnv* env, jobject obj, jboolean correct)
{
	TQString  _qstring;
	_qstring = ((TQUrl*) QtSupport::getQt(env, obj))->path((bool) correct);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setEncodedPathAndQuery(JNIEnv* env, jobject obj, jstring enc)
{
static TQString* _qstring_enc = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setEncodedPathAndQuery((const TQString&)*(TQString*) QtSupport::toTQString(env, enc, &_qstring_enc));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setFileName(JNIEnv* env, jobject obj, jstring txt)
{
static TQString* _qstring_txt = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setFileName((const TQString&)*(TQString*) QtSupport::toTQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setHost(JNIEnv* env, jobject obj, jstring user)
{
static TQString* _qstring_user = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setHost((const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setPassword(JNIEnv* env, jobject obj, jstring pass)
{
static TQString* _qstring_pass = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setPassword((const TQString&)*(TQString*) QtSupport::toTQString(env, pass, &_qstring_pass));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setPath(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setPath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setProtocol(JNIEnv* env, jobject obj, jstring protocol)
{
static TQString* _qstring_protocol = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setProtocol((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setQuery(JNIEnv* env, jobject obj, jstring txt)
{
static TQString* _qstring_txt = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setQuery((const TQString&)*(TQString*) QtSupport::toTQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setRef(JNIEnv* env, jobject obj, jstring txt)
{
static TQString* _qstring_txt = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setRef((const TQString&)*(TQString*) QtSupport::toTQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrl_setUser(JNIEnv* env, jobject obj, jstring user)
{
static TQString* _qstring_user = 0;
	((TQUrl*) QtSupport::getQt(env, obj))->setUser((const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUrl_toString__Z(JNIEnv* env, jobject obj, jboolean encodedPath)
{
	TQString  _qstring;
	_qstring = ((TQUrl*) QtSupport::getQt(env, obj))->toString((bool) encodedPath);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUrl_toString__ZZ(JNIEnv* env, jobject obj, jboolean encodedPath, jboolean forcePrependProtocol)
{
	TQString  _qstring;
	_qstring = ((TQUrl*) QtSupport::getQt(env, obj))->toString((bool) encodedPath, (bool) forcePrependProtocol);
	return QtSupport::fromTQString(env, &_qstring);
}

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

