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

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

class KServiceGroupJBridge : public KServiceGroup
{
public:
	KServiceGroupJBridge(const QString& arg1) : KServiceGroup(arg1) {};
	KServiceGroupJBridge(const QString& arg1,const QString& arg2) : KServiceGroup(arg1,arg2) {};
	KServiceGroupJBridge(QDataStream& arg1,int arg2,bool arg3) : KServiceGroup(arg1,arg2,arg3) {};
	void protected_addEntry(KSycocaEntry* arg1) {
		KServiceGroup::addEntry(arg1);
		return;
	}
	~KServiceGroupJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceGroup_addEntry(JNIEnv* env, jobject obj, jobject entry)
{
	((KServiceGroupJBridge*) QtSupport::getQt(env, obj))->protected_addEntry((KSycocaEntry*) QtSupport::getQt(env, entry));
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KServiceGroup_childCount(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KServiceGroup*) QtSupport::getQt(env, obj))->childCount();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceGroup_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KServiceGroup_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceGroup_newKServiceGroup__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KServiceGroupJBridge((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KServiceGroup_setLayoutInfo(JNIEnv* env, jobject obj, jobjectArray layout)
{
static QStringList* _qlist_layout = 0;
	((KServiceGroup*) QtSupport::getQt(env, obj))->setLayoutInfo((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, layout, &_qlist_layout));
	return;
}

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

