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

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

class KServiceJBridge : public KService
{
public:
	KServiceJBridge(const QString& arg1,const QString& arg2,const QString& arg3) : KService(arg1,arg2,arg3) {};
	KServiceJBridge(const QString& arg1) : KService(arg1) {};
	KServiceJBridge(KDesktopFile* arg1) : KService(arg1) {};
	KServiceJBridge(QDataStream& arg1,int arg2) : KService(arg1,arg2) {};
	void protected_init(KDesktopFile* arg1) {
		KService::init(arg1);
		return;
	}
	QStringList& protected_accessServiceTypes() {
		return (QStringList&) KService::accessServiceTypes();
	}
	~KServiceJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KService_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KService_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KService_genericName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KService*) QtSupport::getQt(env, obj))->genericName();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KService_newServicePath__ZLjava_lang_String_2(JNIEnv* env, jclass cls, jboolean showInMenu, jstring suggestedName)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_suggestedName = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const QString&)*(QString*) QtSupport::toQString(env, suggestedName, &_qstring_suggestedName));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KService_newServicePath__ZLjava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jclass cls, jboolean showInMenu, jstring suggestedName, jobject menuId)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_suggestedName = 0;
static QString* _qstring_menuId = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const QString&)*(QString*) QtSupport::toQString(env, suggestedName, &_qstring_suggestedName), (QString*) QtSupport::toQStringFromStringBuffer(env, menuId, &_qstring_menuId));
	QtSupport::fromQStringToStringBuffer(env, _qstring_menuId, menuId);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_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)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_suggestedName = 0;
static QString* _qstring_menuId = 0;
static QStringList* _qlist_reservedMenuIds = 0;
	_qstring = KServiceJBridge::newServicePath((bool) showInMenu, (const QString&)*(QString*) QtSupport::toQString(env, suggestedName, &_qstring_suggestedName), (QString*) QtSupport::toQStringFromStringBuffer(env, menuId, &_qstring_menuId), (const QStringList*) QtSupport::toQStringList(env, reservedMenuIds, &_qlist_reservedMenuIds));
	QtSupport::fromQStringToStringBuffer(env, _qstring_menuId, menuId);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KService_pixmap__I(JNIEnv* env, jobject obj, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) _group)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KService_pixmap__II(JNIEnv* env, jobject obj, jint _group, jint _force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) _group, (int) _force_size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KService_pixmap__III(JNIEnv* env, jobject obj, jint _group, jint _force_size, jint _state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) _group, (int) _force_size, (int) _state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KService_pixmap__IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jint _group, jint _force_size, jint _state, jobject _path)
{
static QString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KService*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) _group, (int) _force_size, (int) _state, (QString*) QtSupport::toQStringFromStringBuffer(env, _path, &_qstring__path))), "org.kde.qt.QPixmap", TRUE);
	QtSupport::fromQStringToStringBuffer(env, _qstring__path, _path);
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

