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

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

class KServiceJBridge : public KService
{
public:
	KServiceJBridge(const TQString& arg1,const TQString& arg2,const TQString& arg3) : KService(arg1,arg2,arg3) {};
	KServiceJBridge(const TQString& arg1) : KService(arg1) {};
	KServiceJBridge(TDEDesktopFile* arg1) : KService(arg1) {};
	KServiceJBridge(TQDataStream& arg1,int arg2) : KService(arg1,arg2) {};
	void protected_init(TDEDesktopFile* arg1) {
		KService::init(arg1);
		return;
	}
	TQStringList& protected_accessServiceTypes() {
		return (TQStringList&) KService::accessServiceTypes();
	}
	~KServiceJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KService_DCOPServiceType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KService*) QtSupport::getQt(env, obj))->DCOPServiceType();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KService_allowMultipleFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KService*) QtSupport::getQt(env, obj))->allowMultipleFiles();
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KService_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KService_hasServiceType(JNIEnv* env, jobject obj, jstring _service)
{
static TQString* _qstring__service = 0;
	jboolean xret = (jboolean) ((KService*) QtSupport::getQt(env, obj))->hasServiceType((const TQString&)*(TQString*) QtSupport::toTQString(env, _service, &_qstring__service));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_init__Lorg_trinitydesktop_koala_TDEDesktopFile_2(JNIEnv* env, jobject obj, jobject config)
{
	((KServiceJBridge*) QtSupport::getQt(env, obj))->protected_init((TDEDesktopFile*) QtSupport::getQt(env, config));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KService_initialPreferenceForMimeType(JNIEnv* env, jobject obj, jstring mimeType)
{
static TQString* _qstring_mimeType = 0;
	jint xret = (jint) ((KService*) QtSupport::getQt(env, obj))->initialPreferenceForMimeType((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KService_initialPreference(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KService*) QtSupport::getQt(env, obj))->initialPreference();
	return xret;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_newKService__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 KServiceJBridge((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_KService_newKService__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _name, jstring _exec, jstring _icon)
{
static TQString* _qstring__name = 0;
static TQString* _qstring__exec = 0;
static TQString* _qstring__icon = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, _name, &_qstring__name), (const TQString&)*(TQString*) QtSupport::toTQString(env, _exec, &_qstring__exec), (const TQString&)*(TQString*) QtSupport::toTQString(env, _icon, &_qstring__icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KService_newServicePath__ZLjava_lang_String_2(JNIEnv* env, jclass cls, jboolean showInMenu, jstring suggestedName)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_suggestedName = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const TQString&)*(TQString*) QtSupport::toTQString(env, suggestedName, &_qstring_suggestedName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KService_newServicePath__ZLjava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jclass cls, jboolean showInMenu, jstring suggestedName, jobject menuId)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_suggestedName = 0;
static TQString* _qstring_menuId = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const TQString&)*(TQString*) QtSupport::toTQString(env, suggestedName, &_qstring_suggestedName), (TQString*) QtSupport::toTQStringFromStringBuffer(env, menuId, &_qstring_menuId));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_menuId, menuId);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KService_newServicePath__ZLjava_lang_String_2Ljava_lang_StringBuffer_2_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jboolean showInMenu, jstring suggestedName, jobject menuId, jobjectArray reservedMenuIds)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_suggestedName = 0;
static TQString* _qstring_menuId = 0;
static TQStringList* _qlist_reservedMenuIds = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const TQString&)*(TQString*) QtSupport::toTQString(env, suggestedName, &_qstring_suggestedName), (TQString*) QtSupport::toTQStringFromStringBuffer(env, menuId, &_qstring_menuId), (const TQStringList*) QtSupport::toTQStringList(env, reservedMenuIds, &_qlist_reservedMenuIds));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_menuId, menuId);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KService_noDisplay(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KService*) QtSupport::getQt(env, obj))->noDisplay();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KService_pixmap__I(JNIEnv* env, jobject obj, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) _group)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KService_pixmap__II(JNIEnv* env, jobject obj, jint _group, jint _force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) _group, (int) _force_size)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KService_pixmap__III(JNIEnv* env, jobject obj, jint _group, jint _force_size, jint _state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) _group, (int) _force_size, (int) _state)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KService_pixmap__IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jint _group, jint _force_size, jint _state, jobject _path)
{
static TQString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) _group, (int) _force_size, (int) _state, (TQString*) QtSupport::toTQStringFromStringBuffer(env, _path, &_qstring__path))), "org.trinitydesktop.qt.TQPixmap", true);
	QtSupport::fromTQStringToStringBuffer(env, _qstring__path, _path);
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_rebuildKSycoca(JNIEnv* env, jclass cls, jobject parent)
{
	(void) cls;
	KServiceJBridge::rebuildKSycoca((TQWidget*) QtSupport::getQt(env, parent));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_setInitialPreference(JNIEnv* env, jobject obj, jint i)
{
	((KService*) QtSupport::getQt(env, obj))->setInitialPreference((int) i);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_setMenuId(JNIEnv* env, jobject obj, jstring menuId)
{
static TQString* _qstring_menuId = 0;
	((KService*) QtSupport::getQt(env, obj))->setMenuId((const TQString&)*(TQString*) QtSupport::toTQString(env, menuId, &_qstring_menuId));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_setTerminalOptions(JNIEnv* env, jobject obj, jstring options)
{
static TQString* _qstring_options = 0;
	((KService*) QtSupport::getQt(env, obj))->setTerminalOptions((const TQString&)*(TQString*) QtSupport::toTQString(env, options, &_qstring_options));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KService_setTerminal(JNIEnv* env, jobject obj, jboolean b)
{
	((KService*) QtSupport::getQt(env, obj))->setTerminal((bool) b);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KService_substituteUid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KService*) QtSupport::getQt(env, obj))->substituteUid();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KService_terminal(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KService*) QtSupport::getQt(env, obj))->terminal();
	return xret;
}

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

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

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

