/***************************************************************************
                            QObject.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qobject.h>
#include <qvariant.h>
#include <qstring.h>
#include <qcstring.h>

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

class QObjectJBridge : public QObject
{
public:
	QObjectJBridge(QObject* parent, const char* name) : QObject(parent, name) {}
	~QObjectJBridge() {QtSupport::qtKeyDeleted(this);}
	bool eventFilter(QObject * object, QEvent * event) {
		if (! QtSupport::eventFilterDelegate((QObject *) this, "org.kde.qt.QObject", object, event)) {
			return QObject::eventFilter(object, event);
		} else {
			return TRUE;
		}
	}
	bool  protected_activate_filters(QEvent* arg1) {
		return (bool ) QObject::activate_filters(arg1);
	}
	QConnectionList * protected_receivers(const char* signal) {
		return (QConnectionList *) QObject::receivers(signal);
	}
	QConnectionList * protected_receivers(int signal) {
		return (QConnectionList *) QObject::receivers(signal);
	}
	void protected_activate_signal(int signal) {
		QObject::activate_signal(signal);
		return;
	}
	void protected_activate_signal(int signal, int arg1) {
		QObject::activate_signal(signal, arg1);
		return;
	}
	void protected_activate_signal(int signal, double arg1) {
		QObject::activate_signal(signal, arg1);
		return;
	}
	void protected_activate_signal(int signal, QString arg1) {
		QObject::activate_signal(signal, arg1);
		return;
	}
	void protected_activate_signal_bool(int signal, bool arg1) {
		QObject::activate_signal_bool(signal, arg1);
		return;
	}
	void protected_activate_signal(QConnectionList* clist, QUObject* o) {
		QObject::activate_signal(clist, o);
		return;
	}
	const QObject * protected_sender() {
		return (const QObject *) QObject::sender();
	}
	void protected_connectNotify(const char* signal) {
		QObject::connectNotify(signal);
		return;
	}
	void protected_disconnectNotify(const char* signal) {
		QObject::disconnectNotify(signal);
		return;
	}
	 bool  protected_checkConnectArgs(const char* signal, const QObject* receiver, const char* member) {
		return ( bool ) QObject::checkConnectArgs(signal, receiver, member);
	}
	 QCString  protected_normalizeSignalSlot(const char* signalSlot) {
		return ( QCString ) QObject::normalizeSignalSlot(signalSlot);
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};


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

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

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

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

//JNIEXPORT jstring JNICALL
//Java_org_kde_qt_QObject_tr(JNIEnv *env, jobject obj, jstring arg1, jstring arg2)
//{
//	QString  _qstring;
//static QCString * _qstring_arg2 = 0;
//static QCString * _qstring_arg1 = 0;
//	_qstring = ((QObjectJBridge*) QtSupport::getQt(env, obj))->tr((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
//	return QtSupport::fromQString(env, &_qstring);
//}

//JNIEXPORT jstring JNICALL
//Java_org_kde_qt_QObject_trUtf8(JNIEnv *env, jobject obj, jstring arg1, jstring arg2)
//{
//	QString  _qstring;
//static QCString * _qstring_arg2 = 0;
//static QCString * _qstring_arg1 = 0;
//	_qstring = ((QObjectJBridge*) QtSupport::getQt(env, obj))->trUtf8((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
//	return QtSupport::fromQString(env, &_qstring);
//}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_event(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->event((QEvent*) QtSupport::getQt(env, arg1));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_eventFilter(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	return (jboolean) FALSE;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_isA(JNIEnv *env, jobject obj, jstring arg1)
{
static QCString * _qstring_arg1 = 0;
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->isA((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_inherits(JNIEnv *env, jobject obj, jstring arg1)
{
static QCString * _qstring_arg1 = 0;
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->inherits((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QObject_name__(JNIEnv *env, jobject obj)
{
	const char * _qcstring;
	_qcstring = (const char *)((QObjectJBridge*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromCharString(env, (char *) _qcstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QObject_name__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring defaultName)
{
	const char * _qcstring;
static QCString * _qstring_defaultName = 0;
	_qcstring = (const char *)((QObjectJBridge*) QtSupport::getQt(env, obj))->name((char*) QtSupport::toCharString(env, defaultName, &_qstring_defaultName));
	return QtSupport::fromCharString(env, (char *) _qcstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_setName(JNIEnv *env, jobject obj, jstring name)
{
static QCString * _qstring_name = 0;
	((QObjectJBridge*) QtSupport::getQt(env, obj))->setName((char*) QtSupport::toCharString(env, name, &_qstring_name));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_isWidgetType(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->isWidgetType();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_highPriority(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->highPriority();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_signalsBlocked(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->signalsBlocked();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_blockSignals(JNIEnv *env, jobject obj, jboolean b)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->blockSignals((bool) b);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QObject_startTimer(JNIEnv *env, jobject obj, jint interval)
{
	return (jint) ((QObjectJBridge*) QtSupport::getQt(env, obj))->startTimer((int) interval);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_killTimer(JNIEnv *env, jobject obj, jint identifier)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->killTimer((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_killTimers(JNIEnv *env, jobject obj)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->killTimers();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_child__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring objName, jstring inheritsClass, jboolean recursiveSearch)
{
static QCString * _qstring_inheritsClass = 0;
static QCString * _qstring_objName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->child((char*) QtSupport::toCharString(env, objName, &_qstring_objName), (char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (bool) recursiveSearch), "org.kde.qt.QObject");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_child__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring objName)
{
static QCString * _qstring_objName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->child((char*) QtSupport::toCharString(env, objName, &_qstring_objName), 0, TRUE), "org.kde.qt.QObject");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_children(JNIEnv *env, jobject obj)
{
	const QObjectList  * _qlist;
	_qlist = ((QObjectJBridge*) QtSupport::getQt(env, obj))->children();
	return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList *) _qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_queryList(JNIEnv *env, jobject obj, jstring inheritsClass, jstring objName, jboolean regexpMatch, jboolean recursiveSearch)
{
	QObjectList  * _qlist;
static QCString * _qstring_objName = 0;
static QCString * _qstring_inheritsClass = 0;
	_qlist = ((QObjectJBridge*) QtSupport::getQt(env, obj))->queryList((char*) QtSupport::toCharString(env, inheritsClass, &_qstring_inheritsClass), (char*) QtSupport::toCharString(env, objName, &_qstring_objName), (bool) regexpMatch, (bool) recursiveSearch);
	return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList *) _qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_insertChild(JNIEnv *env, jobject obj, jobject arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->insertChild((QObject*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_removeChild(JNIEnv *env, jobject obj, jobject arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->removeChild((QObject*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_installEventFilter(JNIEnv *env, jobject obj, jobject arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->installEventFilter((QObject*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_removeEventFilter(JNIEnv *env, jobject obj, jobject arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->removeEventFilter((QObject*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_connect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject sender, jstring signal, jstring member)
{
	return (jboolean) QtSupport::connect(env, sender, signal, obj, member);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_disconnect__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring signal, jobject receiver, jstring member)
{
	return (jboolean) QtSupport::disconnect(env, obj, signal, receiver, member);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_emit(JNIEnv * env, jobject obj, jstring signal, jobjectArray args)
{
	QtSupport::emitJavaSignal(env, obj, signal, args);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_disconnect__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->disconnect(0, 0, 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject receiver, jstring member)
{
static QCString * _qstring_member = 0;
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->disconnect((QObject*) QtSupport::getQt(env, receiver), (char*) QtSupport::toCharString(env, member, &_qstring_member));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2(JNIEnv *env, jobject obj, jobject receiver)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->disconnect((QObject*) QtSupport::getQt(env, receiver), 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_dumpObjectTree(JNIEnv *env, jobject obj)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->dumpObjectTree();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_dumpObjectInfo(JNIEnv *env, jobject obj)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->dumpObjectInfo();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_setProperty(JNIEnv *env, jobject obj, jstring name, jobject value)
{
static QCString * _qstring_name = 0;
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->setProperty((char*) QtSupport::toCharString(env, name, &_qstring_name), (QVariant&) *(QVariant *) QtSupport::getQt(env, value));
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_property(JNIEnv *env, jobject obj, jstring name)
{
static QCString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QVariant (((QObjectJBridge*) QtSupport::getQt(env, obj))->property((char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_parent(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->parent(), "org.kde.qt.QObject");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_deleteLater(JNIEnv *env, jobject obj)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->deleteLater();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_objectTrees(JNIEnv *env, jclass obj)
{
	const QObjectList  * _qlist;
	_qlist = QObjectJBridge::objectTrees();
	return (jobject) QtSupport::arrayWithQObjectList(env, (QObjectList *) _qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_connect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject sender, jstring signal, jobject receiver, jstring member)
{
	return (jboolean) QtSupport::connect(env, sender, signal, receiver, member);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_disconnect__Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject sender, jstring signal, jobject receiver, jstring member)
{
	return (jboolean) QtSupport::disconnect(env, sender, signal, receiver, member);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_connectInternal(JNIEnv *env, jclass obj, jobject sender, jint signal_index, jobject receiver, jint membcode, jint member_index)
{
	QObjectJBridge::connectInternal((QObject*) QtSupport::getQt(env, sender), (int) signal_index, (QObject*) QtSupport::getQt(env, receiver), (int) membcode, (int) member_index);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QObject_tr(JNIEnv *env, jclass obj, jstring sourceText, jstring arg1)
{
	QString  _qstring;
static QCString * _qstring_arg1 = 0;
static QCString * _qstring_sourceText = 0;
	_qstring = QObjectJBridge::tr((char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QObject_trUtf8(JNIEnv *env, jclass obj, jstring sourceText, jstring arg1)
{
	QString  _qstring;
static QCString * _qstring_arg1 = 0;
static QCString * _qstring_sourceText = 0;
	_qstring = QObjectJBridge::trUtf8((char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_activate_1filters(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_filters((QEvent*) QtSupport::getQt(env, arg1));
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_receivers__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring signal)
{
static QCString * _qstring_signal = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_receivers((char*) QtSupport::toCharString(env, signal, &_qstring_signal)), "org.kde.qt.QConnectionList");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_receivers__I(JNIEnv *env, jobject obj, jint signal)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_receivers((int) signal), "org.kde.qt.QConnectionList");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal__I(JNIEnv *env, jobject obj, jint signal)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal__II(JNIEnv *env, jobject obj, jint signal, jint arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal__ID(JNIEnv *env, jobject obj, jint signal, jdouble arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (double) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint signal, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((int) signal, (QString) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal_1bool(JNIEnv *env, jobject obj, jint signal, jboolean arg1)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal_bool((int) signal, (bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_activate_1signal__Lorg_kde_qt_QConnectionList_2Lorg_kde_qt_QUObject_2(JNIEnv *env, jobject obj, jobject clist, jobject o)
{
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_activate_signal((QConnectionList*) QtSupport::getQt(env, clist), (QUObject*) QtSupport::getQt(env, o));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QObject_sender(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_sender(), "org.kde.qt.QObject");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_connectNotify(JNIEnv *env, jobject obj, jstring signal)
{
static QCString * _qstring_signal = 0;
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_connectNotify((char*) QtSupport::toCharString(env, signal, &_qstring_signal));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QObject_disconnectNotify(JNIEnv *env, jobject obj, jstring signal)
{
static QCString * _qstring_signal = 0;
	((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_disconnectNotify((char*) QtSupport::toCharString(env, signal, &_qstring_signal));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QObject_checkConnectArgs(JNIEnv *env, jobject obj, jstring signal, jobject receiver, jstring member)
{
static QCString * _qstring_member = 0;
static QCString * _qstring_signal = 0;
	return (jboolean) ((QObjectJBridge*) QtSupport::getQt(env, obj))->protected_checkConnectArgs((char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::getQt(env, receiver), (char*) QtSupport::toCharString(env, member, &_qstring_member));
}

//JNIEXPORT jstring JNICALL
//Java_org_kde_qt_QObject_normalizeSignalSlot(JNIEnv *env, jclass obj, jstring signalSlot)
//{
//	QCString  _qcstring;
//static QCString * _qstring_signalSlot = 0;
//	_qcstring = QObjectJBridge::protected_normalizeSignalSlot((char*) QtSupport::toCharString(env, signalSlot, &_qstring_signalSlot));
//	return QtSupport::fromQCString(env, &_qcstring);
//}

