//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeactionshortcutlist.h>
#include <tqstring.h>
#include <tqvariant.h>
#include <tdeshortcutlist.h>
#include <tdeshortcut.h>

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

class TDEActionShortcutListJBridge : public TDEActionShortcutList
{
public:
	TDEActionShortcutListJBridge(TDEActionCollection* arg1) : TDEActionShortcutList(arg1) {};
	~TDEActionShortcutListJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEActionShortcutList_action(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEActionShortcutList*) QtSupport::getQt(env, obj))->action((uint) arg1), "org.trinitydesktop.koala.TDEAction");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEActionShortcutList_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEActionShortcutList_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEActionShortcutList_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEActionShortcutList*) QtSupport::getQt(env, obj))->instance(), "org.trinitydesktop.koala.TDEInstanceInterface");
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEActionShortcutList_setShortcut(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((TDEActionShortcutList*) QtSupport::getQt(env, obj))->setShortcut((uint) arg1, (const TDEShortcut&)*(const TDEShortcut*) QtSupport::getQt(env, arg2));
	return xret;
}

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

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

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

