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

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

class TDEAccelShortcutListJBridge : public TDEAccelShortcutList
{
public:
	TDEAccelShortcutListJBridge(TDEAccel* arg1) : TDEAccelShortcutList(arg1) {};
	TDEAccelShortcutListJBridge(TDEGlobalAccel* arg1) : TDEAccelShortcutList(arg1) {};
	TDEAccelShortcutListJBridge(TDEAccelActions& arg1,bool arg2) : TDEAccelShortcutList(arg1,arg2) {};
	~TDEAccelShortcutListJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEAccelShortcutList_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEAccelShortcutList_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

