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

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

class KActionCollectionJBridge : public KActionCollection
{
public:
	KActionCollectionJBridge(QWidget* arg1,const char* arg2,KInstance* arg3) : KActionCollection(arg1,arg2,arg3) {};
	KActionCollectionJBridge(QWidget* arg1,const char* arg2) : KActionCollection(arg1,arg2) {};
	KActionCollectionJBridge(QWidget* arg1) : KActionCollection(arg1) {};
	KActionCollectionJBridge(QWidget* arg1,QObject* arg2,const char* arg3,KInstance* arg4) : KActionCollection(arg1,arg2,arg3,arg4) {};
	KActionCollectionJBridge(QWidget* arg1,QObject* arg2,const char* arg3) : KActionCollection(arg1,arg2,arg3) {};
	KActionCollectionJBridge(QWidget* arg1,QObject* arg2) : KActionCollection(arg1,arg2) {};
	KActionCollectionJBridge(const KActionCollection& arg1) : KActionCollection(arg1) {};
	KActionCollectionJBridge(QObject* arg1,const char* arg2,KInstance* arg3) : KActionCollection(arg1,arg2,arg3) {};
	KActionCollectionJBridge(QObject* arg1,const char* arg2) : KActionCollection(arg1,arg2) {};
	KActionCollectionJBridge(QObject* arg1) : KActionCollection(arg1) {};
	~KActionCollectionJBridge() {QtSupport::qtKeyDeleted(this);}
	void setWidget(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setWidget",(void*)arg1,"org.kde.qt.QWidget")) {
			KActionCollection::setWidget(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 removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(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.KActionCollection",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_action__I(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->action((int) index), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_action__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->action((const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_action__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring classname)
{
static QCString* _qstring_name = 0;
static QCString* _qstring_classname = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->action((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname)), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_addDocCollection(JNIEnv* env, jobject obj, jobject pDoc)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->addDocCollection((KActionCollection*) QtSupport::getQt(env, pDoc));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_builderKAccel(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->builderKAccel(), "org.kde.koala.KAccel");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_connectHighlight(JNIEnv* env, jobject obj, jobject container, jobject action)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->connectHighlight((QWidget*) QtSupport::getQt(env, container), (KAction*) QtSupport::getQt(env, action));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_disconnectHighlight(JNIEnv* env, jobject obj, jobject container, jobject action)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->disconnectHighlight((QWidget*) QtSupport::getQt(env, container), (KAction*) QtSupport::getQt(env, action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KActionCollection_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_groups(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KActionCollection*) QtSupport::getQt(env, obj))->groups();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_highlightingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->highlightingEnabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_insert(JNIEnv* env, jobject obj, jobject action)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->insert((KAction*) QtSupport::getQt(env, action));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_isAutoConnectShortcuts(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->isAutoConnectShortcuts();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_kaccel(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->kaccel(), "org.kde.koala.KAccel");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_newKActionCollection__Lorg_kde_koala_KActionCollection_2(JNIEnv* env, jobject obj, jobject copy)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionCollectionJBridge((const KActionCollection&)*(const KActionCollection*) QtSupport::getQt(env, copy)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_newKActionCollection__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 KActionCollectionJBridge((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_KActionCollection_newKActionCollection__Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jobject obj, jobject parent, jstring name, jobject instance)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionCollectionJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_newKActionCollection__Lorg_kde_qt_QWidget_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 KActionCollectionJBridge((QWidget*) 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_KActionCollection_newKActionCollection__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jobject obj, jobject parent, jstring name, jobject instance)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionCollectionJBridge((QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_newKActionCollection__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject watch, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionCollectionJBridge((QWidget*) QtSupport::getQt(env, watch), (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_KActionCollection_newKActionCollection__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jobject obj, jobject watch, jobject parent, jstring name, jobject instance)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionCollectionJBridge((QWidget*) QtSupport::getQt(env, watch), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_op_1plus_1assign(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KActionCollection *) &((KActionCollection*) QtSupport::getQt(env, obj))->operator+=((const KActionCollection&)*(const KActionCollection*) QtSupport::getQt(env, arg1)), "org.kde.koala.KActionCollection");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_op_1plus(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KActionCollection(((KActionCollection*) QtSupport::getQt(env, obj))->operator+((const KActionCollection&)*(const KActionCollection*) QtSupport::getQt(env, arg1))), "org.kde.koala.KActionCollection", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_parentGUIClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->parentGUIClient(), "org.kde.koala.KXMLGUIClientInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_readShortcutSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->readShortcutSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_readShortcutSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static QString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->readShortcutSettings((const QString&)*(QString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_readShortcutSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static QString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->readShortcutSettings((const QString&)*(QString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_remove(JNIEnv* env, jobject obj, jobject action)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->remove((KAction*) QtSupport::getQt(env, action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_setAutoConnectShortcuts(JNIEnv* env, jobject obj, jboolean arg1)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->setAutoConnectShortcuts((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_setHighlightingEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->setHighlightingEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_setInstance(JNIEnv* env, jobject obj, jobject instance)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->setInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KActionCollection_setWidget(JNIEnv* env, jobject obj, jobject widget)
{
	((KActionCollection*) QtSupport::getQt(env, obj))->setWidget((QWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KActionCollection_take(JNIEnv* env, jobject obj, jobject action)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KActionCollection*) QtSupport::getQt(env, obj))->take((KAction*) QtSupport::getQt(env, action)), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_writeShortcutSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->writeShortcutSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_writeShortcutSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static QString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->writeShortcutSettings((const QString&)*(QString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KActionCollection_writeShortcutSettings__Ljava_lang_String_2Lorg_kde_koala_KConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static QString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KActionCollection*) QtSupport::getQt(env, obj))->writeShortcutSettings((const QString&)*(QString*) QtSupport::toQString(env, sConfigGroup, &_qstring_sConfigGroup), (KConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

