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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KMacroCommand_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMacroCommand_finalize(env, obj);
	return;
}

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

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

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

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

