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

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

class KCommandHistoryJBridge : public KCommandHistory
{
public:
	KCommandHistoryJBridge() : KCommandHistory() {};
	KCommandHistoryJBridge(KActionCollection* arg1,bool arg2) : KCommandHistory(arg1,arg2) {};
	KCommandHistoryJBridge(KActionCollection* arg1) : KCommandHistory(arg1) {};
	void public_undo() {
		KCommandHistory::undo();
		return;
	}
	void public_redo() {
		KCommandHistory::redo();
		return;
	}
	void public_documentSaved() {
		KCommandHistory::documentSaved();
		return;
	}
	void protected_slotUndoAboutToShow() {
		KCommandHistory::slotUndoAboutToShow();
		return;
	}
	void protected_slotUndoActivated(int arg1) {
		KCommandHistory::slotUndoActivated(arg1);
		return;
	}
	void protected_slotRedoAboutToShow() {
		KCommandHistory::slotRedoAboutToShow();
		return;
	}
	void protected_slotRedoActivated(int arg1) {
		KCommandHistory::slotRedoActivated(arg1);
		return;
	}
	~KCommandHistoryJBridge() {QtSupport::qtKeyDeleted(this);}
	void undo() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","undo")) {
			KCommandHistory::undo();
		}
		return;
	}
	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 documentSaved() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","documentSaved")) {
			KCommandHistory::documentSaved();
		}
		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.KCommandHistory",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void redo() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","redo")) {
			KCommandHistory::redo();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_addCommand__Lorg_kde_koala_KCommand_2(JNIEnv* env, jobject obj, jobject command)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->addCommand((KCommand*) QtSupport::getQt(env, command));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_addCommand__Lorg_kde_koala_KCommand_2Z(JNIEnv* env, jobject obj, jobject command, jboolean execute)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->addCommand((KCommand*) QtSupport::getQt(env, command), (bool) execute);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KCommandHistory_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_documentSaved(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_documentSaved();
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_newKCommandHistory__Lorg_kde_koala_KActionCollection_2Z(JNIEnv* env, jobject obj, jobject actionCollection, jboolean withMenus)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCommandHistoryJBridge((KActionCollection*) QtSupport::getQt(env, actionCollection), (bool) withMenus));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCommandHistory_redoLimit(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCommandHistory*) QtSupport::getQt(env, obj))->redoLimit();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_redo(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_redo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_setRedoLimit(JNIEnv* env, jobject obj, jint limit)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->setRedoLimit((int) limit);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_setUndoLimit(JNIEnv* env, jobject obj, jint limit)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->setUndoLimit((int) limit);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotRedoAboutToShow(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotRedoAboutToShow();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotRedoActivated(JNIEnv* env, jobject obj, jint arg1)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotRedoActivated((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotUndoAboutToShow(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotUndoAboutToShow();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotUndoActivated(JNIEnv* env, jobject obj, jint arg1)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotUndoActivated((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCommandHistory_undoLimit(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCommandHistory*) QtSupport::getQt(env, obj))->undoLimit();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_undo(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_undo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_updateActions(JNIEnv* env, jobject obj)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->updateActions();
	return;
}

