//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/KAccelShortcutList.h>

class KAccelShortcutListJBridge : public KAccelShortcutList
{
public:
	KAccelShortcutListJBridge(KAccel* arg1) : KAccelShortcutList(arg1) {};
	KAccelShortcutListJBridge(KGlobalAccel* arg1) : KAccelShortcutList(arg1) {};
	KAccelShortcutListJBridge(KAccelActions& arg1,bool arg2) : KAccelShortcutList(arg1,arg2) {};
	~KAccelShortcutListJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAccelShortcutList_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KAccelShortcutList_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAccelShortcutList_newKAccelShortcutList__Lorg_kde_koala_KAccelActions_2Z(JNIEnv* env, jobject obj, jobject actions, jboolean bGlobal)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAccelShortcutListJBridge((KAccelActions&)*(KAccelActions*) QtSupport::getQt(env, actions), (bool) bGlobal));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

