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

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

class KServiceTypeProfileJBridge : public KServiceTypeProfile
{
public:
	KServiceTypeProfileJBridge(const QString& arg1,const QString& arg2) : KServiceTypeProfile(arg1,arg2) {};
	KServiceTypeProfileJBridge(const QString& arg1) : KServiceTypeProfile(arg1) {};
	void protected_addService(const QString& arg1,int arg2,bool arg3) {
		KServiceTypeProfile::addService(arg1,arg2,arg3);
		return;
	}
	void protected_addService(const QString& arg1,int arg2) {
		KServiceTypeProfile::addService(arg1,arg2);
		return;
	}
	void protected_addService(const QString& arg1) {
		KServiceTypeProfile::addService(arg1);
		return;
	}
	~KServiceTypeProfileJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_addService__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _service)
{
static QString* _qstring__service = 0;
	((KServiceTypeProfileJBridge*) QtSupport::getQt(env, obj))->protected_addService((const QString&)*(QString*) QtSupport::toQString(env, _service, &_qstring__service));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_addService__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring _service, jint _preference)
{
static QString* _qstring__service = 0;
	((KServiceTypeProfileJBridge*) QtSupport::getQt(env, obj))->protected_addService((const QString&)*(QString*) QtSupport::toQString(env, _service, &_qstring__service), (int) _preference);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_addService__Ljava_lang_String_2IZ(JNIEnv* env, jobject obj, jstring _service, jint _preference, jboolean _allow_as_default)
{
static QString* _qstring__service = 0;
	((KServiceTypeProfileJBridge*) QtSupport::getQt(env, obj))->protected_addService((const QString&)*(QString*) QtSupport::toQString(env, _service, &_qstring__service), (int) _preference, (bool) _allow_as_default);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceTypeProfile_allowAsDefault(JNIEnv* env, jobject obj, jstring _service)
{
static QString* _qstring__service = 0;
	jboolean xret = (jboolean) ((KServiceTypeProfile*) QtSupport::getQt(env, obj))->allowAsDefault((const QString&)*(QString*) QtSupport::toQString(env, _service, &_qstring__service));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_clear(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KServiceTypeProfileJBridge::clear();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceTypeProfile_configurationMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KServiceTypeProfileJBridge::configurationMode();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KServiceTypeProfile_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_newKServiceTypeProfile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType)
{
static QString* _qstring_serviceType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeProfileJBridge((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_newKServiceTypeProfile__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType, jstring genericServiceType)
{
static QString* _qstring_serviceType = 0;
static QString* _qstring_genericServiceType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeProfileJBridge((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, genericServiceType, &_qstring_genericServiceType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KServiceTypeProfile_preference(JNIEnv* env, jobject obj, jstring _service)
{
static QString* _qstring__service = 0;
	jint xret = (jint) ((KServiceTypeProfile*) QtSupport::getQt(env, obj))->preference((const QString&)*(QString*) QtSupport::toQString(env, _service, &_qstring__service));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KServiceTypeProfile_serviceTypeProfile__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring servicetype)
{
	(void) cls;
static QString* _qstring_servicetype = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KServiceTypeProfileJBridge::serviceTypeProfile((const QString&)*(QString*) QtSupport::toQString(env, servicetype, &_qstring_servicetype)), "org.kde.koala.KServiceTypeProfile");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KServiceTypeProfile_serviceTypeProfile__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring servicetype, jstring genericServiceType)
{
	(void) cls;
static QString* _qstring_servicetype = 0;
static QString* _qstring_genericServiceType = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KServiceTypeProfileJBridge::serviceTypeProfile((const QString&)*(QString*) QtSupport::toQString(env, servicetype, &_qstring_servicetype), (const QString&)*(QString*) QtSupport::toQString(env, genericServiceType, &_qstring_genericServiceType)), "org.kde.koala.KServiceTypeProfile");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceTypeProfile_setConfigurationMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KServiceTypeProfileJBridge::setConfigurationMode();
	return;
}

