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

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

class KServiceGroupJBridge : public KServiceGroup
{
public:
	KServiceGroupJBridge(const TQString& arg1) : KServiceGroup(arg1) {};
	KServiceGroupJBridge(const TQString& arg1,const TQString& arg2) : KServiceGroup(arg1,arg2) {};
	KServiceGroupJBridge(TQDataStream& 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_trinitydesktop_koala_KServiceGroup_addEntry(JNIEnv* env, jobject obj, jobject entry)
{
	((KServiceGroupJBridge*) QtSupport::getQt(env, obj))->protected_addEntry((KSycocaEntry*) QtSupport::getQt(env, entry));
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KServiceGroup_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_newKServiceGroup__Lorg_trinitydesktop_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((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, _str), (int) offset, (bool) deep));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_parseAttribute(JNIEnv* env, jobject obj, jstring item, jboolean showEmptyMenu, jboolean showInline, jboolean showInlineHeader, jboolean showInlineAlias, jintArray inlineValue)
{
static TQString* _qstring_item = 0;
	int* _int_inlineValue = QtSupport::toIntPtr(env, inlineValue);
	((KServiceGroup*) QtSupport::getQt(env, obj))->parseAttribute((const TQString&)*(TQString*) QtSupport::toTQString(env, item, &_qstring_item), (bool&) showEmptyMenu, (bool&) showInline, (bool&) showInlineHeader, (bool&) showInlineAlias,  (int&) *_int_inlineValue);
	env->SetIntArrayRegion(inlineValue, 0, 1, (jint *) _int_inlineValue);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_setAllowInline(JNIEnv* env, jobject obj, jboolean _b)
{
	((KServiceGroup*) QtSupport::getQt(env, obj))->setAllowInline((bool) _b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_setInlineAlias(JNIEnv* env, jobject obj, jboolean _b)
{
	((KServiceGroup*) QtSupport::getQt(env, obj))->setInlineAlias((bool) _b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_setInlineValue(JNIEnv* env, jobject obj, jint _val)
{
	((KServiceGroup*) QtSupport::getQt(env, obj))->setInlineValue((int) _val);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_setShowEmptyMenu(JNIEnv* env, jobject obj, jboolean b)
{
	((KServiceGroup*) QtSupport::getQt(env, obj))->setShowEmptyMenu((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KServiceGroup_setShowInlineHeader(JNIEnv* env, jobject obj, jboolean _b)
{
	((KServiceGroup*) QtSupport::getQt(env, obj))->setShowInlineHeader((bool) _b);
	return;
}

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

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

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

