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

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

class KURLCompletionJBridge : public KURLCompletion
{
public:
	KURLCompletionJBridge() : KURLCompletion() {};
	KURLCompletionJBridge(KURLCompletion::Mode arg1) : KURLCompletion(arg1) {};
	void public_stop() {
		KURLCompletion::stop();
		return;
	}
	void protected_postProcessMatch(QString* arg1) {
		KURLCompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(QStringList* arg1) {
		KURLCompletion::postProcessMatches(arg1);
		return;
	}
	void protected_customEvent(QCustomEvent* arg1) {
		KURLCompletion::customEvent(arg1);
		return;
	}
	void protected_slotIOFinished(KIO::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(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KURLCompletion","clear")) {
			KCompletion::clear();
		}
		return;
	}
	bool replaceEnv() {
		return QtSupport::booleanDelegate(this,"replaceEnv");
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			KURLCompletion::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KURLCompletion",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KURLCompletion","stop")) {
			KURLCompletion::stop();
		}
		return;
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KURLCompletion_customEvent(JNIEnv* env, jobject obj, jobject e)
{
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((QCustomEvent*) QtSupport::getQt(env, e));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLCompletion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KURLCompletion_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KURLCompletion_makeCompletion(JNIEnv* env, jobject obj, jstring text)
{
	QString  _qstring;
static QString* _qstring_text = 0;
	_qstring = ((KURLCompletion*) QtSupport::getQt(env, obj))->makeCompletion((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_koala_KURLCompletion_postProcessMatch(JNIEnv* env, jobject obj, jobject match)
{
static QString* _qstring_match = 0;
	((KURLCompletionJBridge*) QtSupport::getQt(env, obj))->protected_postProcessMatch((QString*) QtSupport::toQStringFromStringBuffer(env, match, &_qstring_match));
	QtSupport::fromQStringToStringBuffer(env, _qstring_match, match);
	return;
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KURLCompletion_replacedPath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
	QString  _qstring;
static QString* _qstring_text = 0;
	_qstring = ((KURLCompletion*) QtSupport::getQt(env, obj))->replacedPath((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KURLCompletion_replacedPath__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring text, jboolean replaceHome)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KURLCompletionJBridge::replacedPath((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (bool) replaceHome);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

