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

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

class TQEventLoopJBridge : public TQEventLoop
{
public:
	TQEventLoopJBridge(TQObject* arg1,const char* arg2) : TQEventLoop(arg1,arg2) {};
	TQEventLoopJBridge(TQObject* arg1) : TQEventLoop(arg1) {};
	TQEventLoopJBridge() : TQEventLoop() {};
	void public_exit() {
		TQEventLoop::exit();
		return;
	}
	void public_exitLoop() {
		TQEventLoop::exitLoop();
		return;
	}
	void public_wakeUp() {
		TQEventLoop::wakeUp();
		return;
	}
	~TQEventLoopJBridge() {QtSupport::qtKeyDeleted(this);}
	void unregisterSocketNotifier(TQSocketNotifier* arg1) {
		if (!QtSupport::eventDelegate(this,"unregisterSocketNotifier",(void*)arg1,"org.trinitydesktop.qt.TQSocketNotifier")) {
			TQEventLoop::unregisterSocketNotifier(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void exitLoop() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQEventLoop","exitLoop")) {
			TQEventLoop::exitLoop();
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void wakeUp() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQEventLoop","wakeUp")) {
			TQEventLoop::wakeUp();
		}
		return;
	}
	void registerSocketNotifier(TQSocketNotifier* arg1) {
		if (!QtSupport::eventDelegate(this,"registerSocketNotifier",(void*)arg1,"org.trinitydesktop.qt.TQSocketNotifier")) {
			TQEventLoop::registerSocketNotifier(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;
	}
	bool hasPendingEvents() {
		return QtSupport::booleanDelegate(this,"hasPendingEvents");
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQEventLoop",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_activateSocketNotifiers(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->activateSocketNotifiers();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_activateTimers(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->activateTimers();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QEventLoop_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_enterLoop(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->enterLoop();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_exec(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->exec();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_exitLoop(JNIEnv* env, jobject obj)
{
	((TQEventLoopJBridge*) QtSupport::getQt(env, obj))->public_exitLoop();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_exit__(JNIEnv* env, jobject obj)
{
	((TQEventLoopJBridge*) QtSupport::getQt(env, obj))->public_exit();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_exit__I(JNIEnv* env, jobject obj, jint retcode)
{
	((TQEventLoop*) QtSupport::getQt(env, obj))->exit((int) retcode);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QEventLoop_hasPendingEvents(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQEventLoop*) QtSupport::getQt(env, obj))->hasPendingEvents();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_loopLevel(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->loopLevel();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_newTQEventLoop__Lorg_trinitydesktop_qt_QObject_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 TQEventLoopJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QEventLoop_processEvents__I(JNIEnv* env, jobject obj, jint flags)
{
	jboolean xret = (jboolean) ((TQEventLoop*) QtSupport::getQt(env, obj))->processEvents((TQEventLoop::ProcessEventsFlags) flags);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_processEvents__II(JNIEnv* env, jobject obj, jint flags, jint maxtime)
{
	((TQEventLoop*) QtSupport::getQt(env, obj))->processEvents((TQEventLoop::ProcessEventsFlags) flags, (int) maxtime);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_registerSocketNotifier(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQEventLoop*) QtSupport::getQt(env, obj))->registerSocketNotifier((TQSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_setSocketNotifierPending(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQEventLoop*) QtSupport::getQt(env, obj))->setSocketNotifierPending((TQSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEventLoop_timeToWait(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEventLoop*) QtSupport::getQt(env, obj))->timeToWait();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QEventLoop_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 = TQEventLoopJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_unregisterSocketNotifier(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQEventLoop*) QtSupport::getQt(env, obj))->unregisterSocketNotifier((TQSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEventLoop_wakeUp(JNIEnv* env, jobject obj)
{
	((TQEventLoopJBridge*) QtSupport::getQt(env, obj))->public_wakeUp();
	return;
}

