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

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

class KShellCompletionJBridge : public KShellCompletion
{
public:
	KShellCompletionJBridge() : KShellCompletion() {};
	void protected_postProcessMatch(QString* arg1) {
		KShellCompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(QStringList* arg1) {
		KShellCompletion::postProcessMatches(arg1);
		return;
	}
	~KShellCompletionJBridge() {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.KShellCompletion","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.KShellCompletion",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KShellCompletion","stop")) {
			KURLCompletion::stop();
		}
		return;
	}
};

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShellCompletion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KShellCompletion_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShellCompletion_makeCompletion(JNIEnv* env, jobject obj, jstring text)
{
	QString  _qstring;
static QString* _qstring_text = 0;
	_qstring = ((KShellCompletion*) 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_KShellCompletion_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KShellCompletion*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShellCompletion_postProcessMatch(JNIEnv* env, jobject obj, jobject match)
{
static QString* _qstring_match = 0;
	((KShellCompletionJBridge*) 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_KShellCompletion_postProcessMatches(JNIEnv* env, jobject obj, jobjectArray matches)
{
static QStringList* _qlist_matches = 0;
	((KShellCompletionJBridge*) QtSupport::getQt(env, obj))->protected_postProcessMatches((QStringList*) QtSupport::toQStringList(env, matches, &_qlist_matches));
	return;
}

