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

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

class KServiceSeparatorJBridge : public KServiceSeparator
{
public:
	KServiceSeparatorJBridge() : KServiceSeparator() {};
	~KServiceSeparatorJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceSeparator_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KServiceSeparator_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceSeparator_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KServiceSeparator*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceSeparator_load(JNIEnv* env, jobject obj, jobject arg1)
{
	((KServiceSeparator*) QtSupport::getQt(env, obj))->load((QDataStream&)*(QDataStream*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KServiceSeparator_name(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KServiceSeparator*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceSeparator_save(JNIEnv* env, jobject obj, jobject arg1)
{
	((KServiceSeparator*) QtSupport::getQt(env, obj))->save((QDataStream&)*(QDataStream*) QtSupport::getQt(env, arg1));
	return;
}

