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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCompletionBase_compObj(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KCompletionBase*) QtSupport::getQt(env, obj))->compObj(), "org.kde.koala.KCompletion");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCompletionBase_completionObject__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KCompletionBase*) QtSupport::getQt(env, obj))->completionObject(), "org.kde.koala.KCompletion");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCompletionBase_completionObject__Z(JNIEnv* env, jobject obj, jboolean hsig)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KCompletionBase*) QtSupport::getQt(env, obj))->completionObject((bool) hsig), "org.kde.koala.KCompletion");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCompletionBase_emitSignals(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KCompletionBase*) QtSupport::getQt(env, obj))->emitSignals();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCompletionBase_getKeyBinding(JNIEnv* env, jobject obj, jint item)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &((KCompletionBase*) QtSupport::getQt(env, obj))->getKeyBinding((KCompletionBase::KeyBindingType) item), "org.kde.koala.KShortcut");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCompletionBase_handleSignals(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KCompletionBase*) QtSupport::getQt(env, obj))->handleSignals();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCompletionBase_isCompletionObjectAutoDeleted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KCompletionBase*) QtSupport::getQt(env, obj))->isCompletionObjectAutoDeleted();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setAutoDeleteCompletionObject(JNIEnv* env, jobject obj, jboolean autoDelete)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->setAutoDeleteCompletionObject((bool) autoDelete);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setCompletedItems(JNIEnv* env, jobject obj, jobjectArray items)
{
static TQStringList* _qlist_items = 0;
	((KCompletionBase*) QtSupport::getQt(env, obj))->setCompletedItems((const TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, items, &_qlist_items));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setCompletedText(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((KCompletionBase*) QtSupport::getQt(env, obj))->setCompletedText((const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setCompletionObject__Lorg_kde_koala_KCompletion_2(JNIEnv* env, jobject obj, jobject compObj)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, compObj));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setCompletionObject__Lorg_kde_koala_KCompletion_2Z(JNIEnv* env, jobject obj, jobject compObj, jboolean hsig)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, compObj), (bool) hsig);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setEnableSignals(JNIEnv* env, jobject obj, jboolean enable)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->setEnableSignals((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_setHandleSignals(JNIEnv* env, jobject obj, jboolean handle)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->setHandleSignals((bool) handle);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCompletionBase_setKeyBinding(JNIEnv* env, jobject obj, jint item, jobject key)
{
	jboolean xret = (jboolean) ((KCompletionBase*) QtSupport::getQt(env, obj))->setKeyBinding((KCompletionBase::KeyBindingType) item, (const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, key));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCompletionBase_useGlobalKeyBindings(JNIEnv* env, jobject obj)
{
	((KCompletionBase*) QtSupport::getQt(env, obj))->useGlobalKeyBindings();
	return;
}

