//Auto-generated by kalyptus. DO NOT EDIT.
#include <qaccel.h>
#include <qstring.h>
#include <qkeysequence.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QAccel.h>

class QAccelJBridge : public QAccel
{
public:
	QAccelJBridge(QWidget* arg1,const char* arg2) : QAccel(arg1,arg2) {};
	QAccelJBridge(QWidget* arg1) : QAccel(arg1) {};
	QAccelJBridge(QWidget* arg1,QObject* arg2,const char* arg3) : QAccel(arg1,arg2,arg3) {};
	QAccelJBridge(QWidget* arg1,QObject* arg2) : QAccel(arg1,arg2) {};
	bool protected_eventFilter(QObject* arg1,QEvent* arg2) {
		return (bool) QAccel::eventFilter(arg1,arg2);
	}
	~QAccelJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAccel_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QAccel*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_clear(JNIEnv* env, jobject obj)
{
	((QAccel*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_connectItem(JNIEnv* env, jobject obj, jint id, jobject receiver, jstring member)
{
	jboolean xret = (jboolean) ((QAccel*) QtSupport::getQt(env, obj))->connectItem((int) id, (const QObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_disconnectItem(JNIEnv* env, jobject obj, jint id, jobject receiver, jstring member)
{
	jboolean xret = (jboolean) ((QAccel*) QtSupport::getQt(env, obj))->disconnectItem((int) id, (const QObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QAccel_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((QAccelJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QAccel*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (QAccel*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QAccel_findKey(JNIEnv* env, jobject obj, jobject key)
{
	jint xret = (jint) ((QAccel*) QtSupport::getQt(env, obj))->findKey((const QKeySequence&)*(const QKeySequence*) QtSupport::getQt(env, key));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_ignoreWhatsThis(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QAccel*) QtSupport::getQt(env, obj))->ignoreWhatsThis();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QAccel_insertItem__Lorg_kde_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject key)
{
	jint xret = (jint) ((QAccel*) QtSupport::getQt(env, obj))->insertItem((const QKeySequence&)*(const QKeySequence*) QtSupport::getQt(env, key));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QAccel_insertItem__Lorg_kde_qt_QKeySequence_2I(JNIEnv* env, jobject obj, jobject key, jint id)
{
	jint xret = (jint) ((QAccel*) QtSupport::getQt(env, obj))->insertItem((const QKeySequence&)*(const QKeySequence*) QtSupport::getQt(env, key), (int) id);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QAccel*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAccel_isItemEnabled(JNIEnv* env, jobject obj, jint id)
{
	jboolean xret = (jboolean) ((QAccel*) QtSupport::getQt(env, obj))->isItemEnabled((int) id);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAccel_keyToString(JNIEnv* env, jclass cls, jobject k)
{
	QString  _qstring;
	(void) cls;
	_qstring = QAccelJBridge::keyToString((QKeySequence)*(QKeySequence*) QtSupport::getQt(env, k));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QAccel_key(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QKeySequence(((QAccel*) QtSupport::getQt(env, obj))->key((int) id)), "org.kde.qt.QKeySequence", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QAccel_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QAccel*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_newQAccel__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QAccelJBridge((QWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_newQAccel__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QAccelJBridge((QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_newQAccel__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject watch, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QAccelJBridge((QWidget*) QtSupport::getQt(env, watch), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_newQAccel__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject watch, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QAccelJBridge((QWidget*) QtSupport::getQt(env, watch), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_removeItem(JNIEnv* env, jobject obj, jint id)
{
	((QAccel*) QtSupport::getQt(env, obj))->removeItem((int) id);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_repairEventFilter(JNIEnv* env, jobject obj)
{
	((QAccel*) QtSupport::getQt(env, obj))->repairEventFilter();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_setEnabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QAccel*) QtSupport::getQt(env, obj))->setEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_setIgnoreWhatsThis(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QAccel*) QtSupport::getQt(env, obj))->setIgnoreWhatsThis((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_setItemEnabled(JNIEnv* env, jobject obj, jint id, jboolean enable)
{
	((QAccel*) QtSupport::getQt(env, obj))->setItemEnabled((int) id, (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAccel_setWhatsThis(JNIEnv* env, jobject obj, jint id, jstring arg2)
{
static QString* _qstring_arg2 = 0;
	((QAccel*) QtSupport::getQt(env, obj))->setWhatsThis((int) id, (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QAccel_shortcutKey(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QKeySequence(QAccelJBridge::shortcutKey((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1))), "org.kde.qt.QKeySequence", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QAccel_stringToKey(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QKeySequence(QAccelJBridge::stringToKey((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1))), "org.kde.qt.QKeySequence", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAccel_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QAccelJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAccel_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QAccelJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAccel_whatsThis(JNIEnv* env, jobject obj, jint id)
{
	QString  _qstring;
	_qstring = ((QAccel*) QtSupport::getQt(env, obj))->whatsThis((int) id);
	return QtSupport::fromQString(env, &_qstring);
}

