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

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

class TDECompletionJBridge : public TDECompletion
{
public:
	TDECompletionJBridge() : TDECompletion() {};
	void public_clear() {
		TDECompletion::clear();
		return;
	}
	void protected_postProcessMatch(TQString* arg1) {
		TDECompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(TQStringList* arg1) {
		TDECompletion::postProcessMatches(arg1);
		return;
	}
	~TDECompletionJBridge() {QtSupport::qtKeyDeleted(this);}
	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.TDECompletion","clear")) {
			TDECompletion::clear();
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::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.TDECompletion",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_addItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring item)
{
static TQString* _qstring_item = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->addItem((const TQString&)*(TQString*) QtSupport::toTQString(env, item, &_qstring_item));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_addItem__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring item, jint weight)
{
static TQString* _qstring_item = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->addItem((const TQString&)*(TQString*) QtSupport::toTQString(env, item, &_qstring_item), (uint) weight);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDECompletion_allMatches__(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDECompletion*) QtSupport::getQt(env, obj))->allMatches();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDECompletion_allMatches__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring string)
{
	TQStringList  _qlist;
static TQString* _qstring_string = 0;
	_qlist = ((TDECompletion*) QtSupport::getQt(env, obj))->allMatches((const TQString&)*(TQString*) QtSupport::toTQString(env, string, &_qstring_string));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_clear(JNIEnv* env, jobject obj)
{
	((TDECompletionJBridge*) QtSupport::getQt(env, obj))->public_clear();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDECompletion_completionMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDECompletion*) QtSupport::getQt(env, obj))->completionMode();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDECompletion_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDECompletion_hasMultipleMatches(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDECompletion*) QtSupport::getQt(env, obj))->hasMultipleMatches();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDECompletion_ignoreCase(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDECompletion*) QtSupport::getQt(env, obj))->ignoreCase();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_insertItems(JNIEnv* env, jobject obj, jobjectArray items)
{
static TQStringList* _qlist_items = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->insertItems((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, items, &_qlist_items));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDECompletion_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDECompletion*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDECompletion_isSoundsEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDECompletion*) QtSupport::getQt(env, obj))->isSoundsEnabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDECompletion_items(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDECompletion*) QtSupport::getQt(env, obj))->items();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDECompletion_makeCompletion(JNIEnv* env, jobject obj, jstring string)
{
	TQString  _qstring;
static TQString* _qstring_string = 0;
	_qstring = ((TDECompletion*) QtSupport::getQt(env, obj))->makeCompletion((const TQString&)*(TQString*) QtSupport::toTQString(env, string, &_qstring_string));
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDECompletion_order(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDECompletion*) QtSupport::getQt(env, obj))->order();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_removeItem(JNIEnv* env, jobject obj, jstring item)
{
static TQString* _qstring_item = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->removeItem((const TQString&)*(TQString*) QtSupport::toTQString(env, item, &_qstring_item));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_setCompletionMode(JNIEnv* env, jobject obj, jint mode)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->setCompletionMode((TDEGlobalSettings::Completion) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_setEnableSounds(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->setEnableSounds((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_setIgnoreCase(JNIEnv* env, jobject obj, jboolean ignoreCase)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->setIgnoreCase((bool) ignoreCase);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_setItems(JNIEnv* env, jobject obj, jobjectArray list)
{
static TQStringList* _qlist_list = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->setItems((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_setOrder(JNIEnv* env, jobject obj, jint order)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->setOrder((TDECompletion::CompOrder) order);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_slotMakeCompletion(JNIEnv* env, jobject obj, jstring string)
{
static TQString* _qstring_string = 0;
	((TDECompletion*) QtSupport::getQt(env, obj))->slotMakeCompletion((const TQString&)*(TQString*) QtSupport::toTQString(env, string, &_qstring_string));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_slotNextMatch(JNIEnv* env, jobject obj)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->slotNextMatch();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDECompletion_slotPreviousMatch(JNIEnv* env, jobject obj)
{
	((TDECompletion*) QtSupport::getQt(env, obj))->slotPreviousMatch();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDECompletion_substringCompletion(JNIEnv* env, jobject obj, jstring string)
{
	TQStringList  _qlist;
static TQString* _qstring_string = 0;
	_qlist = ((TDECompletion*) QtSupport::getQt(env, obj))->substringCompletion((const TQString&)*(TQString*) QtSupport::toTQString(env, string, &_qstring_string));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

