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

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

class KActionShortcutListJBridge : public KActionShortcutList
{
public:
	KActionShortcutListJBridge(KActionCollection* arg1) : KActionShortcutList(arg1) {};
	~KActionShortcutListJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionShortcutList_action(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionShortcutList*) QtSupport::getQt(env, obj))->action((uint) arg1), "org.kde.koala.KAction");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionShortcutList_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KActionShortcutList_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionShortcutList_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KActionShortcutList*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionShortcutList_setOther(JNIEnv* env, jobject obj, jint arg1, jint index, jobject arg3)
{
	jboolean xret = (jboolean) ((KActionShortcutList*) 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_KActionShortcutList_setShortcut(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((KActionShortcutList*) QtSupport::getQt(env, obj))->setShortcut((uint) arg1, (const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, arg2));
	return xret;
}

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

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

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

