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

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

class QEventLoopJBridge : public QEventLoop
{
public:
	QEventLoopJBridge(QObject* arg1,const char* arg2) : QEventLoop(arg1,arg2) {};
	QEventLoopJBridge(QObject* arg1) : QEventLoop(arg1) {};
	QEventLoopJBridge() : QEventLoop() {};
	void public_exit() {
		QEventLoop::exit();
		return;
	}
	void public_exitLoop() {
		QEventLoop::exitLoop();
		return;
	}
	void public_wakeUp() {
		QEventLoop::wakeUp();
		return;
	}
	~QEventLoopJBridge() {QtSupport::qtKeyDeleted(this);}
	void unregisterSocketNotifier(QSocketNotifier* arg1) {
		if (!QtSupport::eventDelegate(this,"unregisterSocketNotifier",(void*)arg1,"org.kde.qt.QSocketNotifier")) {
			QEventLoop::unregisterSocketNotifier(arg1);
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void exitLoop() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QEventLoop","exitLoop")) {
			QEventLoop::exitLoop();
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void wakeUp() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QEventLoop","wakeUp")) {
			QEventLoop::wakeUp();
		}
		return;
	}
	void registerSocketNotifier(QSocketNotifier* arg1) {
		if (!QtSupport::eventDelegate(this,"registerSocketNotifier",(void*)arg1,"org.kde.qt.QSocketNotifier")) {
			QEventLoop::registerSocketNotifier(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;
	}
	bool hasPendingEvents() {
		return QtSupport::booleanDelegate(this,"hasPendingEvents");
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QEventLoop",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QEventLoop_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QEventLoop_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QEventLoop_newQEventLoop__Lorg_kde_qt_QObject_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 QEventLoopJBridge((QObject*) 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_kde_qt_QEventLoop_processEvents__I(JNIEnv* env, jobject obj, jint flags)
{
	jboolean xret = (jboolean) ((QEventLoop*) QtSupport::getQt(env, obj))->processEvents((QEventLoop::ProcessEventsFlags) flags);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QEventLoop_registerSocketNotifier(JNIEnv* env, jobject obj, jobject arg1)
{
	((QEventLoop*) QtSupport::getQt(env, obj))->registerSocketNotifier((QSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QEventLoop_setSocketNotifierPending(JNIEnv* env, jobject obj, jobject arg1)
{
	((QEventLoop*) QtSupport::getQt(env, obj))->setSocketNotifierPending((QSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QEventLoop_unregisterSocketNotifier(JNIEnv* env, jobject obj, jobject arg1)
{
	((QEventLoop*) QtSupport::getQt(env, obj))->unregisterSocketNotifier((QSocketNotifier*) QtSupport::getQt(env, arg1));
	return;
}

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

