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

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

class KURLCompletionJBridge : public KURLCompletion
{
public:
	KURLCompletionJBridge() : KURLCompletion() {};
	KURLCompletionJBridge(KURLCompletion::Mode arg1) : KURLCompletion(arg1) {};
	void public_stop() {
		KURLCompletion::stop();
		return;
	}
	void protected_postProcessMatch(TQString* arg1) {
		KURLCompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(TQStringList* arg1) {
		KURLCompletion::postProcessMatches(arg1);
		return;
	}
	void protected_customEvent(TQCustomEvent* arg1) {
		KURLCompletion::customEvent(arg1);
		return;
	}
	void protected_slotIOFinished(TDEIO::Job* arg1) {
		KURLCompletion::slotIOFinished(arg1);
		return;
	}
	~KURLCompletionJBridge() {QtSupport::qtKeyDeleted(this);}
	bool replaceHome() {
		return QtSupport::booleanDelegate(this,"replaceHome");
	}
	bool isRunning() {
		return QtSupport::booleanDelegate(this,"isRunning");
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KURLCompletion","clear")) {
			TDECompletion::clear();
		}
		return;
	}
	bool replaceEnv() {
		return QtSupport::booleanDelegate(this,"replaceEnv");
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			KURLCompletion::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KURLCompletion",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KURLCompletion","stop")) {
			KURLCompletion::stop();
		}
		return;
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KURLCompletion*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_customEvent(JNIEnv* env, jobject obj, jobject e)
{
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((TQCustomEvent*) QtSupport::getQt(env, e));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KURLCompletion_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_isRunning(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KURLCompletion*) QtSupport::getQt(env, obj))->isRunning();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_makeCompletion(JNIEnv* env, jobject obj, jstring text)
{
	TQString  _qstring;
static TQString* _qstring_text = 0;
	_qstring = ((KURLCompletion*) QtSupport::getQt(env, obj))->makeCompletion((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KURLCompletion*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KURLCompletion*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_newKURLCompletion__I(JNIEnv* env, jobject obj, jint arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLCompletionJBridge((KURLCompletion::Mode) arg1));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_postProcessMatch(JNIEnv* env, jobject obj, jobject match)
{
static TQString* _qstring_match = 0;
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_postProcessMatch((TQString*) QtSupport::toTQStringFromStringBuffer(env, match, &_qstring_match));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_match, match);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_postProcessMatches(JNIEnv* env, jobject obj, jobjectArray matches)
{
static TQStringList* _qlist_matches = 0;
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_postProcessMatches((TQStringList*) QtSupport::toTQStringList(env, matches, &_qlist_matches));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_replaceEnv(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KURLCompletion*) QtSupport::getQt(env, obj))->replaceEnv();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_replaceHome(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KURLCompletion*) QtSupport::getQt(env, obj))->replaceHome();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_replacedPath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
	TQString  _qstring;
static TQString* _qstring_text = 0;
	_qstring = ((KURLCompletion*) QtSupport::getQt(env, obj))->replacedPath((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_replacedPath__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring text, jboolean replaceHome)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KURLCompletionJBridge::replacedPath((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (bool) replaceHome);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_replacedPath__Ljava_lang_String_2ZZ(JNIEnv* env, jclass cls, jstring text, jboolean replaceHome, jboolean replaceEnv)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_text = 0;
	_qstring = KURLCompletionJBridge::replacedPath((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (bool) replaceHome, (bool) replaceEnv);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_setDir(JNIEnv* env, jobject obj, jstring dir)
{
static TQString* _qstring_dir = 0;
	((KURLCompletion*) QtSupport::getQt(env, obj))->setDir((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_setMode(JNIEnv* env, jobject obj, jint mode)
{
	((KURLCompletion*) QtSupport::getQt(env, obj))->setMode((KURLCompletion::Mode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_setReplaceEnv(JNIEnv* env, jobject obj, jboolean replace)
{
	((KURLCompletion*) QtSupport::getQt(env, obj))->setReplaceEnv((bool) replace);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_setReplaceHome(JNIEnv* env, jobject obj, jboolean replace)
{
	((KURLCompletion*) QtSupport::getQt(env, obj))->setReplaceHome((bool) replace);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_slotIOFinished(JNIEnv* env, jobject obj, jobject arg1)
{
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_slotIOFinished((TDEIO::Job*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLCompletion_stop(JNIEnv* env, jobject obj)
{
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->public_stop();
	return;
}

