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

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

class KServiceOfferJBridge : public KServiceOffer
{
public:
	KServiceOfferJBridge() : KServiceOffer() {};
	KServiceOfferJBridge(const KServiceOffer& arg1) : KServiceOffer(arg1) {};
	~KServiceOfferJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceOffer_allowAsDefault(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KServiceOffer*) QtSupport::getQt(env, obj))->allowAsDefault();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceOffer_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KServiceOffer_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceOffer_newKServiceOffer__Lorg_kde_koala_KServiceOffer_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceOfferJBridge((const KServiceOffer&)*(const KServiceOffer*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceOffer_op_1lt(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((KServiceOffer*) QtSupport::getQt(env, obj))->operator<((const KServiceOffer&)*(const KServiceOffer*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KServiceOffer_preference(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KServiceOffer*) QtSupport::getQt(env, obj))->preference();
	return xret;
}

