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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KCommandHistory.h>

class KCommandHistoryJBridge : public KCommandHistory
{
public:
	KCommandHistoryJBridge() : KCommandHistory() {};
	KCommandHistoryJBridge(TDEActionCollection* arg1,bool arg2) : KCommandHistory(arg1,arg2) {};
	KCommandHistoryJBridge(TDEActionCollection* 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.trinitydesktop.koala.KCommandHistory","undo")) {
			KCommandHistory::undo();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void documentSaved() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KCommandHistory","documentSaved")) {
			KCommandHistory::documentSaved();
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KCommandHistory",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void redo() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KCommandHistory","redo")) {
			KCommandHistory::redo();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KCommandHistory_addCommand__Lorg_trinitydesktop_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_trinitydesktop_koala_KCommandHistory_addCommand__Lorg_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KCommandHistory_clear(JNIEnv* env, jobject obj)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KCommandHistory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KCommandHistory_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KCommandHistory_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KCommandHistory_newKCommandHistory__Lorg_trinitydesktop_koala_TDEActionCollection_2(JNIEnv* env, jobject obj, jobject actionCollection)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCommandHistoryJBridge((TDEActionCollection*) QtSupport::getQt(env, actionCollection)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

