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

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

class KMacroCommandJBridge : public KMacroCommand
{
public:
	KMacroCommandJBridge(const TQString& arg1) : KMacroCommand(arg1) {};
	void public_execute() {
		KMacroCommand::execute();
		return;
	}
	void public_unexecute() {
		KMacroCommand::unexecute();
		return;
	}
	~KMacroCommandJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMacroCommand_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KMacroCommand_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMacroCommand_execute(JNIEnv* env, jobject obj)
{
	((KMacroCommandJBridge*) QtSupport::getQt(env, obj))->public_execute();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMacroCommand_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KMacroCommand*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMacroCommand_newKMacroCommand(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMacroCommandJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMacroCommand_unexecute(JNIEnv* env, jobject obj)
{
	((KMacroCommandJBridge*) QtSupport::getQt(env, obj))->public_unexecute();
	return;
}

