//Auto-generated by kalyptus. DO NOT EDIT.
#include <kpanelappmenu.h>
#include <qpixmap.h>
#include <dcopclient.h>
#include <qstring.h>
#include <dcopobject.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KPanelAppMenu.h>

class KPanelAppMenuJBridge : public KPanelAppMenu
{
public:
	KPanelAppMenuJBridge(const QString& arg1,QObject* arg2,const char* arg3) : KPanelAppMenu(arg1,arg2,arg3) {};
	KPanelAppMenuJBridge(const QString& arg1,QObject* arg2) : KPanelAppMenu(arg1,arg2) {};
	KPanelAppMenuJBridge(const QString& arg1) : KPanelAppMenu(arg1) {};
	KPanelAppMenuJBridge(const QPixmap& arg1,const QString& arg2,QObject* arg3,const char* arg4) : KPanelAppMenu(arg1,arg2,arg3,arg4) {};
	KPanelAppMenuJBridge(QObject* arg1,const char* arg2) : KPanelAppMenu(arg1,arg2) {};
	void protected_init(const QPixmap& arg1,const QString& arg2) {
		KPanelAppMenu::init(arg1,arg2);
		return;
	}
	~KPanelAppMenuJBridge() {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;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KPanelAppMenu",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_callingDcopClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->callingDcopClient(), "org.kde.koala.DCOPClient");
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot, jboolean Volatile)
{
static QCString* _qcstring_sender = 0;
static QCString* _qcstring_senderObj = 0;
static QCString* _qcstring_signal = 0;
static QCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->connectDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const QCString&)*(QCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QCString&)*(QCString*) QtSupport::toQCString(env, slot, &_qcstring_slot), (bool) Volatile);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_disconnectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot)
{
static QCString* _qcstring_sender = 0;
static QCString* _qcstring_senderObj = 0;
static QCString* _qcstring_signal = 0;
static QCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, sender, &_qcstring_sender), (const QCString&)*(QCString*) QtSupport::toQCString(env, senderObj, &_qcstring_senderObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QCString&)*(QCString*) QtSupport::toQCString(env, slot, &_qcstring_slot));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KPanelAppMenu_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static QCString* _qcstring_signal = 0;
static QByteArray* _qbyteArray_data = 0;
	((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->emitDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_find(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static QCString* _qcstring_objId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KPanelAppMenuJBridge::find((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId)), "org.kde.koala.DCOPObjectInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_functionsDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->functionsDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_functions(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->functions();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_hasObject(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static QCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) KPanelAppMenuJBridge::hasObject((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_init(JNIEnv* env, jobject obj, jobject icon, jstring title)
{
static QString* _qstring_title = 0;
	((KPanelAppMenuJBridge*) QtSupport::getQt(env, obj))->protected_init((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, title, &_qstring_title));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPanelAppMenu_insertItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertItem((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPanelAppMenu_insertItem__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring text, jint id)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertItem((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPanelAppMenu_insertItem__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertItem((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPanelAppMenu_insertItem__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id)
{
static QString* _qstring_text = 0;
	jint xret = (jint) ((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertItem((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (int) id);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_insertMenu__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text)
{
static QString* _qstring_text = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertMenu((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text)), "org.kde.koala.KPanelAppMenu");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_insertMenu__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id)
{
static QString* _qstring_text = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KPanelAppMenu*) QtSupport::getQt(env, obj))->insertMenu((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (int) id), "org.kde.koala.KPanelAppMenu");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_interfacesDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->interfacesDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPanelAppMenu_interfaces(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->interfaces();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_newKPanelAppMenu__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring title)
{
static QString* _qstring_title = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPanelAppMenuJBridge((const QString&)*(QString*) QtSupport::toQString(env, title, &_qstring_title)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_newKPanelAppMenu__Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring title, jobject parent)
{
static QString* _qstring_title = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPanelAppMenuJBridge((const QString&)*(QString*) QtSupport::toQString(env, title, &_qstring_title), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_newKPanelAppMenu__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring title, jobject parent, jstring name)
{
static QString* _qstring_title = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPanelAppMenuJBridge((const QString&)*(QString*) QtSupport::toQString(env, title, &_qstring_title), (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_koala_KPanelAppMenu_newKPanelAppMenu__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 KPanelAppMenuJBridge((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_koala_KPanelAppMenu_newKPanelAppMenu__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring title, jobject parent, jstring name)
{
static QString* _qstring_title = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPanelAppMenuJBridge((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, icon), (const QString&)*(QString*) QtSupport::toQString(env, title, &_qstring_title), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPanelAppMenu_objId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->objId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPanelAppMenu_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
	QCString  _qstring;
	(void) cls;
	_qstring = KPanelAppMenuJBridge::objectName((QObject*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->processDynamic((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray reply)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_reply = 0;
	jboolean xret = (jboolean) ((KPanelAppMenu*) QtSupport::getQt(env, obj))->process((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, reply, &_qbyteArray_reply));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPanelAppMenu_setCallingDcopClient(JNIEnv* env, jobject obj, jobject arg1)
{
	((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->setCallingDcopClient((DCOPClient*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPanelAppMenu_setObjId(JNIEnv* env, jobject obj, jstring objId)
{
static QCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KPanelAppMenu*) QtSupport::getQt(env, obj))->setObjId((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
	return xret;
}

