//Auto-generated by kalyptus. DO NOT EDIT.
#include <kservice.h>
#include <kservicetype.h>
#include <tqdatastream.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqvariant.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KServiceType.h>

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KServiceType_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KServiceType_icon(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KServiceType*) QtSupport::getQt(env, obj))->icon();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KServiceType_isDerived(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KServiceType*) QtSupport::getQt(env, obj))->isDerived();
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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 TQString* _qstring__fullpath = 0;
static TQString* _qstring__name = 0;
static TQString* _qstring__icon = 0;
static TQString* _qstring__comment = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, _fullpath, &_qstring__fullpath), (const TQString&)*(TQString*) QtSupport::toTQString(env, _name, &_qstring__name), (const TQString&)*(TQString*) QtSupport::toTQString(env, _icon, &_qstring__icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, _comment, &_qstring__comment)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceType_newKServiceType__Lorg_trinitydesktop_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_trinitydesktop_koala_KServiceType_newKServiceType__Lorg_trinitydesktop_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceTypeJBridge((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KServiceType_property(JNIEnv* env, jobject obj, jstring _name)
{
static TQString* _qstring__name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KServiceType*) QtSupport::getQt(env, obj))->property((const TQString&)*(TQString*) QtSupport::toTQString(env, _name, &_qstring__name))), "org.trinitydesktop.qt.TQVariant", TRUE);
	return xret;
}

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

