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

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

class KShellCompletionJBridge : public KShellCompletion
{
public:
	KShellCompletionJBridge() : KShellCompletion() {};
	void protected_postProcessMatch(TQString* arg1) {
		KShellCompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(TQStringList* 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(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.KShellCompletion","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.KShellCompletion",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void stop() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KShellCompletion","stop")) {
			KURLCompletion::stop();
		}
		return;
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KShellCompletion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KShellCompletion_finalize(env, obj);
	return;
}

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

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

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

