//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqaccel.h>
#include <tqstring.h>
#include <tqkeysequence.h>

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

class TQAccelJBridge : public TQAccel
{
public:
	TQAccelJBridge(TQWidget* arg1,const char* arg2) : TQAccel(arg1,arg2) {};
	TQAccelJBridge(TQWidget* arg1) : TQAccel(arg1) {};
	TQAccelJBridge(TQWidget* arg1,TQObject* arg2,const char* arg3) : TQAccel(arg1,arg2,arg3) {};
	TQAccelJBridge(TQWidget* arg1,TQObject* arg2) : TQAccel(arg1,arg2) {};
	bool protected_eventFilter(TQObject* arg1,TQEvent* arg2) {
		return (bool) TQAccel::eventFilter(arg1,arg2);
	}
	~TQAccelJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
};

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAccel_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QAccel_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QAccel_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((TQAccelJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((TQObject*) QtSupport::getQt(env, arg1), (TQEvent*) QtSupport::getQt(env, arg2));
	return xret;
}

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

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAccel_keyToString(JNIEnv* env, jclass cls, jobject k)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQAccelJBridge::keyToString((TQKeySequence)*(TQKeySequence*) QtSupport::getQt(env, k));
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QAccel_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQAccel*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAccel_newTQAccel__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQAccelJBridge((TQWidget*) 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_trinitydesktop_qt_QAccel_newTQAccel__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject watch, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQAccelJBridge((TQWidget*) QtSupport::getQt(env, watch), (TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAccel_newTQAccel__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject watch, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQAccelJBridge((TQWidget*) QtSupport::getQt(env, watch), (TQObject*) 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_trinitydesktop_qt_QAccel_removeItem(JNIEnv* env, jobject obj, jint id)
{
	((TQAccel*) QtSupport::getQt(env, obj))->removeItem((int) id);
	return;
}

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QAccel_shortcutKey(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQKeySequence(TQAccelJBridge::shortcutKey((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1))), "org.trinitydesktop.qt.TQKeySequence", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QAccel_stringToKey(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQKeySequence(TQAccelJBridge::stringToKey((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1))), "org.trinitydesktop.qt.TQKeySequence", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAccel_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQAccelJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAccel_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQAccelJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAccel_whatsThis(JNIEnv* env, jobject obj, jint id)
{
	TQString  _qstring;
	_qstring = ((TQAccel*) QtSupport::getQt(env, obj))->whatsThis((int) id);
	return QtSupport::fromTQString(env, &_qstring);
}

