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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_getOther(JNIEnv* env, jobject obj, jint arg1, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KShortcutList*) QtSupport::getQt(env, obj))->getOther((KShortcutList::Other) arg1, (uint) index)), "org.kde.qt.TQVariant", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_index__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sName)
{
static TQString* _qstring_sName = 0;
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->index((const TQString&)*(TQString*) QtSupport::toQString(env, sName, &_qstring_sName));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_index__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->index((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KShortcutList*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_isConfigurable(JNIEnv* env, jobject obj, jint index)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->isConfigurable((uint) index);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_isGlobal(JNIEnv* env, jobject obj, jint index)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->isGlobal((uint) index);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_label(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->label((uint) index);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_name(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->name((uint) index);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_save(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->save();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_setOther(JNIEnv* env, jobject obj, jint arg1, jint index, jobject arg3)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->setOther((KShortcutList::Other) arg1, (uint) index, (TQVariant)*(TQVariant*) QtSupport::getQt(env, arg3));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_setShortcut(JNIEnv* env, jobject obj, jint index, jobject shortcut)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->setShortcut((uint) index, (const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_shortcutDefault(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &((KShortcutList*) QtSupport::getQt(env, obj))->shortcutDefault((uint) index), "org.kde.koala.KShortcut");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_shortcut(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &((KShortcutList*) QtSupport::getQt(env, obj))->shortcut((uint) index), "org.kde.koala.KShortcut");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_whatsThis(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->whatsThis((uint) index);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2Z(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig, jboolean bWriteAll)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig), (bool) bWriteAll);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2ZZ(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig, jboolean bWriteAll, jboolean bGlobal)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig), (bool) bWriteAll, (bool) bGlobal);
	return xret;
}

