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

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

class KIPCJBridge : public KIPC
{
public:
	KIPCJBridge() : KIPC() {};
	~KIPCJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KIPC_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KIPC_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KIPC_sendMessageAll__I(JNIEnv* env, jclass cls, jint msg)
{
	(void) cls;
	(void) env;
	KIPCJBridge::sendMessageAll((KIPC::Message) msg);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIPC_sendMessageAll__II(JNIEnv* env, jclass cls, jint msg, jint data)
{
	(void) cls;
	(void) env;
	KIPCJBridge::sendMessageAll((KIPC::Message) msg, (int) data);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIPC_sendMessage__IJ(JNIEnv* env, jclass cls, jint msg, jlong w)
{
	(void) cls;
	(void) env;
	KIPCJBridge::sendMessage((KIPC::Message) msg, (WId) w);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIPC_sendMessage__IJI(JNIEnv* env, jclass cls, jint msg, jlong w, jint data)
{
	(void) cls;
	(void) env;
	KIPCJBridge::sendMessage((KIPC::Message) msg, (WId) w, (int) data);
	return;
}

