//Auto-generated by kalyptus. DO NOT EDIT.
#include <kservice.h>
#include <kservicetype.h>
#include <qdatastream.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qvariant.h>

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

class KServiceTypeJBridge : public KServiceType
{
public:
	KServiceTypeJBridge(const QString& arg1,const QString& arg2,const QString& arg3,const QString& arg4) : KServiceType(arg1,arg2,arg3,arg4) {};
	KServiceTypeJBridge(const QString& arg1) : KServiceType(arg1) {};
	KServiceTypeJBridge(KDesktopFile* arg1) : KServiceType(arg1) {};
	KServiceTypeJBridge(QDataStream& arg1,int arg2) : KServiceType(arg1,arg2) {};
	void protected_init(KDesktopFile* arg1) {
		KServiceType::init(arg1);
		return;
	}
	~KServiceTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KServiceType_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceType_inherits(JNIEnv* env, jobject obj, jstring servTypeName)
{
static QString* _qstring_servTypeName = 0;
	jboolean xret = (jboolean) ((KServiceType*) QtSupport::getQt(env, obj))->inherits((const QString&)*(QString*) QtSupport::toQString(env, servTypeName, &_qstring_servTypeName));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceType_init(JNIEnv* env, jobject obj, jobject config)
{
	((KServiceTypeJBridge*) QtSupport::getQt(env, obj))->protected_init((KDesktopFile*) QtSupport::getQt(env, config));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KServiceType_isDerived(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KServiceType*) QtSupport::getQt(env, obj))->isDerived();
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceType_newKServiceType__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _fullpath)
{
static QString* _qstring__fullpath = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeJBridge((const QString&)*(QString*) QtSupport::toQString(env, _fullpath, &_qstring__fullpath)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceType_newKServiceType__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _fullpath, jstring _name, jstring _icon, jstring _comment)
{
static QString* _qstring__fullpath = 0;
static QString* _qstring__name = 0;
static QString* _qstring__icon = 0;
static QString* _qstring__comment = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeJBridge((const QString&)*(QString*) QtSupport::toQString(env, _fullpath, &_qstring__fullpath), (const QString&)*(QString*) QtSupport::toQString(env, _name, &_qstring__name), (const QString&)*(QString*) QtSupport::toQString(env, _icon, &_qstring__icon), (const QString&)*(QString*) QtSupport::toQString(env, _comment, &_qstring__comment)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceType_newKServiceType__Lorg_kde_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeJBridge((QDataStream&)*(QDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KServiceType_propertyDefNames(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KServiceType*) QtSupport::getQt(env, obj))->propertyDefNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KServiceType_propertyDef(JNIEnv* env, jobject obj, jstring _name)
{
static QString* _qstring__name = 0;
	jint xret = (jint) ((KServiceType*) QtSupport::getQt(env, obj))->propertyDef((const QString&)*(QString*) QtSupport::toQString(env, _name, &_qstring__name));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KServiceType_propertyNames(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KServiceType*) QtSupport::getQt(env, obj))->propertyNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KServiceType_property(JNIEnv* env, jobject obj, jstring _name)
{
static QString* _qstring__name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((KServiceType*) QtSupport::getQt(env, obj))->property((const QString&)*(QString*) QtSupport::toQString(env, _name, &_qstring__name))), "org.kde.qt.QVariant", TRUE);
	return xret;
}

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

